04-01-2008 01:47 PM
04-01-2008 05:20 PM
04-02-2008 07:36 AM
Hi jigg,
Thanks for responding.
Looking at your explanations 1, 2 and 3, I am not sure which explanation matches what I am trying to do.
In your example, it looks like the messages almost pop up at the same time, but I think the first one happens first, and the second one happens an instant later.
Whereas if you did not launch the first one in a new thread, the second one would not pop up until you click OK on the first one.
I want to run 2 steps synchronously, simulataneously, at the exact same time.
In my example, I want to set 2 different Analog Outputs at the same voltage at the same time.
If the first one is done first, it causes and error in the system and shuts it down.
I am attaching an example of what I am trying to do. I would like the steps between the Batch Synchonization (Enter, Exit) steps to execute at the exact same time.
Your example may work, but I think it would execute the step to set the first AO then an instant later execute the step to set the second AO.
I would like both steps to start at the same moment in time.
B.W.
04-02-2008 09:26 AM
Hi,
It sounds like you need to use the Synchronization Step Types.
Check out the example in <TestStand>\Examples\Synchronization.
Regards
Ray Farmer
04-02-2008 12:44 PM
What you want is going to be impossible using TestStand only. Because you want to synchronize two pieces of hardware using software. You cannot control the processor or the bus that you are communicating with your hardware on to synchronize from TestStand only. No processor can truly multithread. So how exact do you have to be? Within 1 Second? Within 1 micro second? Within 1 nano second? This will be a limitation of your hardware.
The closest you can get with TestStand is to use my example but throw in a rondezvous like Ray suggested. I'll post an example of what I'm talking about. If you don't know about Rondezvous' basically they just wait until all threads get to a certain point before moving on.
Let me know if that will work for you or if you have any questions. Also, look at the examples Ray suggested to see some cool stuff with synchronization.
04-02-2008 02:23 PM
04-02-2008 02:30 PM