NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating the result from Labveiw to Test stand!

Hello, I have a quick question; i am using Labview 8.5 & Test Stand. I am develeoping Test Scripts using Labview for the design & using them in Teststand as PASS/FAIL tests. My question is when i run the tests in teststand its showing that the tests what i have written in labview has been passed but when i remove the connection to UUT & run the same its showing that tests are passed. Actually at this time it should show that the tests are failed since the connection to UUT is not present. But on the lab view window its showing the proper result(that the is failed due to to bad connection) but on the test stand window side its showing erroneous results i.e. tests are passed(i.e. the result is not being updated from lab view to test stand window). What should I  do  to update the result from lab veiw to testand . I have this problem from couple of days.

Any help would be appreciated.

 

Thanks.

0 Kudos
Message 1 of 12
(4,105 Views)

Hi,

The Pass / Fail Step Type passes a boolean from the VI to TestStand. TestStand then evaluates this boolean value and sets the Step.Result.Status as "Passed" if true or "Failed" if failed.

Therefore, you must be passing True in PassFail for the UUT not connected condition.

Regards

Ray Farmer 

Regards
Ray Farmer
0 Kudos
Message 2 of 12
(4,105 Views)

Hello Ray,

Thanks for the swift reply.

I completely agree with what you have said.The boolean value at step.result.status was set at TRUE. At this moment  i want to ask one more question.,when UUT is connected then u mean to say i need to change the step.result.status to true, and shud be set to FALSE when UUT is not connected?

But in that case every time do we need to change the status of the boolean value at step.result.status. as true or false.The result that i am having in the Labview is not being updated.

Suppose if i have 10 tests in a test seq then every time i connect to UUT i need to enable it to TRUE & once its not connected i need to pull them down to FALSE.

Is that what you mean ray??

Can you please pour some more information......

Thank you verymuch.

0 Kudos
Message 3 of 12
(4,102 Views)
Hello Ray,
Adding to the previous reply, even if i make it false & if i still connect to UUT, i am getting the correct result (Right value since UUT is connected) in labview but showing the result as failed(since step.result was set as false), in this case since i am getting correct value on labview , that means that the test is passed .

And suppose if i connect UUT & set step.result as true and suppose that if their is a  problem with my UUT that i am testing , i should get the halt in the PASS/FAIL test, the result on the labview says the result is erroneous but the same data is not being passed to test stand so its showing that the test has been passed which is wrong.

I hope i am bit clear , if not plz do ask me i can even elaborate so that u get complete idea what i am talking about.

Thanks & Regards.
0 Kudos
Message 4 of 12
(4,100 Views)

Hi basha,

Any chance of posting a simple teststand sequence file and VI which highlight your problem.

Also what version of TestStand are you using.

Regards

Ray



Message Edited by Ray Farmer on 03-10-2008 11:06 AM
Regards
Ray Farmer
0 Kudos
Message 5 of 12
(4,095 Views)
Hello Ray,

I can send the sequence file & the Toplevel VI but the problem is that in order to run this VI you need to have a DLP module for serial communication because in order to get the desired result i need to set proper baud rate for the serial comm with out which you can't get the correct result. Using labview i communicate serially to UUT using this module ..
Every thing was fine till test stand was included in the system.

But once i use test stand for Pass-fail criteria, i am having problem.

Just one quick question here. suppose if i have a top level VI ,in the specify module section in teststand i can't see the parameters, in out ports, default value etc... becoz i checked with some other examples and in those they have those parameters listed. And in those examples that particular VI itself is the top & single file. But my case is different, i have several VI grouped together & for the time being i am using top -vi in the test stand to have pass/fail test. I hope the parameters should be listed & using those parameters i need to connect to the teststand system(interfacing) to evaluate the pass fail criteria!!!! But i m not sure......

But if you want to hav good feel of the problem , i can forward seq file & vi file to you.

Cheers.
basha





0 Kudos
Message 6 of 12
(4,090 Views)

Hi,

Have you got your inputs and outputs in the connector pane of your top level VI so that you can setup TestStand variables to the inputs and outputs of your VI in the Specify Module... dialog window.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 7 of 12
(4,085 Views)
Hello Ray,

Here is the sample example sequence and the corresponding VI. So when i run this VI by connecting to the serial system & my UUT the handle
ie. of this system will produce certain output(1144362) once when we run the VI ,

Now my question is when i get the above number in the labview then it should  invoke teststand and should say that the test is passed
if the number is 1144362 or else the test has failed based on the value received it may be due to disconnection with serial system or UUT fualt...what ever
it may be .

so according to our discussion the out put i.e handle for this vi  which you can see in specify module-module  , i am trying to link the output of the VI(handle:in this VI which changes during runtime ) to the test stand variable so that
both of them can communicate with each other updates dynamically during runtime.

My other question is ...
If i hav a top VI based on this top vi's result  i need to confirm that the test has been passed or failed. But once when i add this top file
i am unable to add any parameter name ,type or in/out in the specification module window.(i am not getting as i got in the above VI i.e. handle example)
I believe that first i need to add parameters & later i need to update by using proper expressions to pass on the result to teststand.

Help at this stage will be much appreciated.

cheers.
0 Kudos
Message 8 of 12
(4,063 Views)
Hi basha,
 
Looking at your Sequence File and the Pass / Fail Step in MainSequence.
Although you have three connections on your VI FT_Open_Device_By_Sreial_Number.vi (one input, two outputs),
 
 
within your step, you haven't connected them to any TestStand variables.
 
 
I have attached the FileGlobals.Handle to the Handle output of your VI as an example.
You need to do something similar for Device Serial Number and FT_Status.
 
I am not sure where this top level vi comes in, are you hoping to replace FT_Open_Device_By_Sreial_Number.vi with this top level vi.
If you are then you need to connect on input and output to its connector pane. I would suggest the boolean result is one of the ouptut
 
 
Which you connect to Step.Result.Pass/Fail
 
Regards
 
Ray


Message Edited by Ray Farmer on 03-10-2008 10:04 PM
Regards
Ray Farmer
Download All
0 Kudos
Message 9 of 12
(4,057 Views)
Hello Ray,

Thank you very much for your effort in clarifiying the things. I really appreciate the way you are explaining.Its really quite useful for me but still i am trying to get the desired result.

Once again i did all the changes &  included an IF statement which says whether the condition is met or not ! I am posting the sequence file & VI file.. please do check it once if at all i am missing anything.

I am playing around to get the right concept to interface the labview output to the teststand so that the result is dynamically updated from labview  to the teststand windows.
 But till now i am not successful in getting it work.
Basically in this file i am checking for the FT_Status Output. I have connected it to the teststand the way you mentioned & left other things to the defualt value.
Now when i run the test stand window, i am getting hte FT_Staus value 1 on the labview window, but the result  "1" is not updated on the test stand side . I dont have a clue
why its happening like this.

Am i missing any thing in this.

Basically i want to run this simple example & once this is done i will go on with the top level VI.

Thank you very much for your kind help.

Cheers,
Basha


Download All
0 Kudos
Message 10 of 12
(4,044 Views)