Visit our LabVIEW Wiki Hardware Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Jan 18 2007, 07:39 PM
Post
#1
|
|||
|
More Active Member Posts: 25 Joined: 25-June 04 From: Pawcatuck, CT Member No.: 483 Using LabVIEW Since:2002 LV:7.1.1 ,6.1 ,.
|
I currently have a VI that controls the discharge of a battery cell via several GPIB devices. These devices need to be fairly well timed for everything to work right and the discharge to be successful. I also need to acquire 15 seconds of data during the discharge like cell voltage and current and a few other voltage readings.
I currently use an external device to acquire the data and wish to switch to a PCI-6143 card that happens to be installed in the computer I'm using. I have never actually used a card for data acquisition. I've always used a secondary external device. I can set up the card to get all the data I need, that is not the problem. The problem is that I cannot figure out how to integrate the data acquisition into my VI and get it to run correctly. Currently if I start the 6143 acquiring its data my VI waits until it has it all before continuing on to the next frame. Is there a way to trigger this thing in one frame and then continue on with the rest of my VI while it's recording the data?
|
||
|
|
|||
| Ad |
Jan 18 2007, 07:39 PM
Post
#
|
||
|
|
|
||
|
|
|||
Jan 18 2007, 07:47 PM
Post
#2
|
|||
![]() Very Active Member Posts: 138 Joined: 26-January 06 From: Cambridge, MA Member No.: 3989 Using LabVIEW Since:1999 LV:8.5 ,8.6 ,.
|
Is there a way to trigger this thing in one frame and then continue on with the rest of my VI while it's recording the data? Put the acquisition into a separate loop. Use a notifier to trigger the acquisition, and a queue or similar to pass the data back to your main loop when the acquisition completes.
|
||
|
|
|||
Jan 19 2007, 10:50 PM
Post
#3
|
|||
![]() Very Active Member Posts: 64 Joined: 8-April 05 From: Antwerp - Belgium Member No.: 2015 Using LabVIEW Since:1996 LV:7.1.1 ,8.20 ,6.1
|
You did not provide a screenshot of your code or any VIs so I have to guess what's going wrong.
It guess you should use the lower level DaqMx VIs instead of one VI that starts the daq tasks and fetches 15 seconds of data. Did you have a look at the LabVIEW daqmx analog input examples, there must be an example that gives you a hint how to handle this task?
|
||
|
|
|||
![]() ![]() |
| Time is now: 22nd November 2008 - 06:29 AM |