10-10-2011 09:00 AM
I have a PCI-6023 Data Acquisition card.
In my application I need to work with it with two different tasks (sample rate, number of points etc.) in a parallel manner.
Is it possible to do that?
Abe
10-10-2011 01:46 PM
10-11-2011 10:16 AM
You can do this easily with LabVIEW. If you are using LabVIEW, you can look at examples under Help -> Find Examples -> Hardware Input and Output -> DAQmx -> Synchronization -> Multi Function. You really only need this if you want to run at the same time, which is different than in parallel. Both are viable. To run your program in parallel, just create a task like normal, then create your second one in the same VI with another channel. You may want to combine your error wires.
10-11-2011 12:24 PM
You CANNOT run two different tasks if the tasks are using the same hardware resource. In other words, two different analog reads cannot be done.
10-11-2011 02:51 PM
I understand that.
My question is as follows:
Can I configure the same hardware resource (in my case: PCI-6023E) for the following signals:
a) Analog signal to read
b) Interrupt signal to trigger the analog signal reading in (a)
Is it possible thing to do in LabView 7.1?
Thanks,
Abe
10-11-2011 03:06 PM
10-12-2011 12:43 AM
I have to acquire multiple data frames using a TRIGGERING mechanism.
This indeed means that I need to work with multiple triggers.
Do you have any example vi or design that demonstrate it?
Thanks,
Abe
10-12-2011 01:04 AM
10-12-2011 03:58 AM
I succedded in configuring the analog channel to acquire data up to a digital trigger (TRIG1 pin).
In my application I need to repeat this sequence for 150 - that is 150 triggerig signals. However, the time between two consecutive triggers is 200ms.
I tried to do it with a loop structure, which has in it the following VIs:
1. DAQmx Reference Digital Edge configure VI
2. DAQmd Analog Channel Read VI
3. DAQmx STOP Task
When I ran this code, I saw that it doesn't respond fast enough. That is to say, instead of acquiring 150 frames (for 150 triggers), I succeed to acquire
only 75 of them.
Can someone advise me how I should make it faster?
Thanks,
Abe
10-12-2011 01:43 PM
Hi Abe_A,
I think what is happening is that you are toggling your signal that you are using as a trigger. The DAQmx Trigger vi will only trigger on either rising edge or fallling edge, not both. I am suspecting this because you are seeing half of the possible frames.
Jason L.