Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

daqmx acquisition trigger

Hello,

 

I would generate a voltage ramp and measure it (acquiring on analog input) when a digital trigger event occurs. The trigger event can occur more than once during the ramp time and need to measure the voltage ramp level at any trigger event.

 

As first step (I'm a Labview begginner) I tried with the vi in attachment. This should generate a ramp and only the first acquisition sould be performed.

 

The top part (ramp generation) works fine alone. Actually I need to start the ramp generation with another digital trigger (in example on PFI0) but this is another problem (see post "Ramp generation with DAQmx and Start Trigger on PFI0" unsolved so far).

 

Neglecting the start problem, by adding the bottom part (ramp acquisition) the application does not work. The ramp starts but after one output steps the generation stops and a warning appears (see attached snapshots). At this point the application end.

 

The bottom part (acquisition) is directly derived from the examples provided by ni but it does not help me.

 

In my mind the proposed vi should perform the following operation:

@ the falling edge on PFI1, acquisition of 1000 samples (with rate of 1000samples per second) using the board clock. After the 1000 samples acquisition the bottom part ends independently from the ramp generation part.

 

What I'm getting wrong?

 

Many thanks,

 

Matteo

0 Kudos
Message 1 of 1
(3,583 Views)