02-22-2012 02:57 PM
Problem: There is a 'get ctrl value', and there is a 'get all controls values' under the methods for a VI reference. There is a 'set ctrl value', but no 'set all control values'. Is there an easy way to set all the controls??
Description: I have a control panel for a device, some "macros" or "fuctions" need to be performed which require a special setup. I would like to get the state of all the controls +50, then use the macro or function, then restore all the controls to their previous state.
Request: How can I easily have all the controls set to their original settings before the subvi ran? I could do this by wiring the 'get all controls values' from the beginning of the macro, to the set all controls at the end of the macro. But there doesn't seem to be a set all controls. Any help?
02-22-2012 03:05 PM
This one is easy if you're using OpenG. OpenG has a Write Panel to INI, and Read Panel from INI in the Varient package. You run it and it will make an INI file with all the values from all controls on the front panel. Then you run the Read Panel and it will set all the controls to the values from that INI file (that can also be edited manuall).
To get OpenG first get VIPM http://jki.net/vipm
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord