LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

more options using dialog buttons

Hello!
 
In my application the user can save the results in a file. To input the name of this file i'm thinking to use a dialog button but i want that the user introduces the name of the file in the dialog button and then press ok. I'm looking for a dialog button where you can write  a name but i haven't found it. I want to know how i canbuild a dialog button where the user can write a name and the press ok or cancel.
 
If you can post a simple example it would be perfect.
 
Thanks
 
Larson
0 Kudos
Message 1 of 13
(3,410 Views)

Hi,

Instead of Dialog button,  make a sub Vi pop up and you can type the path in it.

look at attached VI

regards

Dev

 

Message 2 of 13
(3,400 Views)

Hi

Without having seen the attachment of devchander, I just can say, why don't you use the built in file dialog?

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 13
(3,397 Views)

hi Larson,

I've attached a VI for ur perusal.

Please let me know if this was what u were exactly looking for.

Regards,

Partha.

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 13
(3,394 Views)
Hello,
 
devchander and parthabe can you post this vi in labview 7.0 version.
 
Sorry, i forget put the version I'm using in my message.
 
Thanks! 
0 Kudos
Message 5 of 13
(3,390 Views)

hi Larson,

I've attached a VI for ur perusal.

Please let me know if this was what u were exactly looking for.

Regards,

Partha.

- Partha ( CLD until Oct 2027 🙂 )
Message 6 of 13
(3,388 Views)

hi I've attached for LV7.0

Regs,

Partha.

- Partha ( CLD until Oct 2027 🙂 )
Message 7 of 13
(3,386 Views)

Hello becktho,

in this case i can't use file dialog because i'm using matlab script block to make some calculations and i need this name to open a .mat file.

 

But thanks fo your reply, I'll use in other part of my vi.

 

Larson

0 Kudos
Message 8 of 13
(3,385 Views)

Hey larson,

here we go LabVIew 7 it will be.

And Thomas, Yes i had indeed used Dialog option for my sub VI's appearance.

Larson, find 2 Vi's.

 file dialog is the main vi and Pop is a sub VI

It should suit ur purpose just fine

regards

Dev

 

Download All
Message 9 of 13
(3,383 Views)

hello devchander,

 

i've seen your vi and is what i wanted. But i have a problem when you push ENTER FILE NAME, it starts running pop.vi and the machine works at 100%, how i can change this vi for not to carry the machine at full work.....with an event structure?? I don't know.

 

Thanks!

Larson

0 Kudos
Message 10 of 13
(3,372 Views)