Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx - Device identifier is invalid.

DAQmx Create Channel (DO-Digital Output).vi:1
Device Specified: 0
Suggested Device(s): Dev2, Dev1

Task Name: _unnamedTask<9>
Device identifier is invalid.

 

This is the error message I am getting the first time I am trying to communicate to my instruments.

I am using a PCI-6221 & PCI-4462.

 

I have the Device names defined in MAX ( Dev1 & Dev2), and when I initialize my station, comms are fine...
Any suggestions??

0 Kudos
Message 1 of 10
(8,414 Views)

Hi Jauron,

How are you trying to communicate with these devices?  It looks to me like you have a device specified as Dev1 and Dev2, but you are trying to communicate with device 0.  In your creat Digital Output Channel function, what are you specifying for the input "line"?

 

Let us know and we will definitely help you get up and running!

0 Kudos
Message 2 of 10
(8,386 Views)

Thanks for the reply Ben.

 

I was able to solve the problem. I had a bas Class Virtual library, and was able to replace it, and everything works now.

Message 3 of 10
(8,375 Views)

I am facing same problem,

 

Error -200220 occurred at DAQmx Create Channel (DO-Digital Output).vi:2

Possible reason(s):

Device identifier is invalid.

Device Specified: Dev2
Suggested Device(s): Dev1

Task Name: _unnamedTask<2>

 

 

New to Lab View..I am switched to new PC...

Please tell me solution for this???

0 Kudos
Message 4 of 10
(8,123 Views)
The simplest thing to do would be to simply try to use dev1 instead of dev2 - exactly what the message suggests.

Your post contains so little information that any more help is next to impossible.
0 Kudos
Message 5 of 10
(8,104 Views)

Open up MAX. 

Clean up or rename devices you're not using. 

 

In general, hard-wiring DAQmx devices to a specific Dev# can be problematic when moving machines or replacing DAQs.

I try to do an auto-scan and pick the appropriate model through property nodes rather than hard-code it.

0 Kudos
Message 6 of 10
(8,102 Views)

The screen shot of MAX

Download All
0 Kudos
Message 7 of 10
(8,082 Views)

Hi SnowMule,

 

How to do an  auto-scan and pick the appropriate model through property nodes???

0 Kudos
Message 8 of 10
(8,065 Views)
Everyone knows what the error message is. Posting it twice is just a waste of time. You still have not mentioned what is generating the error. We don't know if its a task in MAX, a constant on a block diagram, or what. Changing any of these from dev2 to dev1 is a trivial matter but you need to provide more information than just a plea for help.
0 Kudos
Message 9 of 10
(8,063 Views)

@hendr031 wrote:

Hi @SnowMule,

 

How to do an  auto-scan and pick the appropriate model through property nodes???


Get a DevNames array from the DAQmx property node. 

Use an indexed loop to pluck the Product Type out, and compare it to the device you're looking for.

0 Kudos
Message 10 of 10
(8,058 Views)