NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

threads and synchronisation control problem

Hi, all:

 

I got a problem of keep executing steps and sending data at the same time.

For example, in a sequence I have about 10 steps about measuring volts or current.

During these processes I have to keep sending the CAN BUS message with high rate,

otherwise the device won't have the correct reaction.

 

How could I do that in TestStand, is these any possible examples?

 

I did some research with the forum already, but can not really find the answer I need.

 

Any reply or example would be really helpful. Thanks.

 

Eric

0 Kudos
Message 1 of 6
(4,179 Views)

Eric,

 

There is an example that we have been working on to do this with a LabVIEW VI.  The example is attached to this post and starts a VI running that will run completely asychronously from the MainSequence, but will stop when the MainSequence does, and if it has an error will report that to the user and stop the execution.

 

This example does not include communication between the asynchronously running VI and the running test sequence.  This communication could be accomplished using queues (LabVIEW or TestStand), notifiers, or global variables.  Queues are the best choice in most cases for properly communicating between two running code modules.

 

I have saved the TestStand sequence files with TestStand 4.1, and the LabVIEW VIs with 8.5.1.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 6
(4,162 Views)
Dear Sir: Hi, I try the example already; it did really helpful and slove my problem for me.

Thanks for your help.  Smiley Very Happy

 Eric

 

0 Kudos
Message 3 of 6
(4,106 Views)

Hi,

Can you please submit the example in TS 4.0.

Thank you.

Elik

0 Kudos
Message 4 of 6
(3,850 Views)

Here are the files saved in 4.0.  I have not re-validated them.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 5 of 6
(3,823 Views)

Thank you Josh.

Regards

Elik

0 Kudos
Message 6 of 6
(3,816 Views)