LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting or VI generation question

Solved!
Go to solution

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

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 6
(2,718 Views)

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

Antoine Chalons

Message 2 of 6
(2,716 Views)

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!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 3 of 6
(2,713 Views)
Solution
Accepted by topic author D60

Interesting links :

NI Community LabVIEW API

LAVA Scripting board

 

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

Antoine Chalons

Message 4 of 6
(2,711 Views)

Thank you for all of your answers!

 

Have a nice day!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 5 of 6
(2,708 Views)

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 ...).

Message 6 of 6
(2,693 Views)