Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni-USB 6501

I am trying to configure the NI-USB 6501 digital input and output. But I can't seem to get it done.
I have a basic design, where I have connected a push button on-off switch to trigger the input and an LED as output. The push button is connected to 5V and P1.6. I want to use the push button to trigger the LED which is connected between  P1.5 and gnd.
0 Kudos
Message 1 of 21
(4,597 Views)
What are you using to accomplish this?

LV?
LED circuit?
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 21
(4,592 Views)

I'm using LV and an LED. Well it isn't much of a circuit yet. This is just a start to familiarize myself with LV to automate thermostat testers.

I haven't written a graphiocal code in LV yet, but i was teying to use the writedig.vi and readdig.vi. But I want to use a push button. So it is an external trigger whihc will have to be coded. But I don't really know how to do it.

0 Kudos
Message 3 of 21
(4,581 Views)
Could you post a screenshot of the code or the VI itself?

Can you try to do it via MAX (Measurement and Automation eXplorer)?

After you succeed in turning on the LED and reading back the button in MAX.

Try to do the same by using the DAQ assistent Express VI.

After you can do that convert the DAQ assistent Express VI into code to see how it is done.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 21
(4,578 Views)

The problem is, I'm trying to configure input on P1.6 and output on P1.5, but I can't configure input and output together. Could you tell me how can I configure input and output. The DAQ Assistant has a note mentioned which states that you can make multiple measurements (like temp, voltage, etc) but they hv to be of the same type (input or output).

Also the data sheet for the NI-USB 6501 shows that there is a input output configuration front panel.vi which can help define each channel individually whihc is shipped with the product itself. But I don't know where that is either.

0 Kudos
Message 5 of 21
(4,577 Views)
I mean when you have the daq assistent code for doing the DI and the code for doing the DO. Combine them yourself.

The output of the first connected to the input of the second.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 6 of 21
(4,571 Views)
Search for it in the examples.

With LV 8 up you can even specify the hardware you're using to only view example that can run on your hardware.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 7 of 21
(4,569 Views)
I have been working using the read dig chan.vi and write dig chan.vi. Like you said I tried configuring input and output separately. But when I try reading the push button input, I get the input as '1' irrespective of the button being pushed down or not.
How can I ensure that the input will be '0' when the button is pushed down and '1' when not pushed
0 Kudos
Message 8 of 21
(4,566 Views)
I'm trying to understand exactly what you've done. You have a mechanical switch between P1.6 and +5V? This is port 1 bit 6 that you are reading in MAX or LabVIEW? If that's really the case, then when do you expect to read a logic 0? You are never placing a voltage at the input pin that is low. When the switch is open, the input is pulled up and a logic 1 is detected. close the switch and the 5V is detected as a logic 1.
0 Kudos
Message 9 of 21
(4,559 Views)
But I have also connected a resistance between gnd and 1.6. So if the button is pushed then it goes to gnd through the resistance. So that will provide logic '0'
0 Kudos
Message 10 of 21
(4,557 Views)