11-12-2013 02:14 PM
The scaling individual I/O channels on cRIO cards can be set at edit time through the shared variable properties dialog box. Is it possible to access this programmatically at run time? I have found the "Programmatic Module Configuration - Scan Mode" in the example finder.
It shows simply connecting an IO reference to a property node, however the scaling is not one of the properties - only Range and Terminal Mode are available properties. Also, the method shown does not seem very scalable. I would like to be able to programmatically set scaling for all the analog channels on all my cRIO cards... 96 total. The use of a loop, shift registers and a compare seems a little less than elegant. Could this be done with some sort of event?
Thanks in advance!
11-14-2013 06:02 PM
You can use the SharedVariableIO property from the DSC module to programmatically configure the shared variable instance of the scan mode IO varibles:
http://zone.ni.com/reference/en-XX/help/371618J-01/lvdschelp/set_sv_prop_prog/
I haven't messed with it too much, but you can try to use the generic variable properties to access them programmatically as well:
http://zone.ni.com/reference/en-XX/help/371361K-01/lvprop/variable_p/
You would have to feed a reference from the specific project item to the variable property node to gain programmatic access. You can use this KB for a helpful as well.
I am playing around with a test project right now and if I get something going I will go ahead and post it.
11-15-2013 08:52 AM
Thanks for the reply Daniel. I have Labview Dev Suite but not the DSC module. We are a small startup and don't see getting approval for DSC any time soon. Any other approaches?
11-19-2013 05:40 PM
Although I don't have the DSC Module, I do have the Runtime Module. Should this give me access to the SharedVariableIO properties you suggested?
Thanks!
11-26-2013 03:17 PM
SharedVariableIO properties are only available with the DSC module unfortunately.