LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How would you modify Cont Acq Graph Voltage-Analog SW Trigger.Vi sample to do continuous Triggering. New to labview

Can you please supply some more information on what you need to do exactly, hardware involved, LabVIEW version, etc.  The Con Acq Graph Voltage-Analog SW Trigger.vi uses an analog software trigger where you can specify the number of pretrigger samples and then will continuously aquire until you stop the program.  So, are you trying to have a software trigger and then aquire just a finite amount of points?  Once these finite amount of points are aquired then wait till the trigger is reached again?  If this is so, we do have examples that do retriggerable acquisition in the example finder in LabVIEW (Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Analog Measurements).  These examples are:

 

Acq&Graph Voltage-Int Clk-HW Trig Restarts.vi

Acq&Graph Voltage-Int Clk-SW Trig Restarts.vi

Regards,
Jordan F
National Instruments
0 Kudos
Message 2 of 4
(3,471 Views)

Hy Jordan ,

I would to use the same example to do a continuous acquisition (with a decimation factor) and then, when the trigger happens,acquire all the sample at the maximum value. In add i would to try to put in the software trigger a button to force the acquisition when is pressed.

I did it  (see the vi attached), but:

When i trig with the added button, i receive always the pretrigger zero.

Can you please have a look to the script please, probably i made an trivial error but i cannot see it.

 

0 Kudos
Message 3 of 4
(3,329 Views)

Hello Gianko25,

 

What is the daq card that you are using? If you are trying to perform software trigger, I would recommend the following example on our community site.

 

Analog Acquisition with Software Analog Reference Trigger

http://decibel.ni.com/content/docs/DOC-5583

Andy Chang
National Instruments
0 Kudos
Message 4 of 4
(3,310 Views)