cancel
Showing results for 
Search instead for 
Did you mean: 

Correlate Data File Name to Results File

SOLVED
simply_me
Active Participant
Solved!

Correlate Data File Name to Results File

Message contains an attachment

Hello,

 

My vi performs statistics on multiple data files, and I was wondering if it is possible to correlate the new file names (of the results) to their original data sets. For example: data files names: data1 & data2 will output result files: data1_result & data2_result.

Is this possbile to do?

 

Thank you?

6 REPLIES 6
RavensFan
Knight of NI

Re: Correlate Data File Name to Results File

Sure it's just a matter of taking the file paths you are starting with and doing some file path strips and builds to generate a new file path from that.  It seems like you are already doing some file path building in your VI so I'm sure you can figure out what you want to do.

simply_me
Active Participant

Re: Correlate Data File Name to Results File

Cool, thanks, I haven't thought about striping the path....

simply_me
Active Participant
Solution

Re: Correlate Data File Name to Results File

Message contains an attachment

Just for future reference, if someone will have a similar question, see attached file.

GerdW
Knight of NI

Re: Correlate Data File Name to Results File

Hi simply_me,

 

for future reference: You should avoid hidden wires when you post a solution as picture. Your picture is very hard to read due to bad wiring...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
simply_me
Active Participant

Re: Correlate Data File Name to Results File

Message contains an attachment

I hope this one is better :-)

RavensFan
Knight of NI

Re: Correlate Data File Name to Results File

So if file path stripping and building was the solution to your problem, then shouldn't my message #2 be marked as the solution?  Smiley Wink