Using the Trigger SMB Connector on cRIO 9012/9014 Controllers as Digital I/O Pin

Updated Oct 2, 2023

Environment

Hardware

  • cRIO-9012
  • cRIO-9014

Software

  • LabVIEW

Operating System

  • VxWorks

 The procedure involves calling the following VX works functions on the realtime target:
  • dio5200ReadPin(1) to set as input
  • dio5200WritePin(1, true/false) to set as HIGH LOW digital output
Please observe that the input/output characteristics for the SMB connector specified in the manual still apply.

Preparatory steps

 

Step-by-Step solution

  1. Download and extract the 901x SMB Pin 8.2.zip linked below that contains the example project.
  2. Open the example project file cRIO-901x SMB DIO.lvproj
  3. Right-click the cRIO Target and select Properties
  4. Make sure the chassis IP is entered correctly (brightly lit green dot on icon)
  5. In the Project Explorer, open the cRIO-901x Read SMB Pin.vi
 
  1. In the Block Diagram window, right-click the Call Library Function Node and select Configure...
  2. As Library Path, select the path to the vx_exec.out file downloaded before and click OK.
  3. Ignore the warning window about wrong DLL type.
  4. Save and close the VI.
  5. In the Project Explorer, right-click the Read Example.vi and select Run.

Expected Result

The VI should execute without errors and the Data boolean indicator on the Front Panel should now display true (green). When pulling the pin to low, it should turn off (black).