09-21-2007 09:21 AM - edited 09-21-2007 09:21 AM
A switch between +5 and P1.6 and a resistor between P1.6 and Gnd will look like Fig A below. That is not correct. All you really need to do is like what is shown in Fig B.
Message Edited by Dennis Knutson on 09-21-2007 08:21 AM
09-21-2007 09:40 AM
I did that change in the circuit too. But I keep getting the error
"Measurements: Task cannot contain a channel with the specified channel type, because the task already contains channels with a different channel type.
Create one task for each channel type."
All I did was to combine the read and write tasks.
09-21-2007 09:44 AM - edited 09-21-2007 09:44 AM
Message Edited by andre.buurman@carya on 09-21-2007 04:46 PM
09-21-2007 09:50 AM
09-21-2007 10:38 AM
09-21-2007 11:00 AM
09-21-2007 11:19 AM
No, as I said, you can't mix inputs and outputs in a task. Try the modified versions below.
Note that I can't test it without the hardware. The current output of the 6501 is pretty small so you may have a problem driving the external LED.
09-21-2007 11:55 AM
09-21-2007 12:11 PM
09-28-2007 06:36 AM
To this same VI, could you tell me how to add a delay. I want the VI to work in a fashion that, when I push the on-off switch, the LED should remain off for 5 secs and then when then comes back on again. In case of pushing the button repetitively, I would like the LED to turn on for 5 secs then go off for 5 secs.
i tried adding the time delay VI to it, but I could only see the LED going off for 5 secs (when it went off). But it did not turn off immediately when the button was pressed. I tried this by putting the tiime delay vi in the while loop.