LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening subVI front panel before execution

Hello,

 

I am working on a way to acquire signals from several channels. Right now it's just four so it's not a problem to have them all on my front panel. 

 

The problem arises when I will need to expand the program to 60 channels. Currently I am using a cluster with 4 channels inside it. I would like to be able to have a subVI that I can open before executing my program that holds the cluster with all 60 channels inside. 

I was hoping to have a button on the main front panel that opens the subVI and that on it the channels will be selected.

 

I would like it to be before running the program.

Is this possible ? And how should I go about doing it ?

 

Thanks,

 

David.

0 Kudos
Message 1 of 3
(2,193 Views)

You've got to have something running in order to call the subVI. It sounds like your architecture needs to be more of a state machine where you sit in an idle state until the user presses "Start". Thus, when the main VI runs you can go though an initialization stage which may include calling this subVI. See Application Design Patterns: State Machines

 

Are you sure you actually want a cluster with 60 elements? I would think an array would be easier to manage in this case.

Message 2 of 3
(2,176 Views)

Thanks. I just realized that I can just call all physical channels in one control by using ai0:59 or something like that 🙂

So it's no longer a real problem 🙂

0 Kudos
Message 3 of 3
(2,170 Views)