11-29-2012 09:45 AM
How can I specify a relative path with the express VI "write to measurement file"?
It seems that it only accepts absolute paths as input.
Thank you
11-29-2012 10:03 AM - edited 11-29-2012 10:03 AM
Relative to what?
In short, you have to take your relative path and use Build Path in order to create the absolute path. Here's an example using a relative path from the current VI's path.
11-29-2012 10:12 AM
Sorry, relative to the folder where my labVIEW project is saved into
Thanks for the reply
11-29-2012 10:22 AM - edited 11-29-2012 10:23 AM
That's actually easier
07-15-2016 04:01 PM
Hi, I have a similar question - how to specify a base path with "write to measurement file"? I want to set a base path for "write to measurement file", and let "write to measurement file" itself to define the series of files name. Is it possible? Thanks~
07-15-2016 04:08 PM
Why don't you add a timestamp or something that means something to you at the end of the file?
07-16-2016 09:38 AM
That's exactly what I am trying to do. My thought is: firstly give it a base path, which is chosen by a higher level operator, then give it a relative path, which is chosen by a lower level operator, and then the series file name is defined by time stamp. And is it possible to define the base path by wiring it to "filename", and define the relative path and file names in the dialog box? Thanks~ Now what I did is to build the path first (combine base path and relative path/file names together), then wire it to the "filename".
07-16-2016 01:45 PM
If you already know how to build up your path then I do not see the issue. Express VIs would have to do the same thing inside if there were a "relative path" option, but it sounds like there isn't. If it is just taking up too much space on your block diagram, you can always put it in a SubVI yourself. Was that your main concern?
07-17-2016 03:10 PM
Yes, I agree with you - there is no relative option here, so I have to build the paths first. My concern is simple, I am just curious about how to write a relative path directly into the "write to measurement file". Anyway, thanks a lot for taking time answering.
07-17-2016 07:06 PM
Write to Measurement doesn't look for a relative nor an absolute path. It looks for a path. You simply wire a path in.
You can choose to use an absolute or relative path to do this. Have you tried using the relative path snippet posted just before your reply? If that works for you (and it should), all you need to do is replace the "relative path" piece with with string you build. You can make this string however you please. Timestamps are a good choice.
Where exactly are you stuck?