LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Perry_S

Timed LabVIEW Message box without buttons.

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

Recently I have had a number of customers ask me if there was a way to create a timed Message box that did not have buttons on it. Of course I told them that there wasn't any but that the button press could be simulated and that it would work just the same. Their requests did get me thinking and I can see that there are times when a timed message popup could be useful. I would love to see one. 

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
6 Comments
altenbach
Knight of NI

Well, if it does not have any buttons, all it needs is a wait in an otherwise nearly empty diagram. You could also use an event structure with a given timeout and yet another event case for mouse down that would dismiss it early. No while loop.

AristosQueue (NI)
NI Employee (retired)

I'm sorry you told them there wasn't any way to create that in LabVIEW, because I can think of several off the top of my head, no new features needed. Here's one variant:

 

  1. Create a VI. To make it borderless, etc, use this: https://decibel.ni.com/content/docs/DOC-1086
  2. On front panel, create a string control and an int32. Attach both of these to the connector pane and hide both controls.
  3. Drop a Classic string indicator, and make it transparent border/transparent background.
  4. On diagram, wire the string control to the string indicator.
  5. On diagram, create a flat sequence structure. Put a Wait MS prim in the first frame with the int32 control wired to it
  6. In the second frame, add code to show the front panel (you can make it just appear or fade in as you choose).
  7. In the third frame put another Wait MS primtive with your desired disappear time wired to it.
  8. In the fourth frame, hide the panel (again, just make it disappear or fade out, your choice)

Add any additional bells and whistles as desired.

AristosQueue (NI)
NI Employee (retired)

As for the idea, if you want to post suggestions for making this easier, I'm all ears.

ouadji
Trusted Enthusiast

 

use c:\WINDOWS\system32\user32.dll  (windows XP sp3)

 

MessageBoxTimeout.png

Knight of NI

Is this a LabVIEW idea or a TestStand idea?

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.