LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customizable dialog box

Hi everyone,

 

I’m looking for a VI that implements a dialog box with these options :

 - configurable buttons (OK, OK/Cancel, Yes/No, Yes/No/Cancel...)

 - selectable dialog appearance (Standard, Critical, Question, Exclamation, Information)
 - modal or non‑modal execution
 - synchronous or asynchronous call
 - optional automatic closing after a configurable timeout
 - compatibility with both 32‑bit and 64‑bit versions of Windows and LabVIEW

 

Any suggestions or shared VIs would be greatly appreciated.

 

Thanks in advance!

0 Kudos
Message 1 of 9
(194 Views)

I made an Express VI that's a "Universal Dialog Box", but the available configurations are different from yours.

0 Kudos
Message 2 of 9
(148 Views)

@paul_a_cardinale  a écrit :

I made an Express VI that's a "Universal Dialog Box", but the available configurations are different from yours.


Thank you for your answer.

Which configurations are supported?
Would you be willing to provide it to me (via private message)?
0 Kudos
Message 3 of 9
(144 Views)

@JB wrote:

@paul_a_cardinale  a écrit :

I made an Express VI that's a "Universal Dialog Box", but the available configurations are different from yours.


Thank you for your answer.

Which configurations are supported?
Would you be willing to provide it to me (via private message)?

Maybe he is referring to

https://forums.ni.com/t5/LabVIEW/Universal-Dialog-Box/m-p/4205270#M1218026 

 

or

https://forums.ni.com/t5/Example-Code/Universal-Dialog-Box/ta-p/4375400 

 

0 Kudos
Message 4 of 9
(136 Views)

@UliB wrote:

@JB wrote:

@paul_a_cardinale  a écrit :

I made an Express VI that's a "Universal Dialog Box", but the available configurations are different from yours.


Thank you for your answer.

Which configurations are supported?
Would you be willing to provide it to me (via private message)?

Maybe he is referring to

https://forums.ni.com/t5/LabVIEW/Universal-Dialog-Box/m-p/4205270#M1218026 

 

or

https://forums.ni.com/t5/Example-Code/Universal-Dialog-Box/ta-p/4375400 

 


Those are old.  I have a newer version.   I'll post it later today.

0 Kudos
Message 5 of 9
(117 Views)

@JB wrote:

I’m looking for a VI that implements a dialog box with these options :

 - configurable buttons (OK, OK/Cancel, Yes/No, Yes/No/Cancel...)

 - selectable dialog appearance (Standard, Critical, Question, Exclamation, Information)
 - modal or non‑modal execution
 - synchronous or asynchronous call
 - optional automatic closing after a configurable timeout
 - compatibility with both 32‑bit and 64‑bit versions of Windows and LabVIEW

 

Any suggestions or shared VIs would be greatly appreciated.

 

Thanks in advance!


Paul might just provide a good solution for a reasonable subset of your requirements.

 

I assume you are looking for a dialog subVI that has these options as inputs.

 

Synchronous vs. asynchronous has to be decided by the caller, so you would need an additional wrapper, especially also if you want it asynchronous and disappear after a given amount of time. How are you planning to get the return value in the asynchronous case?

 

Should it be reentrant so you can use multiple instances? If not, it could be implemented as an action engine that can show/hide its panel based on inputs, return immediately, but keep the panel open if needed. It would remain open until the next call where it would act according to the new inputs. It could even display a timestamped log of the last few calls to it.

 

Note that the stock 3-button dialog is actually a set of VIs that you could use as a starting point.

 

(as long as you do it all in LabVIEW, bitness is irrelevant)

 

0 Kudos
Message 6 of 9
(108 Views)

@altenbach wrote:

@JB wrote:

I’m looking for a VI that implements a dialog box with these options :

 - configurable buttons (OK, OK/Cancel, Yes/No, Yes/No/Cancel...)

 - selectable dialog appearance (Standard, Critical, Question, Exclamation, Information)
 - modal or non‑modal execution
 - synchronous or asynchronous call
 - optional automatic closing after a configurable timeout
 - compatibility with both 32‑bit and 64‑bit versions of Windows and LabVIEW

 

Any suggestions or shared VIs would be greatly appreciated.

 

Thanks in advance!


Paul might just provide a good solution for a reasonable subset of your requirements.

 

I assume you are looking for a dialog subVI that has these options as inputs.

 

Synchronous vs. asynchronous has to be decided by the caller, so you would need an additional wrapper, especially also if you want it asynchronous and disappear after a given amount of time. How are you planning to get the return value in the asynchronous case?

 

Should it be reentrant so you can use multiple instances? If not, it could be implemented as an action engine that can show/hide its panel based on inputs, return immediately, but keep the panel open if needed. It would remain open until the next call where it would act according to the new inputs. It could even display a timestamped log of the last few calls to it.

 

Note that the stock 3-button dialog is actually a set of VIs that you could use as a starting point.

 

(as long as you do it all in LabVIEW, bitness is irrelevant)

 


Reentrancy shouldn't be a problem.  Each instance of a call to an Express VI is inlined:

When you drop an instance of an Express VI, a copy of the original instance is placed inside the SubVI object that's on the BD.  Then the configuration VI runs and modifies that hidden copy.

0 Kudos
Message 7 of 9
(83 Views)

Well, for what it's worth, here are versions 3.1 and 3.2.

3.2 is broken because I haven't finished the localization support.

0 Kudos
Message 8 of 9
(79 Views)

I meant that a non-reentrant might be a good solution, e.g. if a single instance would popup, adding to a list of recent alerts, each call behaving as wired and return a button or just keep the panel open.

0 Kudos
Message 9 of 9
(71 Views)