03-06-2012 02:45 AM
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
Solved! Go to Solution.
03-06-2012 02:53 AM
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,
03-06-2012 04:13 AM
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
03-06-2012 04:58 AM
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
03-06-2012 05:00 AM
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.
03-06-2012 07:26 AM
Does a tutorial exist ?
BR,
Vincent
03-06-2012 07:45 AM
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
03-06-2012 11:02 AM
Can you post your example sequencefile and VI?
03-07-2012 02:27 AM
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.
03-07-2012 03:23 AM
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,