LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 Digital Output when connected not working

Solved!
Go to solution

Hi, i have an external circuit and i want to control it using DAQ 6008 / using LabView , i tested the digital port its working (giving me 5V) but once i connect it to my circuit (PIC16f887) pin its gives me 0V, i dont know why

Wessam Ghassan - Electrical Engineer / Instrumentation and Control
0 Kudos
Message 1 of 8
(4,096 Views)

Do you have the correct arrangement of the electrical circuit? Is your sourcing/sinking arrangement correct for your microcontroller?

Check the datasheet here: http://www.ni.com/pdf/manuals/371303m.pdf

It has diagrams showing the correct wiring possibilities.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 8
(4,084 Views)

I connected my microcontroller to light up LEDs and it worked, but i need a port to be control switch using DAQ, the digital generating worked i measured it using my multimeter, but once the P0.0 is connected to the pin (RA4) it stops giving 5V and gives me 0V... should i connect the GND from the Digital port of DAQ some where? cause i dont think i need to

Wessam Ghassan - Electrical Engineer / Instrumentation and Control
0 Kudos
Message 3 of 8
(4,074 Views)

@Wessam-G wrote:

should i connect the GND from the Digital port of DAQ some where? cause i dont think i need to


What?  You didn't connect the grounds?  You have to connect the grounds together to make sure they have the same voltage reference.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 8
(4,066 Views)

The problem is that i tried that, i connected the GND to the same GND of the PIC and still its not giving 5V once its connected to it

Wessam Ghassan - Electrical Engineer / Instrumentation and Control
0 Kudos
Message 5 of 8
(4,059 Views)

As mentioned before, check your microcontroller settings.  Make sure that pin isn't configured at an output or ground.  It could also be that the circuit has a short to ground.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(4,053 Views)
Solution
Accepted by topic author Wessam-G

Hi, 

 

because the NI-6008 has an open collecor output you have to connect a pull-up resistor to +5V.

 

Message 7 of 8
(4,048 Views)

Thank you Very much ! i forgot about the Pull-Up resistor i connected it now and am getting 5V at the pin. thanks 😄

Wessam Ghassan - Electrical Engineer / Instrumentation and Control
0 Kudos
Message 8 of 8
(4,025 Views)