LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview thinks my NI USB-6008 only has analog input channels

Solved!
Go to solution

I'm trying to use a NI USB-6008 to run one analog output channel and one analog input channel.

 

So I make a DAQmx hardware channel constant and get out the finger tool and pull down... and it offers me 8 analog input channels on Dev1 and nothing else. I have nothing else hooked up to this computer but the USB-6008. A USB-6008 doesn't even have 8 analog input channels.

 

I'm a little confused.

0 Kudos
Message 1 of 12
(7,075 Views)

@lsomers wrote:

A USB-6008 doesn't even have 8 analog input channels.

 

I'm a little confused.



uhmmm... yes you are

Capture.PNG

8 AI (4 Differential 8 Single ended)

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 12
(7,073 Views)

You are incorrect. The 6008 certainly does have 8 analog inputs. I don't understand the the confusion. Just look at the specsor read your manual

0 Kudos
Message 3 of 12
(7,071 Views)

Mine is labeled as AI 0-3, each with a + and - terminal, but okay, I guess I can take that...

 

Setting that aside, what happened to the 2 AO channels and the Digital channels???

0 Kudos
Message 4 of 12
(7,067 Views)

The labeling is for differential connections. More people are confused as to how to connect these and the device has more ranges in diff mode so the labeling makes sense. The analog outputs are clearly labeled in the image Jeff attached. The digital lines are the P0 and P1 connections.

0 Kudos
Message 5 of 12
(7,055 Views)

... I'm having absolutely zero trouble wiring this up.

 

The problem, as clearly stated in the OP, is that LabView only sees analog input channels *AND NOTHING ELSE*. Do you get to them by something other than a hardware channel constant pulldown? When I try to enter "Dev1/ao0" as a string and coerce it that way, it says it's invalid.

 

When I do a hardware test, it says ALL OK.

0 Kudos
Message 6 of 12
(7,049 Views)

You certainly cannot select both input and output with a single DAQ Assistant or with a single DAQmx Configure Channel. They require two separate tasks. The DAQ Assistant asks you if you want an input task or output task and filters accordingly. When you select a DAQmx Configure Channel, you also specify input or output and again, the channel list is filtered per your selection.

0 Kudos
Message 7 of 12
(7,040 Views)

The hardware channel constant I'm pulling down is connected to the setup for an Analog Write DAQmx vi. This is the first thing I've done to this channel after creating it and giving it timing. I put the Analog Input in a separate task.

0 Kudos
Message 8 of 12
(7,035 Views)

Are you sure you're using a hardware channel control, and not a task control? Have you created any tasks in Measurement and Automation Explorer (MAX)? Have you tried using the DAQ assistant to set up an analog output? Can you share your code?

0 Kudos
Message 9 of 12
(7,035 Views)

The order is also important. You first select the analog write for the DAQmx Create Channel and then create the constant. If you create the constant and then change the create channel from the default of a read, the filtering and data type of the constant does not automatically change. You have to create a new constant.

0 Kudos
Message 10 of 12
(7,028 Views)