The attached VI uses a switch closure to move from frame 0 of a case structure to frame 1, where an analog input is read and sent to an LCD.
This program doesn't work in the manner expected. The program seems to stay in frame 0.
Any suggestions on why this doesn't work with the LabVIEW Arduino Compiler or a suggestion on how to accomplish this?
Thanks,
P.C.
Filipe,
Thanks for your suggestion. I put a switch from D2 (input) to ground and an LED/series resistor from D3 (output) to ground. Modified the VI to the one attached. When the switch is closed, the LED on D3 lights, as expected, but the program still doesn't move to Case 1.
Would you expect this program construction to work with your Arduino Compiler? If so, any other ideas of things to try?
Thanks,
P.C.
Filipe and Steffan,
Thank you both for your suggestions. Filipe, your suggestion worked out very easily. The method that you suggested is shown in the attached VI. Anyone should be able to use this approach to step sequentially through their program after specific conditions are met in each step.
Steffan, haven't been able to find a way to define the variable SEQ# and have the program compile without errors.
P.C.
11:56 pm
March 12, 2015
PC said
Filipe and Steffan,Thank you both for your suggestions. Filipe, your suggestion worked out very easily. The method that you suggested is shown in the attached VI. Anyone should be able to use this approach to step sequentially through their program after specific conditions are met in each step.
Steffan, haven't been able to find a way to define the variable SEQ# and have the program compile without errors.
P.C.
Shift Register should work just fine. This is what I meant. Just move SEQ# out of the while loop. Compiles fine without errors.
16
1 Guest(s)