06-15-2011 07:19 AM
This program attached is for taking screen shots for an E4440a Spectrum Analyzer. I am trying to take multiple screen shot every few ms, sec, and min based on my menu selection. Also Im trying to increment the file name every time it saves with out me manually going in an changing it. Also I would like for the program not to prompt the user to enter a file name it should be incremented automatically. For example psa_screen, psa_screen1, psa_screen2.
Can anyone help?
06-15-2011 07:37 AM
06-15-2011 07:44 AM
Thanks GerdW i will try that. I was just using a pre build program i found that would already do what i needed it to do and just try editing it.
06-15-2011 08:19 AM
Gerd,
Is this what you were explaining? if not can you clarify pls. Also i attached the vi with the error.
Thanks
06-15-2011 08:21 AM
Here is what I would do.
06-15-2011 08:32 AM
Thanks Tim for your reply. I'm currently using labview 2009 can you save it in that version so I can open it please?
06-15-2011 09:05 AM
Here is an 8.0 version
06-15-2011 09:10 AM
@aeastet wrote:
Here is what I would do.
The File Dialog is not necessary, as Gerd pointed out.
@*E* wrote:
Is this what you were explaining? if not can you clarify pls. Also i attached the vi with the error..
What error? Also:
06-15-2011 09:22 AM
Tim,
Thanks i was able to open it. When I selected the time and ran the program it gave an error.
Error 43 occurred at file dialog -> SAVEVI2-1.vi
Labview : operation cancelled by user
06-15-2011 09:25 AM
@*E* wrote:
Tim,
Thanks i was able to open it. When I selected the time and ran the program it gave an error.
Error 43 occurred at file dialog -> SAVEVI2-1.vi
Labview : operation cancelled by user
It gave that error because it's supposed to give that error if you cancel the operation. As noted before, you do not need to use the File Dialog. Gerd's example has a path constant for the base path. You can change this to a control, and before you run your loop you can check for the existence of this path. If it exists, you can use. Otherwise, pop a File Dialog to ask the user where to save the files. Then feed this into the Build Path function. Don't overcomplicate this.