Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

How Can I Use the Trigger Inputs On My Motion Controller as General Purpose DIO?

Hardware: Motion Control>>Controllers

Problem:
I read in the NI-Motion help that it is possible to use the High Speed Capture inputs on my motion controller as general purpose DIO. How do I configure my VI to do this?

Solution:
On a motion controller card, the trigger inputs are normally used to perform High Speed Capture. For this reason, you need the High Speed Capture VIs to use the trigger inputs as general purpose DIO. In order to use the trigger lines on an axis for DIO, you need not control a motor on the same axis.

Follow these steps to implement this in LabVIEW:
  1. Insert Configure High-Speed Capture.flx and ensure that the correct Board ID and Axis number inputs are provided.
  2. Set the Capture Mode input to either Inverting Digital Input or Non-Inverting Digital Input. This will set the trigger lines to work as normal DIO.
  3. Once this is done, you can use the Read High Speed Capture Status VI to monitor the input. It is not necessary to enable high-speed capture as there is no actual capture being done.
The linked community example demonstrates how this action can be performed.

Related Links:
KnowledgeBase 32K7DM85:  What is the Maximum Rate of High Speed Capture for NI 7344 and 7350?
Developer Zone Community: Trigger Inputs Used as DIO on a NI-Motion Controller

Attachments:





Report Date: 02/24/2009
Last Updated: 03/27/2009
Document ID: 4UNHBR6T

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit