LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use queues within continuous data acquisition?

Hello,
 
I want to use queues to save data from a load cell. Data acquisition needs to be continuous. I have tried something, but it's not working! The problem is that with my VI 'essai_8', the data is not acquire continuously.
 
Thank you for your help.
0 Kudos
Message 1 of 5
(3,749 Views)

Here is a way to do it if you really want to use queus. I changed a lot in vi to many things to list just have a look. here is a copy in version 7.1. what version of LV are you using.

I have also included a way to do this without queue




Joe.
"NOTHING IS EVER EASY"
Download All
0 Kudos
Message 2 of 5
(3,739 Views)

I'm being a little picky here, but since Joe Hoskins is a Tennessee Volunteer and I'm an LSU Tiger, I feel compelled to show him up.  Smiley Tongue

If the producer loop ever has an error, the consumer loop will keep running until the stop button is pressed.  One should put in an error check as shown in the attached vi.  If the producer loop develops an error and ends, and the queue is closed, the consumer loop will produce an error when trying to read from a closed queue and it will stop automatically as well.

Joe:  Good luck to the Vols, that is until LSU marches into Knoxville this autumn.  Remember, we owe you one for ruining our perfect season last year

Message Edited by tbob on 07-13-2006 12:41 PM

- tbob

Inventor of the WORM Global
Message 3 of 5
(3,729 Views)
OK you got me on that one, however you to could improve on your code and make it to where the LVM does not execute when there is an error.Of course we could go on and on but some of us do not have the time. Got to go put out some fires.
 
Were going to need the luck this year, it's good to see you back on the forum again. Hows the heart.

Message Edited by Jhoskins on 07-13-2006 04:18 PM




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 5
(3,722 Views)
Joe:  I think we beat this one to death.  Heart is fine, thanx for asking.  It is good to be back.
- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(3,712 Views)