Example Code

Analog Output with Start and Stop Triggering

Code and Documents

Attachment

Overview

 Demonstrates how to trigger an Analog Output task to begin with a rising edge on a trigger line and end with a falling edge while forcing a return to 0V when the task ends.

Description

 This VI shows how to use a digital trigger line to both start and stop an Analog Output task while ensuring that the output returns to 0V after execution.

Hardware and Software Requirements

 HW: DAQ device with two available DI and one available AO line

 SW: DAQmx

Steps to Implement or Execute Code

 Ensure that the trigger signal is available on both digital input lines simultaneously to be used in the Start Trigger and Digital Input task.

Additional Information or References

 

Hunter D.
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Pieterson
Member
Member
on

Hi,

I am completely new to LabVIEW and getting trouble regarding triggering the analog ouput. I am in the stage of similar requirement where i need to trigger analog output signal using digital one.The use of digital edge is clear to me.But,what does port/line mean? Can you please elaborae it? How do I hardware connect them?Should I physically wire port0/line to PFI.

Regards.

wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

>I am completely new to LabVIEW and getting trouble regarding triggering the analog ouput. I am in the stage of similar requirement where i need to trigger analog output signal using digital one.The use of digital edge is clear to me.But,what does port/line mean? Can you please elaborae it? How do I hardware connect them?Should I physically wire port0/line to PFI.

 

Cross posted here.

Contributors