Quote:
Originally Posted by Luid101
Ok.The code is in the timed tasks vi.
|
Is it outside all of the timed while loops in that vi, or is it inside one of them? If it's inside a while loop, which one is it in?
Quote:
|
The code at the left side is a toggle switch for the joystick input. If you could show us a better way of coding it we would be grateful!
|
If you can tell me what you want the code to do, I'm sure I can show you an efficient way of telling LabVIEW how to do it. The phrase "toggle switch for the joystick input" isn't enough detail for me to know what you want.
Quote:
|
I am pretty new to labview programming so I am not sure if there should be a wait or not, I saw it there so I didn't tamper with it.
|
There are specific places for wait functions, and specific reasons for using them. Besides the timed loops in Periodic Tasks, the only place I think I have put them in a robot program would be in a flat sequence in Autonomous Independent (or a flat sequence in Periodic Tasks, but that's a very special case).