11-28-2012 04:43 PM
Hi
Can we use xcontrol in vi script ?
11-29-2012 08:37 AM
XControls can certainly be scripted. If you want to create them directly, wire the path input (at the bottom) into the New VI Object primitive. This is also how you do typedefs.
If an XControl is part of a template that you are copying from a source VI into a target VI, there is a bug you need to be aware of on older versions of LabVIEWs (I could not find when it was fixed). If you do a copy/paste of the XControl from the template to the destination, it may crash LabVIEW. An easy workaround that gives you better performance is to wrap your entire template in a single frame stacked sequence, Move the sequence, then delete the sequence, leaving your code behind. The Move operation does not involve the clipboard and gives one less copy of the code, so is faster that a copy/paste.
If you have further questions. let us know
11-30-2012 08:36 AM
Dear
Thank you for the tips. I'll test it and report results.