NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Pladio
Posts: 46
0 Kudos

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.

Knight of NI
Posts: 18,064

Re: Opening subVI front panel before execution

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.

Member
Pladio
Posts: 46
0 Kudos

Re: Opening subVI front panel before execution

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

So it's no longer a real problem :smileyhappy:

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page