To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example allows the user to output a digital pulse at the same point in the period of the generated the signal.
Description
This is useful if you need to send out a pulse to an external device or even and internal PXI device.
Requirements
Software:
Labview 2012 (or compatible)
NI-Fgen driver which is compatible with your hardware and version of LabVIEW
Hardware:
NI Fgen device
Steps to Implement Code
1. We started with the shipping example Fgen Sweep Generator.vi.
2. Then, we dropped down the niFgen Export Signal.vi. Setup the input terminal "Signal" to be a Marker Event.
3. Now, right-click the Instrument Handle Out terminal and create a property node. Navigate to Events>Marker>Output Behavior. Make this property a Pulse. Then add the Marker Position property which can be found in Arbritary Wfm>Arbirary Wfm Mode>Marker Position. The Marker Position property defines where in the waveform the pulse will occur.
4. Wire them together as seen in the attached VI or image.
Additional Notes
This example can be easily changed for an NI-SCOPE or even an HSDIO card.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.