LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reentrant VI in subpanel

Hi,
 
First of all i dont think i can do this but just asking..:P
I have a Main VI that consists out of a tabs with 5 subpanels. This vi controls 5 subvis that calibrates a unit. This subvi is reentrant but is only one VI (one name) but i want to open the 5 different instances of the 5 subvis (who are identical) in the 5 subpanels. I know this can be done by just making 5 identical vis with differnet names but is there another way with using just one vi?
 
Thanks
B Bakels
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 1 of 8
(3,043 Views)

Reentrant VIs only had the option of having a seperate FP for each panel in LV 8.0 or 8.2, so you can't do that in 7.1 anyway.

What you want to do is change your VI to a VI template by changing its extension to .vit. This will make LV generate a new copy of it whenever you open a reference to it. I believe you can see examples for this in the example finder (Help>>Find Examples) by searching either for "subpanel" or " template".


___________________
Try to take over the world!
0 Kudos
Message 2 of 8
(3,038 Views)
ok i using 8.0 so i will try to the VIT option, i will let you know
 
thanx
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 8
(3,038 Views)
hmm still not working,  because i need to put a input in the VI, i also tried a global and passed the referencefrom within the subvi to the mainvi and open a subpanel then but then the subpanel wont open...
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 4 of 8
(3,031 Views)

I'm not entirely sure what you're trying to do, but a global will probably not help since all the VIs will call the same global and you will have a race condition.

Did you look at the examples (specifically, the one called "Templates")?

If the examples don't help you, I suggest you upload your code (preferably in 7.1) with a clear explanation of what you want to do so that someone can help you.


___________________
Try to take over the world!
Message 5 of 8
(3,029 Views)
no i dont get a race condition. I got a subvi that used 5 times, each instance uses another daq, this is an input of the subvi. The daq nr is used to select in wich global the reference is saved to. so no race conditions. I cant open the frontpanels in the subpanels before passing the daq ids to the  individual subvis
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 6 of 8
(3,026 Views)

I feel like we're going in a loop.

Did you look at the examples (specifically, the one called "Templates")?

If the examples don't help you, I suggest you upload your code (preferably in 7.1) with a clear explanation of what you want to do so that someone can help you.


___________________
Try to take over the world!
Message 7 of 8
(3,013 Views)

Hi Bartb,

Please take a look at the example code I posted in this weeks Nugget

http://forums.ni.com/ni/board/message?board.id=170&message.id=226491#M226491

In that example I pass values to VIT's before I start them.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 8
(3,004 Views)