LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subpanel and notifier

It is the first time I use subpanel (and notifier).  I want to use notifier to close the subpanels.  This is a good idea or I would be better to look for another method?

0 Kudos
Message 1 of 8
(3,838 Views)

This is a perfectly valid use for the notifiers, personally I use an AE (Action Engine or FGV if you like) for controlling the closing of subpanels.

 

You could combine both of your loops in your subpanels into the Event structure using the timeout functionality to simplify your code.

Why are you using mouse down rather then value change to control the changing of subpanels?

Message 2 of 8
(3,814 Views)
Another alternative would be to use a user defined event (UDE). For about the past year, I have been building piece by piece on my blog a testbed application that demonstrates a couple ways of handling what you talking about.

Http://www.NotaTameLion.com

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 8
(3,775 Views)

To ogk.nz:  "Why are you using mouse down rather then value change to control the changing of subpanels?"

                                

A bad reflex from the multicolumn listbox...  I will use the value event instead.

 

To mikeporter:

I have a problem to run your testbed example. 

 

error # -2147467259

Exception occured in Microsoft JET Database Engine:
File'C:\Users\Jean-Marc\Documents\LabVIEW\Subpanel Mike Porter\_repos\LocalDB.mdb' is missing. in ADO Database Drivers.lvlib:Acquire Connection.vi->Configuration Management.lvlib:Get Processes to Launch.vi->testbed.vi

 

 

 

0 Kudos
Message 4 of 8
(3,737 Views)

Hey have you tried the Remove VI method to  unload the VI in the subpanel control?

 

There is an example that might be helpful. See the attachment.

0 Kudos
Message 5 of 8
(3,728 Views)
J-M:

Did you download the project using SVN, or just grab the individual files? If you did SVN, which release of the testbed did you grab?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 8
(3,698 Views)

Yes I use Tortoise SVN:

 

Testbed Application — Release 10 and Toolbox — Release 5.

0 Kudos
Message 7 of 8
(3,692 Views)
OK, I'll check it the database file should be there.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 8
(3,678 Views)