02-24-2012 12:12 AM
hi,
my requirement is to create a image file whenever i click on the snap button on the front panel. In my block diagram after creating a file i need to build the path and write to bmp file because it is a bmp image.I have used file dialog which is ceating a folder but i dont want the folder i need a file to get created. when i am trying to use open/create/close file i am getting an error because the output of the create folder is created path and the output of the open/create/close file is refnum out. Can anyone help me in this
02-24-2012 12:14 AM
Post the code that you have tried.
02-24-2012 12:23 AM
hi,
thanks for the reply. Here i have done using create folder but i need to create a file. can u guide me in this
02-24-2012 12:35 AM
What you are trying to capture. Is that a front panel image or any other thing you want to capture as an image?
02-24-2012 12:35 AM
Hi
You can try the following VI which will create a file in the directory where the VI is located.
Regards
Javed
02-24-2012 01:13 AM
hi,
Thank you for the reply. I am using labview 2010 version. The vi you have sent is not getting opened
02-24-2012 01:28 AM
In LV2010..
02-24-2012 04:03 AM
Hello,
When you use a Path control, you can access his properties by left click on it. Or if you use an Express VI "File Dialog" you will get prompt to choose if you want to select a file or a folder, and even if you only want new one or existing one.
Here this dilaog in a Frenc LabVIEW version.
Open my attached VI and double click the express vi.
Regards