NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing arrays around in teststand

I have figured out how to write lots of test data for multiple tests
into multiple arrays. I create my arrays in TestStand, and in LabView I
can pass the data into the arrays with appropriate calls after testing.

Now I would like to call several other routines which are at the level
of a higher .seq from where the tests are performed. E.G.

Master.seq
-DataCollect.seq collects data to arrays
-SomeOtherDataCollect.seq collects data for other tests to arrays
-DataManipulation.seq Does calculations on test data in arrays and puts
results of calculations in its own variables
-Output.seq handles some file output or other matters

Now the trouble is I want my DataManipulation.seq to handle generic sets
of arrays without having to kn
ow which arrays were filled because it
will vary greatly depending on how many other DataCollect.seq I add.
This will vary and we likely have some setups with a few data collection
routines and some with many DataCollect sequences.

Any ideas on how a DataManipulation.seq can be written so it does not
have to know which specific arrays contain data, or that it can be
passed the proper info? I'm not sure right now how to handle that.

TIA
EMV010@email.mot.com


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 2
(6,074 Views)
Let's assume that you are interested in 1D arrays of numbers. You can
make a 2D array and treat is as an array of arrays. For example,
array[0] is the first array of interest. Array[1] is the 2nd array of
interest, etc.

There are several functions in the PropertyObject class of the
TestStand API to manipulate arrays. There are also functions in the
expressions which can manipulate arrays. You can dynamically resize
arrays or redimension arrays. I'm not sure how easy this may be, and
you may hit a few roadblocks. But I think this will help you in your
quest.

I believe there is a bug in TS 1.0 which is fixed with a patch. You
can download tspatch2.exe from the anonymous ftp site, ftp.natinst.com,
in the support/teststand/updates/1.0 directory.
From a web browser, ftp://ftp.natinst.com/support/teststand/updates/1.0

Check the readme file for a list of bug fixes. These fixes will also
be included in TestStand 1.0.1.

Thanks,
Paul Mueller

In article <7mi2e9$gno$1@nnrp1.deja.com>,
emv010@email.mot.com wrote:
> I have figured out how to write lots of test data for multiple tests
> into multiple arrays. I create my arrays in TestStand, and in LabView
I
> can pass the data into the arrays with appropriate calls after
testing.
>
> Now I would like to call several other routines which are at the level
> of a higher .seq from where the tests are performed. E.G.
>
> Master.seq
> -DataCollect.seq collects data to arrays
> -SomeOtherDataCollect.seq collects data for other tests to arrays
> -DataManipulation.seq Does calculations on test data in arrays and
puts
> results of calculations in its own variables
> -Output.seq handles some file output or other matters
>
> Now the trouble is I want my DataManipulation.seq to handle generic
sets
> of arrays without having to know which arrays were filled because it
> will vary greatly depending on how many other DataCollect.seq I add.
> This will vary and we likely have some setups with a few data
collection
> routines and some with many DataCollect sequences.
>
> Any ideas on how a DataManipulation.seq can be written so it does not
> have to know which specific arrays contain data, or that it can be
> passed the proper info? I'm not sure right now how to handle that.
>
> TIA
> EMV010@email.mot.com
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 2 of 2
(6,074 Views)