10-14-2014 12:20 AM
hi!
I made this program who does the following sequence:
1. a switch for on and off
2. it will turn on the my LED then turn off after X seconds.
This is attached to my digital output so i can that my attached voltmeter reads voltage
It worked fine but i noticed it only does two iterations so i do not know where i made mistake
Help!
10-14-2014 02:35 AM
10-14-2014 02:50 AM
No error message.
mechanical switch: latched when released
What's the point of ORing with FALSE? - my bad, i belatedly saw that redundance.
10-14-2014 02:54 AM
Hi camr,
so your switch is reset to FALSE as soon as it gets read. And you wonder why your loop doens't count seconds anymore?
Did you try to debug your VI using basic debugging tools like highlighting? What are the inputs to the AND function in each iteration?
10-14-2014 03:03 AM
@GerdW wrote:
Hi camr,
so your switch is reset to FALSE as soon as it gets read. And you wonder why your loop doens't count seconds anymore?
Did you try to debug your VI using basic debugging tools like highlighting? What are the inputs to the AND function in each iteration?
it does count.
it works well
but the iterations only goes twice.
10-14-2014 03:05 AM