06-23-2010 08:46 AM
Hi,
I am trying to create a scope that will log a section of data so that is can be viewed at a later time... I am using a queue to store the data that I am logging, although when the section of my code is executed that stores the data in the queue, no data ends up there and no error is produced. I really can not see what I am doing wrong. Is there any chance someone could have a look att the attached vi (saved for LabVIEW 8.0) and see what I'm doing wrong it'd be greatly appreciated!
Many thanks, Alec
Solved! Go to Solution.
06-23-2010 09:22 AM
You are AND-ing the Capture rise event with a FALSE constant, which will always give you false and you'll never go to the "Update Stored" event. Remove that piece of the code and it will work as you intended.
The better way to determine which button was pressed would be to use an event structure. Also, it would be better to have one Stop button that stops all the loops. See this post for options on how to do that: http://forums.ni.com/t5/LabVIEW/What-is-the-preferred-way-to-stop-multiple-loops/m-p/1035851
06-23-2010 09:50 AM
Thanks so much!! *DOH*
Also, some of us don't have the luxuary of the event structure :'(
Kudos to you!
06-23-2010 09:57 AM
If you can't use an event structure (e.g. on a real-time computer) then the better way would be to build an array with all your booleans then use the search 1D array for a TRUE. The resulting index connects to your case structure.