I need some serious help! In the attachment, the loop in vw_test_que vwpulse reads from the analog in buffer continuously, and the loop feeds the data to subvi seek position, which look at the received analog input data to determine what to do next. The program doesn't work, and I can't pin point what's wrong at the moment. I tried function global, queue, and regular global (current method used in the file), but none of them work properly for me. I don't exclude the possibility that my data acqusition code could have some problem as well, please take a look.
The analog input data gives the position of a energize motor. If the seek position subvi doesn't get the data quickly enough, the position would be lost. Let me know if you can help. Thanks!
It would be easier if you could attach your entire project (as a .zip) including all subVIs and type definitions.
Can you be more specific than "doesn't work"? The correct approach to transferring data between two loops in this situation is a queue to avoid losing data. Try removing your data acquisition and replacing it with a loop that feeds simulated data to the queue to verify that your logic works properly; this will help determine if your problem is your measurement code or your data acquisition.
Try using debugging techniques like highlight execution, breakpoints and probes.
If you are trying to pass data using queues, there are examples in the LabVIEW Example Finder that demonstrate how to do that. Look at Queue Basics.vi
What is your program trying to do?
What is the problem with it?
Have you tried using the basic debugging techniques such as breakpoints and probes?
The following is missing from your program.