02-21-2008 12:02 PM
02-22-2008
11:04 AM
- last edited on
03-17-2025
09:18 AM
by
Content Cleaner
Hey mwil,
You are receiving the 200077 error because the USB-6008 only supports software-timed DIO so you won't be able to configure a sample clock. You also won't be able to trigger on the PFI line with a digital operation. More information can be found in the USB-6008 user manual below.
NI USB-6008/6009 User Guide and Specifications
https://www.ni.com/docs/en-US/bundle/usb-6008-6009-feature/page/introduction.html
Your application should, however, work with software timing. You could monitor the value of one DIO line and output another accordingly.
09-07-2010 01:47 PM
Sorry for posting on such on old thread but the topic is very similar to my question.
I had a few general questions concerning the usb 6008 and the digital outputs. It seems to me that these outputs are always ON as soon as you power the device up? So simply wiring a boolean switch to these outputs with DAQmx write code would not control the ON/OFF states? So, as was mentioned in the previous post, it is necessary to read the DO values (which are normally ON) using the digital inputs and then adding the needed code/controls before sending out the digital value to its intended target?
I basically would just like for someone to either verify or correct me on that. Thanks.
09-07-2010
02:19 PM
- last edited on
03-17-2025
09:18 AM
by
Content Cleaner
All of your assumptions are wrong. If you looked at the manual, you would see that the power-on state is that all lines are high-impedance inputs with a weak pull-up. You do not have any control over the power-on states.
Using a DAQmx Configure Channel will set a line/port to an input or output and using a DAQmx Write will set an output to high or low. Period. Don't see where you see a need to read DO values. Especially since there are no DO values when you first power-up the device.
09-07-2010 02:29 PM
Well I was assuming that the DO values were high when you first power it up and was trying to find out how to change that according to a boolean control in order to activate a set of relays.
So, that cannot be done with the usb 6008?
09-07-2010 02:48 PM
You can change the digital I/O to anything you want once you start your program but you cannot change the power-up state. Other, more expensive DAQ boards do have the ability to program the power-up state.
09-07-2010 02:49 PM
I am seeing HIGH on the digital outputs (P0.0-P0.7) when measured with a DMM, that is as soon as the device is connected. A boolean switch that sends its value to a write to the DO's does not change the states.
09-07-2010 02:50 PM
OK, thanks for clearing that up.