NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone used Labview to gather CAN data and pass back to Test Stand?

I am calling some CAN vi's to read CAN datalink data and pass back to Test Stand for evaluation.  If I am gathering 10 samples for 10 channels of CAN data, I get a 2D [10] [10] array returned to Test Stand from the Labview call.  It seems cumbersome to work with a 10 x 10 array especially when each row corresponds to a particular CAN channel.  The user must know which row in the array corresponds to which channel.  I am just curious if any one else is doing this sort of testing and what approach is used.
 
thanks.
0 Kudos
Message 1 of 3
(2,977 Views)

Hi,

Why dont you have a VI that just returns one channels worth of data ie 1D array then execute repeatedly 10 times to get each channel. If the step type is of Mult Limit Numeric type at least you can evaluate each channels data on return.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,955 Views)
Howdy buff,

Ray has a good suggestion. You may also want to look at the example
AccessingArrays in the <TestStand>\Examples folder for an example fo working with 2d arrays in TestStand.

Hope this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 3 of 3
(2,924 Views)