LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging scope

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(2,911 Views)
Solution
Accepted by topic author alecjcook

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

Message 2 of 4
(2,898 Views)

Thanks so much!! *DOH*

Also, some of us don't have the luxuary of the event structure :'(

Kudos to you!

0 Kudos
Message 3 of 4
(2,889 Views)

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.

0 Kudos
Message 4 of 4
(2,885 Views)