Discussion:
threads and synchronisation control problem
(too old to reply)
EricLu
2008-08-13 04:10:10 UTC
Permalink
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
Josh W.
2008-08-13 19:10:17 UTC
Permalink
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.


AsynchModule41.zip:
http://forums.ni.com/ni/attachments/ni/330/20875/1/AsynchModule41.zip
Continue reading on narkive:
Loading...