Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CRBasic compatibility


Rocha Sep 2, 2015 05:32 AM

What are the datalogger that accept programs written in CRBasic? I am trying to find software compatibility for the CR800 datalogger to facilitate code reuse between different dataloggers.

Thanks.


Dana Sep 2, 2015 03:28 PM

If you check the drop-down list in CRBasic, those are all the dataloggers that are programmed using that language (all of them are Campbell Scientific dataloggers -- CRBasic is a language specific to Campbell Scientific).

CRBasic has a couple of things that facilitate code sharing among datalogger types that you may want to check out. While each datalogger has its own file extension (e.g., *.CR1, *.CR6), dataloggers will also accept a CRBasic file with a DLD extension. The language has syntax for conditional compilation (#If statements), so you can assign values for parameters that may not be the same among the dataloggers, such as channel numbers or voltage ranges.

Check the CRBasic help for additional information about conditional compilation and an example of how to use the predefined constant "LoggerType" to apply the appropriate voltage range based on the datalogger. Conditional compilation can also be performed using user-defined constants.

Note that conditional compilation is not supported in the CR200/CR200X or the CR9000 dataloggers. It can be used only in the CR1000, CR3000, CR800/850, CR6, CR5000, and CR9000X.

Dana

Log in or register to post/reply in the forum.