Discussion:
digital I/O to be configured as binary counter
(too old to reply)
AbuMohamed
2007-06-21 17:40:17 UTC
Permalink
I want to configure my E series card to count as a Binary counter, through the write to Digital IO. I want 3lines of the Digital IO port to give, 1st line (01010101 etc), 2nd (001100110011 etc) and the third (0000111100001111 etc) in continueous mode.Is this posible,  have seen in the prevoius posts that E series and I qoute "the E Series DAQ boards only have static DIO
lines.  In other words, they are not hardware-timed, so they can't be
used in a continuous digital task.  With this device, you can only perform software-timed reads and writes" . How can I design this sequence in Labview 7 and later
Matt A
2007-06-22 19:40:14 UTC
Permalink
Hello Abu Mohamed,
 
The M Series FAQ page <a href="http://zone.ni.com/devzone/cda/tut/p/id/3614#toc4" target="_blank">here</a> provides some insight into the different between static DIO (software-timed) and clocked DIO (hardware-timed). Specifically, that document states:



Q: What is the difference between software-timed and clocked digital I/O?A: Software-timed digital I/O is system dependent, and speeds vary based on the processing power of the host PC. This is also referred to as ?static? DIO. Clocked digital I/O is hardware-timed, meaning the update or sampling rate is governed by a stable clock source. M Series devices can use an onboard clock source or an external signal as the digital timebase.


You can still generate your count pattern on the digital lines, however the timing will be dependant on your system and will probably only be accurate in the millisecond range. For some examples of digital generation, I would recommend that you&nbsp;check out the&nbsp;NI Example Finder, by going to Help&gt;&gt;Find Examples... in LabVIEW. If you are using the Traditional NI-DAQ (Legacy) driver, you can find the examples&nbsp;by going to the Browse tab and Browse according to Directory&nbsp;Structure. The examples are located at daq&gt;&gt;digital&gt;&gt;E-series.llb.
&nbsp;
If you are using the NI-DAQmx driver, you can find the examples by selecting Browse according to Task and then navigating to Hardware Input and Output&gt;&gt;DAQmx&gt;&gt;Digital Generation.&nbsp;Specifically, you may want to examine the examples called CDO Single Point clocked by Counter (E).vi and Continuous CDIO with external clock (E).vi for Traditional NI-DAQ (Legacy) and Writ Dig Port.vi for NI-DAQmx.
&nbsp;

Continue reading on narkive:
Search results for 'digital I/O to be configured as binary counter' (Questions and Answers)
10
replies
can a laptop have more then one hard drive?
started 2008-02-06 12:14:25 UTC
hardware
Loading...