Discussion:
How can digital pins be used as input and output at same time?
(too old to reply)
stilly32
2007-03-02 16:40:16 UTC
Permalink
Hi,
You'll want to set your Elvis in Bypass Mode and use DAQmx&nbsp;in order to read and write on the same lines (DI). Check out the <a href="http://digital.ni.com/manuals.nsf/websearch/11E6BA4103D9ADD086257103005C97E0" target="_blank">Elvis User Manual</a>, page 79. <a href="http://forums.ni.com/ni/board/message?board.id=10&amp;message.id=318&amp;requireLogin=False" target="_blank">This post</a>&nbsp;also has some good info.
Hope this helps, please post back if you have additional questions.
Cheers,
Andrew S
National Instruments
stilly32
2007-03-05 23:10:14 UTC
Permalink
Hi,
To read and write on the same lines, the best place to start would be the Write Dig Port shipping example. You would then just need to add a DAQmx Read.vi. Something like this:
<img src="Loading Image...">
Also, if you just need to read from lines 0-3 and write from 4-7, you'll just want to use the "write dig chan" and "read dig chan" examples and specify the correct channels.
Hope this helps,
Andrew S
&nbsp;
&nbsp;Message Edited by stilly32 on 03-05-2007 04:53 PM


write_read_dig_port.JPG:
http://forums.ni.com/attachments/ni/70/6467/1/write_read_dig_port.JPG
Continue reading on narkive:
Loading...