Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6501 On is Off and Off is On

Solved!
Go to solution

Hi,

 

I have a USB-6501.

When I send a True value to the DAQmx write digital VI the signal from the hardware switches off, and when I wire a false value the hardware switches on.

The same happens with an input. Shorting between pin and ground causes the output of the DAQmx read to read false, and with no connection it gives a true value.

 

A colleague has the same problem with the 6501, but not with his PCI DAQ card.

 

This is somewhat counterintuitive when programming. Is there a way to reverse this behaviour? (other than just remembering to add in a not gate)

 

Simple test VI attached.

0 Kudos
Message 1 of 8
(6,264 Views)

@Phil_ wrote:

Hi,

 

I have a USB-6501.

When I send a True value to the DAQmx write digital VI the signal from the hardware switches off, and when I wire a false value the hardware switches on.

The same happens with an input. Shorting between pin and ground causes the output of the DAQmx read to read false, and with no connection it gives a true value.

 

A colleague has the same problem with the 6501, but not with his PCI DAQ card.

 

This is somewhat counterintuitive when programming. Is there a way to reverse this behaviour? (other than just remembering to add in a not gate)

 

Simple test VI attached.


well, ive never seen that type of style done that way...are you trying to save room?its probably why you are having trouble....

 

Spoiler
DAQtest[1]_BD.png

 

0 Kudos
Message 2 of 8
(6,261 Views)

Hi apok,

 

I have just tried your recomendation, and functionally there is no change.

Any other ideas?

 

(also, yes, trying to keep it neat)

0 Kudos
Message 3 of 8
(6,255 Views)

hmmm, works on my end? Smiley Indifferent and i even tried your vi...perplexed

0 Kudos
Message 4 of 8
(6,251 Views)

All of the inputs appear high in MAX when running the Test Panels section too...

 

Capture.PNG

0 Kudos
Message 5 of 8
(6,247 Views)

thats because there is a pull up connected....

 

The default configuration of the USB-6501 OEM DIO ports is open-drain,allowing 5 V operation, with an onboard 4.7 k  pull-up resistor.

0 Kudos
Message 6 of 8
(6,242 Views)

Tested with a different usb-6501 on a different machine. Same problem...

If yours is working ok Apok, then this really is wierd.


Would you care to elaborate on the above Apok?

My electronics knowledge is minimal

0 Kudos
Message 7 of 8
(6,241 Views)
Solution
Accepted by topic author Phil_

@Phil_ wrote:

Tested with a different usb-6501 on a different machine. Same problem...

If yours is working ok Apok, then this really is wierd.


Would you care to elaborate on the above Apok?

My electronics knowledge is minimal


your IO is connected to a 4.7Kohm resistor that is also connected to 5Vdc....transistor is off, outputs pulls up to 5Vdc level and transistor on...output pulls down to near gnd,considering diode drop of emitter

0 Kudos
Message 8 of 8
(6,233 Views)