06-28-2016 10:57 AM
Hello,
I have tried to implement the 'Create File with Incrementing Suffix' VI into my code to try and save time when acquiring multiple images however haven't been successful in doing so. Could some one help me with this problem. Thanks.
06-28-2016 11:10 AM - edited 06-28-2016 11:12 AM
You don't have the "Create File with Incrementing Suffix" VI anywhere in your code...
That VI creates an actual file. I don't know if the IMAQ Write File VI can overwrite an existing file, but it's possible that it won't allow that. If you just want to generate the filename without creating the file, open the Create File VI and Save As with your own name and remove the part of the code that creates the file. I have created a VI like this, attached.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-28-2016 11:26 AM
06-28-2016 11:43 AM - edited 06-28-2016 11:43 AM
Well the way your code is set up right now, you will have that problem because you are prompting every time you capture. Instead, use a filepath control that the use has to select before capturing. Without complicating your general architecture,this is how I would do it:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-29-2016 04:44 AM
Hi, what is the VI with the red 'PATH ONLY' on it? I do not seem to have it installed on my labview?
06-29-2016 07:40 AM
Sorry ignore this message I am mistaken.
06-29-2016 07:47 AM
Hello when I click 'capture' I get the following error:
Error 1430 occurred at Create File Path with Incrementing Suffix.vi
Possible reason(s):
LabVIEW: The path is empty or relative. You must use an absolute path.
Complete call chain:
Create File Path with Incrementing Suffix.vi
r.vi
06-29-2016 07:51 AM
Did you supply a file path from the front panel (ie actually choose a file to write to)?
06-29-2016 07:58 AM
No I didn't what is supposed to go in the file path box?
06-29-2016 08:30 AM
This is a useful VI, but is "complicated" when used with IMAQ. It is designed for the normal File I/O functions, and performs two actions -- if you give it a full file path, it will open/create a file for you (giving you a File Handle that IMAQ doesn't want/need) and a "unique file name". About a week ago, a similar question was asked, and I described how to do this here. Check it out.
Bob Schor