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

Setting the Direction of the Digital Lines on the USB-845x in LabVIEW

Hardware: Industrial Communications

Problem:
How do I set the direction of the digital lines on my USB-845x in LabVIEW?

Solution:
To set the digital direction of the digital lines on the USB-845x, use the Device Property node from the 845x palette. Make sure you set an active port before you use the mask for the digital direction. If you don't, you will get an error saying you have an invalid input parameter to the property node.



The DIO Line Direction Map input is a U8 where each bit represents one of the digital lines.  If bit X equals 0 then digital line X is an input.  If bit X equals 1 then digital line X is an output.

Decimal Binary Inputs Outputs
0 00000000 Lines 0:7
None
255 11111111 None Lines 0:7
15 00001111 Lines 4:7 Lines 0:3


Related Links:
Products and Services: USB-8451 Product Page

Attachments:


DigitalDirection.jpg


Report Date: 03/31/2006
Last Updated: 03/27/2009
Document ID: 3VUFQJUX

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