01-31-2006 03:15 PM
01-31-2006 04:25 PM
My first thought is why make it into two separate threads? It may be easier to have it move then read position in a loop. This would simplify the problem and make things easier.
If you need to use threads I have two thoughts. Use LabVIEW 8.0 Shared Variable to share information between the two threads. You can also FIFO commands using the Shared Variable. Second thought is that you may be overrunning one of the threads. You can probably read faster that you can move so put loop count indicators on the front panel to see how many iterating each thread has run. You may be surprised by what you see.
Let me know if this is any help. If not, fire me back a specific question and I will try to help,
Matt
02-01-2006 01:31 AM
Have a look at Rendezvous with SubVIs.vi in the examples shipped with labview. This sounds like what you want to do.
Hope this helps
David
02-01-2006 04:09 AM