LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making a timeout event last longer?

Well, I don't know how long each of you individual operations take so I can't tell you whether it's OK to leave the code as is in the event structure or to put it into a consumer loop. You're the best judge of that. Just take into consideration my previous comment. As for the data acquisition I think you should try to separate it out into its own loop.

Side-comments:
  • I noticed that some of your buttons have spaces a the beginning of the labels.
  • Your description for "Initialize" says to press just once, but I didn't see anything in the code that would prevent someone from pressing it again. You may want to disable the button after you've done the initialization.
  • The case structures you have for some of each button event are not necessary. Your mechanical action for your buttons are "Latch When Released", so by definition they will always be true when that event fires.
  • I don't quite understand why the mechanical action for "Move" is "Switch Until Released".
0 Kudos
Message 11 of 12
(429 Views)
Thanks for the quick response.
 
Like I said, the version that I posted up was written entirely by Aerotech, not me.  At any rate, I'll try to separate out the data acquisition from the main loop.  And I'll get on changing those buttons- didn't even notice their formatting was off.  I'll post again if I'm still having trouble.
0 Kudos
Message 12 of 12
(422 Views)