LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting with XControls

Hi 

Can we use xcontrol in vi script ?

M.Garousi
0 Kudos
Message 1 of 3
(2,166 Views)

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

0 Kudos
Message 2 of 3
(2,142 Views)

Dear

Thank you for the tips. I'll test it and report results.

M.Garousi
0 Kudos
Message 3 of 3
(2,114 Views)