LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

logic based save location

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,

0 Kudos
Message 1 of 5
(3,864 Views)

Use Build Path instead of Concatinate String.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,853 Views)

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

0 Kudos
Message 3 of 5
(3,835 Views)

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

 

0 Kudos
Message 4 of 5
(3,810 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(3,801 Views)