LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel in Panel in asynch vi doesn't work?

Solved!
Go to solution

I generally try to avoid .VIT files, they give me more headaches then they solve.

 

Here is a minimal working example showing subpanels in subpanels, using regular VIs.

panel in panel.gif

 

Make sure to set any VI you want to run in parallel to Shared Clone Reentrant Execution.

 

Then call them with Start Asynchronous Call, with the 0x80 (Call and Forget) flag. No need for the 0x40 shared pool flag.

 

Make sure to add a way for the caller to stop the called VIs. Here I use User Events, but that depends on your architecture.

 

Hope it helps.

Main.png

Panel.png

Download All
Message 11 of 14
(173 Views)

@thomas-allibe wrote:

Ah yes, including links (clickable or not) will delete the message....

 

WITHOUT WARNING!!!!!!!!!!!!!!!!!!


The forum software has been super janky for the last month or so. Attachments have been coming and going randomly, and it looks like links are being weird too. Links are definitely allowed in a general sense- there are a couple filters here and there (I think F@cebook  isn't allowed?) but by and large most stuff is allowed.

 

(It's not just you ☹️)

0 Kudos
Message 12 of 14
(168 Views)

@Basjong53  a écrit :

I generally try to avoid .VIT files, they give me more headaches then they solve.

 

Here is a minimal working example showing subpanels in subpanels, using regular VIs.

panel in panel.gif

 

Make sure to set any VI you want to run in parallel to Shared Clone Reentrant Execution.

 

Then call them with Start Asynchronous Call, with the 0x80 (Call and Forget) flag. No need for the 0x40 shared pool flag.

 

Make sure to add a way for the caller to stop the called VIs. Here I use User Events, but that depends on your architecture.

 

Hope it helps.

Main.png

Panel.png



Ah yes, I didn't think about calling "Open VI Reference" on every iteration. I guess it allows you to not use 0x40 flag and directly use the vi reference for the subpanel "Insert VI" node. Which is simpler that what I suggested, but is (I suppose) slower since you open the reference multiple times, but it probably doesn't matter.

0 Kudos
Message 13 of 14
(134 Views)

@BertMcMahan  a écrit :

@thomas-allibe wrote:

Ah yes, including links (clickable or not) will delete the message....

 

WITHOUT WARNING!!!!!!!!!!!!!!!!!!


The forum software has been super janky for the last month or so. Attachments have been coming and going randomly, and it looks like links are being weird too. Links are definitely allowed in a general sense- there are a couple filters here and there (I think F@cebook  isn't allowed?) but by and large most stuff is allowed.

 

(It's not just you ☹️)


Yeah I saw people complaining about attachement issues...

It turns out my supposedly deleted messages have all showed up later in the replies😅

0 Kudos
Message 14 of 14
(131 Views)