06-30-2016 10:32 AM
Open/Create/Replace only seems to allow writing to an existing file, every time I try to type a new name in it's throws an error saying the file dosn't exist. See attached
Solved! Go to Solution.
06-30-2016 10:34 AM - edited 06-30-2016 10:36 AM
There's an "operation" input. Default is "Open", which doesn't create a new file. Create a constant to set the input to Open or Create.
Press cntrl+h to see the Help window that gives you all the information you need about a subVI.
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-30-2016 10:59 AM
Also note that the Open/Create/Replace will not create the directory structure. You should use Create Folder (in the File IO->Advanced palette) to create the folder you want to put the file in if the folder does not exist.
06-30-2016 11:06 AM
Sounds like a great solution except I can't seem to add that text to the constant see attached. Obviously doing something wrong
06-30-2016 11:08 AM
@crossrulz wrote:Also note that the Open/Create/Replace will not create the directory structure. You should use Create Folder (in the File IO->Advanced palette) to create the folder you want to put the file in if the folder does not exist.
Oh, great will give that a try
06-30-2016 11:13 AM
@rr1024 wrote:Sounds like a great solution except I can't seem to add that text to the constant see attached. Obviously doing something wrong
Right-click on the input and select Create->Constant
06-30-2016 11:13 AM
@rr1024 wrote:Sounds like a great solution except I can't seem to add that text to the constant see attached. Obviously doing something wrong
Uhhhh... never seen that before. It looks like you're just trying to put down some kind of generic selector box. What happens when you right click the input and select Create > Constant.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-30-2016 11:13 AM
That box is actually an Enumeration, a specific type of constant assoicated with that file open VI. You need to right-click on the connector and say Create->constant and that will give you the correct one.
06-30-2016 11:37 AM
@James.M wrote:
@rr1024 wrote:Sounds like a great solution except I can't seem to add that text to the constant see attached. Obviously doing something wrong
Uhhhh... never seen that before. It looks like you're just trying to put down some kind of generic selector box. What happens when you right click the input and select Create > Constant.
LOL, thanks the right click works great and never new that......newbie error
Thanks