Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple LabVIEW function module control

Hi, I try to program modular program, ( true/false button to active each module function). They are in different layers and different level. but the problem I met is that I need to transfer from one from another when ever any one of these buttons is pressed. What I'm doing now is include every case when one button is clicked, but this is too much of programming, fro example, 10 button will result 100 small cases. I tried to use event structure, but only because the limitation of event structure I cannot use it a lot. What is the best strategy to handle this?
Thanks
0 Kudos
Message 1 of 3
(3,220 Views)

Can you explain what you think the limitations of the event structure are and how you can get 100 different cases from 10 Booleans? If each Boolean is for a single specific action, then the event structure would seem to work fine. You could attach aexample of your program that shows what you are attempting to do.

p.s. You might also want to think about posting to the LabVIEW board instead of the instrument control board. Your question has nothing to do with instrument control and you'll get more responses there.

0 Kudos
Message 2 of 3
(3,212 Views)
Hi Carolyn,
 
If you explain a little more what you mean by the limitations and what you ultimately would like to accomplish, I could help you figure out the best method for handling the multiple buttons. You might find the state machine useful:
 
 
There is a link at the bottom to a tutorial about using state machines.
 
If you are just looking for events to be triggered by each button, you should be able to set up one event per button and even if two buttons are pushed, the event will fire simultaneously.
 
Please explain or attach an example and I will assist you further.
Sappster
0 Kudos
Message 3 of 3
(3,196 Views)