05-18-2012 01:06 AM
Hi Experts,
I have question about scripting... or maybe it is not :).
In VBAI there is a feature: Labview code generation. How this functionality implemented without scripting? I have Labview 2009 SP1 and tried the VBAI VI code generation. Does this feature of VBAI only available of Labview Dev. environment is installed? I mean if I dont have Labview this function will not work?
Thanks
Solved! Go to Solution.
05-18-2012 01:13 AM
VBAI is not the only NI soft that can generate code (some express VI do that too) and yes it uses scripting.
I don't think you would see the "generate LabVIEW code" option in VBAI if you didn't have labVIEW installed on the computer.
One interesting thing it means though is that scripting can work in an exe but not for everyone...
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 01:19 AM
Thank you for your fast reply. Your last sentece is interesting... you say scripting may work in an exe but not for everyone.... I would like to get some skill in VI scripting and this info is very important. I have read many posts that VI scripting can not work in exe only in IDE.
So what is conclusion? Does scriping work in exe or not? Or do I have to some tests by myself?
Thanks in advance!
05-18-2012 01:25 AM
Interesting links :
Indeed for scripting node it is usually mentioned in the context help if it will work in the RTE, and for most of it it will not.
Now I haven't tried to find out if VBAI only uses scripting functions that are available in the RTE or if NI developers have a way to "allow their EXE to use scripting".
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 01:27 AM
Thank you for all of your answers!
Have a nice day!
05-18-2012 07:35 AM
Scripting (writing LabVIEW code using LabVIEW) is a subset of VI server (using properties and methods of LabVIEW objects). The point where something becomes scripting is the point where the code needs to be recompiled. For example, I can change the color of text on a label at run-time, but I cannot create another control. When in doubt, consult the LabVIEW help on the method or property. It will list a table which has an entry telling you whether or not the method/property will work in the run time engine. This table will also tell you if the method/property is available in the various flavors of LabVIEW (RT/FPGA ...).