05-09-2016 02:15 PM
I'm trying to figure out how I would go about saving test output data to specific directories based off of the test name.
Ex: Test # 390284-1857294532 gets saved into folder \\Blue\Analysis_2016\390284
and test # 325235-125183952 gets saved into folder \\Blue\Analysis_2016\325235
Any ideas on how I could get this to function based off of logic?
Thanks,
05-09-2016 02:56 PM
Use Build Path instead of Concatinate String.
05-09-2016 03:40 PM
When you attach your entire VI as code (meaning the VI, itself) rather than a picture, we can be more helpful. As Crossrulz says, you need to use Build Path to combine a Path Name with a file name. Incidentally, I noticed that your Path Name in the picture showed a folder on the C: drive, while the Path in the question you posted shows a Share.
When and how do you assemble the Test name? It appears that you want to make the file name resemble part of the Test name -- the String functions are good for pulling apart (and putting back together) Strings.
Keep us posted.
Bob Schor
05-09-2016 07:12 PM
Thanks for the feedback guys.
The test data gets stored on a network drive in a series of folders \analysis_2016\######
I'm working to develop a test sequence to replace some of the manual entry stuff that I have to do. For example, we normally have to manually enter the test # and associated part #, but I'm parsing out the data through a barcode scanner. The data looks something like this:
320336@69835084@18,000@64A1668@1890492955@000000000
The only info that I really need is the first 6 (320336) and the string of 10 (1890492955).
So far I have this part working just fine.
From here, it pulls up a test file and changes the test parameters for temp and voltage based off of the 6 digit #.
So what I'm doing now is getting it to automatically store the data into the appropriate folders so that I don't have to move it manually.
I'll attach my VI so you can see. Build path seems to be working okay so far
Currently it's saving the file as 320336 instead of in the folder 320336 and it's having trouble because it's seeing the folder already named that and errors out
05-09-2016 08:27 PM - edited 05-09-2016 08:27 PM
You probably want something more like below. Your "appended path" needs to be an xls file, not a folder. So you need another Build Path to add the original file name.