NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

using the previous step's output as next step's input in teststand

dear sir/madam;
I developed an application in labwindows CVI which executes in CVI currectly.Then I executed it  in Test stand.
I created an Action  step for
int Pbit(unsigned char bit_data[50000]) 
 
"bit_data" is the output of this  function.The next Test Stand step is a "Pass/Fail" step for
 
int Vme_test(unsigned char *bit_fail_data,int *vme_stat)
 
"bit_data" is the input for this function and vme_stat is the out put which is generated by using "bit_data".
 
My question is how to identify  "description" and "value expression" of "bit_data" as given in attached files.I tried fileglobals but I think I didnot identify it correctly and I received "No size info" error.
 
Waiting for your immediate reply.
Best Regards  
Download All
0 Kudos
Message 1 of 8
(5,137 Views)

Hi,

You could store your return value in say a local variable eg "Locals.MyPbitResult". Therefore in the Value Expression inset "Locals.MyPbitResult" (or some other such suitable named variable)

Then in your call to vmetest your input you would use "Locals.MyPbitResult" in the Value Expresion and your output use "Step.Result.PassFail", I am assuming you have used a Pass Fail Step Type for the vmetest step.

Have a look at the example TestStand\Examples\AccessingArrays how information is passed from one step to another.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 8
(5,126 Views)

Hi,

thank you form your immediate reply.But I've tried the way you described.It did not workals.But I think I have problem about the type of the local.As you know my variable is unsigned char(or string array in other words).Which type of local I must identify?a string? a number?a container?

 

thanks

0 Kudos
Message 3 of 8
(5,123 Views)

Hi,

You probably need to use a string in TestStand.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(5,119 Views)
Dear Ray;
I've tried as you adviced to identify a local but although I idnetify my array size as bit_data[50000] it always stops at "2576" when copying my string to bit_data[50000].Then teststand gives 17702 error and stops.Although until 2576 the for loop below;
for (q = 0; q< 5000; q++)
   {   bit_data[q] = bit_data_1[q];
    }
works, at magic number 2576 it stops and "no size info" error appear in the watch window for bit_data content.
 
My code is attached below.I'm still not sure how to identify my test stand step variable description and value expression for this function.
 
Waiting for your help 😞
 
Best regards
0 Kudos
Message 5 of 8
(5,087 Views)

Hi,

I tried your code,

In the TestStand I configure to pass an array of numbers, instead of a string, seems to work ok.

see attached jpg.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 6 of 8
(5,060 Views)

Hi Ray;

I did what you said.But I can get only the 0..499 array elements.When it's time for getting  the 500. element to the local varialble "no size info" returns.Is there any limit for number array elemnets.Although we set the Dim size 50000 it stops at 500.Is there any other setting to set higher?

Best Regards..

  

0 Kudos
Message 7 of 8
(5,044 Views)

Hi,

I dont think so, are you using TS3.x?

When you say it stops at 500, where about does it stop.

Do you have an example of your sequence file that shows this problem.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 8 of 8
(5,037 Views)