LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save as type using Vista

Solved!
Go to solution

Hi All,

 

I am saving an IMAQ image and would like to have the option of having the File Dialog box allow me to save as different formats.

 

We have a solution for this at:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=16648&query.id=392066

 

However, these vi's don't work in Windows Vista.

 

The problem appears to be in the "MSComDlg.ICommonDialog" control which is probably different for Vista.

 

Anyone have any solutions?

 

Thank You,

 

Earl

 

 

0 Kudos
Message 1 of 6
(3,691 Views)
Solution
Accepted by topic author eweltmer
I'm not sure why you're going back to 2001 to try and use a VI that old. Just use the Open/Create/Replace File function. It will display a file selection dialog.
Message 2 of 6
(3,665 Views)

Good point but I don't want to simply open or save a file.

 

As I had mentioned,  the thread I had specified at:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=16648&query.id=392066

 

has a solution for this drop down but doesn't seem to work with Vista.

 

I have used a thread going back to 2001 because it is the only thread with a solution.

I have called NI service and was informed that that is not an existing option.

 

The vi specified works with "MSDialog.." and appears to be a ".NET" finction.

 

Attached is a picture of the desired behavior that I want to try to get working with Vista.

 

Thank You,

 

Earl

 

0 Kudos
Message 3 of 6
(3,654 Views)
The File Dialog function will allow you to specify multiple file patterns, but it won't provide them as individual items in the dropdown menu. If you want to have it look exactly like a standard Windows dialog then you can use .NET to do it. The only issue is that you need to add it a bit of code to make the dialog come to the front. Otherwise it gets opened behind the LabVIEW windows. See here for an example of code that does this.
Message 4 of 6
(3,614 Views)

With a few modifications, this works well!

 

It gives me access to the .NET functions through the constructor node.

 

Many Thanks!!!

 

Earl

 

0 Kudos
Message 5 of 6
(3,597 Views)

I stumbled across this today looking for something else.  This will use the standard LabVIEW dialog box and give multiple patterns to match.  I realize you got it to work with .NET, but for anyone else who may find this, this link may be useful:

 

http://forums.lavag.org/Prompt-for-directory-t8678.html&st=15#

Message 6 of 6
(3,468 Views)