Re: Using queue's with DAQ cards and general programing???
- From: Ben <x@xxxxxxxx>
- Date: Mon, 5 Dec 2005 19:40:50 -0600 (CST)
<img src="http://forums.ni.com/attachments/ni/170/155171/1/Data%20ACquisition.JPG">
A) Do not create or acquire repeatedly. Do it once before the loop starts and just insert new elements in the queue.
B) Similar to what I said for A. Destroy the task when you leave the loop.
C) Add a wait timer in all loops so they do not run too fast and goble up all of the CPU.
D) Send data two places. Your existing queue sends data to second loop which does logging only (in my revised scheme). Move all of your number crunching from loop two to the display loop at the bottom. Feed the bottom from a second queue you will be feeding as you are doing with your existing "data" queue in the top loop.This will eliminate three queues and prevent your number crunching from gettin the way of your data logging. The user interface should be the only loop that can be hurt number crunching and dispaly updates.
Have fun,
Ben
Message Edited by Ben on 12-05-2005 07:19 PM
Data ACquisition.JPG:
http://forums.ni.com/attachments/ni/170/155171/1/Data ACquisition.JPG
.
- Follow-Ups:
- References:
- Prev by Date: Re: Can I install and run Labview 7.1, 6.1 and 6.02 on the same PC?
- Next by Date: Create custom function f(x) for determing values of Y.
- Previous by thread: Re: Using queue's with DAQ cards and general programing???
- Next by thread: Re: Using queue's with DAQ cards and general programing???
- Index(es):
Relevant Pages
|