Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Working with the same PCI-6023E with two different tasks

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

 

0 Kudos
Message 1 of 18
(4,034 Views)

It should work without problems, did you try? 

greetings from the Netherlands
0 Kudos
Message 2 of 18
(4,030 Views)

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.

Product Support Engineer
National Instruments
0 Kudos
Message 3 of 18
(4,017 Views)

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.

0 Kudos
Message 4 of 18
(4,010 Views)

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

 

0 Kudos
Message 5 of 18
(4,003 Views)

Indeed this can be done.

Do you need a trigger for each sample, or just start the acquisition of the defined set of samples?

greetings from the Netherlands
0 Kudos
Message 6 of 18
(4,000 Views)

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

0 Kudos
Message 7 of 18
(3,994 Views)

Check the standard examples 

in this case 

C:\Program Files (x86)\National Instruments\LabVIEW 2010\examples\DAQmx\Analog In\Measure Voltage.llb\Acq&Graph Voltage-Ext Clk.vi

greetings from the Netherlands
0 Kudos
Message 8 of 18
(3,991 Views)

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 

0 Kudos
Message 9 of 18
(3,987 Views)

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.

Product Support Engineer
National Instruments
0 Kudos
Message 10 of 18
(3,978 Views)