From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
To download NI software, including the products shown below, visit ni.com/downloads.
To execute this example:
Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible
Hardware
cDAQ with C series Digital IO and COunter Input Module
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
I have been spending the better part of a day trying to get the 9401 to multitask in a 9174 chassis. This VI was very helpful in designing the layout, however, you must reserve each of the tasks before they run or it will throw an error. This is related to the need to briefly reserve all lines for communication of the new line configurations (see section 4-16 of the manual, http://www.ni.com/pdf/manuals/372838c.pdf)
For testing purposes I've modified this VI to do a counter output so I could feed this back into the digital inputs for viewing the signal. Success!
To anyone still working on this, I find that the order in which you start the tasks to also be important. The following seems to work best for me:
Reserve DO -> Reserve Counter -> Start DI -> Start Counter -> Start DO