NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable between TestStand and Labview

Solved!
Go to solution

Hi all,

 

I am searching for a tutorial giving an example of how to use TestStand Toolbox in Labview to communicate with TestStand.

I am merely new in that kind of programming and even after doing the "Using TestStand.pdf" NI Tutorial, i didn't get how data can exchange.

 

Thanks

Vincent

0 Kudos
Message 1 of 14
(4,684 Views)

Hi,

 

There are multiple ways to that, what kind of communication do you need? You need to pass data once in a while, or is it intensive communication?

 

Regards,

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 14
(4,682 Views)

Hi Roderic,

 

Just to be get used to data transfert between the two soft, i first want to try pass data once in a while but for my further application i will have to implement intensive communication.

 

BR,

Vincent

0 Kudos
Message 3 of 14
(4,679 Views)

Hi,

 

I managed to read VI File from TestStand using a VI which just do a sum (x+y) with a stop button.

In TestStand, I don't manage to read back x+y variable in order to say if x+y > 54 then false.

In the expression browser i think i shoul read back that value but i can't find it.

 

BR,

Vincent

0 Kudos
Message 4 of 14
(4,675 Views)

Is it an independent VI, or does TestStand runs it? You can write to a TestStand Local variable from the VI using the TestStand API.

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 5 of 14
(4,673 Views)

Does a tutorial exist ?

 

BR,

Vincent

0 Kudos
Message 6 of 14
(4,668 Views)

I am not sure a tutorial exists,

 

Access globals: https://decibel.ni.com/content/docs/DOC-11447 

 

 

You may find those links usefull:http://www.ni.com/pdf/manuals/323435a.pdf   http://zone.ni.com/devzone/cda/epd/p/id/5838   

 

You can access a lot of thing using the API shipped with TestStand (located in your labview: teststand palette

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 7 of 14
(4,663 Views)

Can you post your example sequencefile and VI?

Regards
Ray Farmer
0 Kudos
Message 8 of 14
(4,657 Views)

Thank you both of you,

 

I managed to do what i wanted to do.

VI ; My VI was operating an operation (sum) between two variables X and Y.

the resuslt was X+Y. (called xplusy)

 

My sequence file;

I called my VI in dialog box mode,

I created a local variable called xplusy which I gave no value,

In the module VI Called, i set an expression value to xplusy which seems to comunicate directly with my local parameter.

I managed to compare the two value in a "If" loop.

 

My newest question is how to change X and Y parameters directly from TesStand.

I tried setting attributes to x and y command and adding in the setup step a Property loader.

TestStand get back an error saying x and y are not used.

Download All
0 Kudos
Message 9 of 14
(4,646 Views)
Solution
Accepted by topic author Vincent90

Hi,

 

In the module adapter pane, you have to drop a TestSTand local variable (or an expression) in the value colum. Uncheck Default check box and remove the attributes and it should work just fine.

 

Regards,

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 10 of 14
(4,640 Views)