03-05-2008 03:50 PM
03-06-2008 06:42 PM
Hi Waldoheriam,
Welcome to the forums! As I understand the first question, you have a circuit that turns on an LED using 1.98 V when an event occurs. Instead of the LED, you would like do use your USB-6008 monitor the event. To do this, you want to remove the LED and instead have two wires coming from the positive and negative leads. Is my understanding correct?
You asked if connecting the positive lead to a digital input and the negative lead to ground would be the best connection scheme. I do not believe that this is the best way to go. This is because the digital inputs use TTL logic, where a high measurement is only guaranteed if it is over 3.3 V. I think the better way to record this voltage is to use a differential analog input task and connect the leads to AI + and AI- of the USB-6008.
As I understand the second question, you would like your USB-6008 to read 2.5 V when a user closes a switch. Is my understanding correct? The set up you described would work, but I believe that you will want to connect one wire from the switch to AI+ of the USB-6008 and the other wire from the switch to positive lead of your power supply. The negative lead from the power supply will need to go to the corresponding AI-.
I hope this explanation helps, Mallori M.
03-07-2008 11:17 AM
03-10-2008 07:13 PM
Hi Waldoheriam,
With regards to differential voltage measurements, you can look online in the Analog Input section of the NI USB-6008/6009 User Guide and Specifications. This shows you how to connect the signals, and then if you were using a test panel in Measurement and (MAX), you can select the differential as the measurement type.
So, the voltage is unimportant, it is the switch you want to monitor. Do you want to count how many times the switch was pressed or get times that the switch was pressed? If you want to count the number of presses, you can connect the 5 V pin to the switch’s input and the switch’s output to the PFI 0 pin as a source for a gated event counting. You can then run the Count Events LabVIEW example. If you need time information, you will need to connect the switch’s output to an Analog Input pin and perform a regular Analog read. This will give you time stamps that you can look at when the data is high. If you are in differential connection mode from the first application, then you will want to connect the card’s ground pin to AI-
I hope this explanation helps, Mallori M.03-11-2008 10:13 AM
03-11-2008 10:36 AM
Just out of idle curiosity, what is a lucid dreaming project?
Regards, Mallori M.
03-12-2008 12:36 PM
03-13-2008 11:44 AM
Interesting. Well, good luck. 🙂
Mallori M.