Example Code

Serial C Series Module Pseudo Continuous DO with User Controlled DI

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview
The example shows how to reserve only one task at a time using the serial Digital I/O C Series Modul between two tasks

Description:
The VI would be executed by using the access of the digital output of the DAQmx and, depends on the event defined by the VI, would then proceed to the next task. The trigger of the event structure would be the mouse event and would perform a read operation with the Digital Input after the generated signal is produced

Steps to implement or execute code
To implement this example:

  1. Define the digital lines to be used
  2. Set the value of the digital output to be generated
  3. (Optional) Set the rest of the parameters as needed
  4. Run the VI
  5. (Optional) Turn on the Highlight Execution to see the flow of the VI


To execute this example:

  1. Install the required software.
  2. Connect the DAQ hardware that supports the DIO features
  3. Confirm the connection with the MAX with TestPanel
  4. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible

Hardware
cDAQ with C series Digital IO Module

 

fp.JPG

 

bd.JPG

 

**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.