09-30-2019 01:41 PM
Hello,
I have noticed that when I run the front panel cleanup (LabVIEW 2019) using control+u on VIs which are under a real time target, the cleanup doesn't appear to do anything. It works fine however on VIs under "My Computer".
Is this expected behavior, or is there something I need to do to get it to work? I have grown fond of the front panel cleanup as it saves a lot of time, and would like to use it while working on real time targets.
Solved! Go to Solution.
09-30-2019 02:57 PM
@lukepike wrote:
Hello,
I have noticed that when I run the front panel cleanup (LabVIEW 2019) using control+u on VIs which are under a real time target, the cleanup doesn't appear to do anything. It works fine however on VIs under "My Computer".
Is this expected behavior, or is there something I need to do to get it to work? I have grown fond of the front panel cleanup as it saves a lot of time, and would like to use it while working on real time targets.
One would have to be a fly on the wall of the R&D meting talking about if that SHOULD work.
But from my experience, I expect it would not work because...
Scripting has to be able to get the ref of the VI being mucked with to make the changes. There is a nice little feature for DAQmx where we can configure a Task in MAX, save it, then create a task constant on a BD and choose "create config and example".
LabVIEW will script up the code that is needed to duplicate the Task that was configured in MAX.
That does NOT work for a RT target .
I understand that as being due to the fact the VI on the RT target is actually on the RT machine and not on the development PC and LV can not invoke scripting functions on a remote machine.
I cringe at the thought that some nefarious LV code could edit VIs on another machine .. Dogs and Cats living together...
Since the FP clean-up is another scripting enable thingie, I would not expect it to work.
You of course know that you can drag the VI to "My Computer" do what you want and drag it back ...
Ben
09-30-2019 03:16 PM
Never done the cleanup of a front panel but there is the Ctrl+F quick drop shortcut which was added to the default list of QD shortcuts in 2019 and that works with the FP in RT.
09-30-2019 03:47 PM
Thank you, that shortcut does indeed cleanup the front panel on a real time VI! A few more key strokes to activate it, but certainly better than before.