LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I call subVI(s) inside a CIN (Code Interface Code) ?

How can I call any subVI(s) inside a CIN (Code Interface Code) which is written e.g. in C or C++ code?
 
 
Thank you for your help.
 
0 Kudos
Message 1 of 21
(3,897 Views)
I don't believe you can.  You would have to let the CIN node finish and pass out whatever data needs to come out, then call a subVI from there.
0 Kudos
Message 2 of 21
(3,875 Views)

If its an option ( and if you have LabVIEW application builder), you can convert the sub VI to a dll and then call the dll (I guess that is possible?)

Vikas

0 Kudos
Message 3 of 21
(3,856 Views)
Are there any other possibilities (without using CIN) to call subVI(s) inside a script? 
0 Kudos
Message 4 of 21
(3,846 Views)
Exactly are you trying to accomplish? Your question of calling a subVI from a CIn was a bit confusing and now you mention scripts. What kind of scripting are your trying to use? TCL? Something else?
0 Kudos
Message 5 of 21
(3,833 Views)
I don't know which kind of scripts are exist for LabVIEW?
0 Kudos
Message 6 of 21
(3,826 Views)
I would suggest heeding Dennis' advice and better explain what you're trying to accomplish. Then a better answer can be provided.
Message 7 of 21
(3,819 Views)

Hi Dennis,

I'm trying to find which kind of scripts are exist for LabWIEW in order to call subVI(s) inside such scripts? Could you please give me more information about the script TCL?

Is the calling of subVI(s) possible inside such a TCL script?

The backround of my question is that we wont to define a set of test cases (correspond to a subVI(s)) which should be driven via such a script.

 

Thanks.

0 Kudos
Message 8 of 21
(3,809 Views)

For information on tcl (Tool Command  Language), you can check out http://www.tcl.tk/. I've not used tcl to call LabVIEW VIs but there have been a few posts on it and you can search the forums for 'tcl'.

You can use LabVIEW itself to read a text file which lists the test cases. The LabVIEW program would then execute the VIs. There are a couple of simple test sequencer example programs that ship with LabVIEW. They would require a few modifications to do what you want. Basically, you can use VI server to dynamically call VIs. A shipping example called Plug In Example, shows how this works.

For a very sophisticated 'scripting' tool, you could also consider NI's TestStand (http://www.ni.com/teststand/). Very powerful and very flexible. It comes with built-in tools for report generation, data logging, and much more. You can download an evaluation copy. Also see http://sine.ni.com/devzone/cda/tut/p/id/4262.

Message 9 of 21
(3,802 Views)
I will use another formulation: I would like to program scripts instead of graphical flow diagrams.
 
Graphical programming is nice (and surely one of the main features of labview) but we want to have the freedom to do the same things (we can do graphically) by means of a scripting language (maybe TCL or Python...). Does LabView provide any kind of API to achieve this?
 
If this is possible... for *which* scripting languages does LabView provide an API?
 
Thanks.
0 Kudos
Message 10 of 21
(3,784 Views)