11-14-2012 02:44 PM
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
11-14-2012 03:43 PM
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.
11-14-2012 04:07 PM
@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
11-16-2012 11:32 AM
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
11-16-2012 11:41 AM
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.
11-16-2012 11:46 AM
Oh, thats awesome. ![]()