LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labpython input vs output vars

I'm just getting started with labpython. Users of my app would be able to specify any python script, and my app will provide values for the input variables from its database, then record the output values. It seems like I have to Set Data for the input variables, then Execute, then I can Get Variables and Get Data.  BUT I want is to know each variable's name and whether it is input and/or output, before I do Set Data (input values). The parser must know this, but doesn't tell me. Am I missing something? Do I have to parse it myself?

0 Kudos
Message 1 of 2
(2,153 Views)

Hi Jova,

 

Since this is a third-party toolkit, National Instruments won't be able to provide much in way of support. However, I took a quick look at the toolkit and based off of the documentation I found online, it does look like you will need to know the variables from the script ahead of time unless you parse them out. There is the Get Variable.vi, but it looks like it only knows about the variables set through Set Data.vi or exist after executing the script.

 

Best Regards,

Matthew B.
Offering Manager
NI
0 Kudos
Message 2 of 2
(2,112 Views)