ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic panels, can this pseduocode be implemented in LabView?

I am wondering if this can be implemented in LabView?

 

Pseudo code

Ask the user how many multimeters there are

After number has been indicated, the user specifies the GPIB address and labels the type of measurement.

Then the user specifies the different configurations that the DUT will be in.

Then the multimeters will take simultaneous measurements of the DUT in each configuration.

After the measurements, display in an excel file.

 

Issue

The issue I see is dynamically creating functions. For example, the user specifies that there are 3 multimeters. Then 3 sets of panels would appear for the user to specific the GPIB address and label. If the number of instruments were hardcoded then this can be easily done but what about specifying the number of instruments? Can it be done like this?

 

Thanks,

William

0 Kudos
Message 1 of 6
(3,075 Views)

Yes, this can be done.  You can dynamically create and launch instances of a re-entrant VI, which is what it sounds like you want to do.  Each instance will have a separate front panel.

0 Kudos
Message 2 of 6
(3,065 Views)

@nathand wrote:

Yes, this can be done.  You can dynamically create and launch instances of a re-entrant VI, which is what it sounds like you want to do.  Each instance will have a separate front panel.


Bingo.  Remember to set the flags when you open the reference

123.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(3,060 Views)

Awesome. 

I am not that well versed in the LabView functions so I don't know of the functions that I see in your example. Would it be possible for you to upload the file?

 

Thanks,

William

0 Kudos
Message 4 of 6
(3,034 Views)

That image is a "snippet" - it's actual code.  You can drag the image directly onto a block diagram (assuming you have LabVIEW 2012, since that's the version used to create that snippet, as marked in the top-right corner).  In some web browsers, you may first need to drag the image to your desktop, then drag from there into a block diagram.

0 Kudos
Message 5 of 6
(3,027 Views)

Oh, thats awesome. Smiley Very Happy

 

Message 6 of 6
(3,024 Views)