From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization of PFI Output with Analog Measurement (NI PXI-6284)

Hi,

 

The following is being done on the NI PXI-6284.

 

I'm generating a 3ms pulse output on one of the PFI(PFI 12) outputs. When I start this pulse (Rising Edge) I have to start measuring one of the analog channel inputs (AI5).

 

Does anyone have an idea on how I can go about doing this?

 

I have attached a screen shot of what I've done.

 

 

Regards

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

Hi Riaan1,

Look for the example: "Analog Input\Voltage (with Events) - Continuous Input.vi".

First try to run this VI without using any trigger options, then...

Under "Trigger Settings" select the "Digital Start" tab and then select your PFI line.

 

Hope it helps!

 

0 Kudos
Message 2 of 3
(3,073 Views)

Hello,

 

Please take a look at the snippet attached.  

 

Basically, you are going to send a start trigger from the Digital Output task to start the Analog Input task (following the architecture shown in the attached image).  The analog input task will be the slave task and the digital output will be the master task.  

 

Also, here is a very useful document outlining synchronization using LabVIEW:

 

Synchronization Explained

http://www.ni.com/white-paper/11369/en/

 

 

-Joe
0 Kudos
Message 3 of 3
(3,056 Views)