LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

splitting up a string into seperate elements

YES!

 

Very Nice.

 

Thank you

JCollado
0 Kudos
Message 11 of 16
(1,461 Views)

 

Not sure why but when I tried reading that text file they way you have it I could not read it. It says invalid Path.

 

It did work when I did it with build string and then string to path.

 

See attached snippet.

 

JCollado

JCollado
0 Kudos
Message 12 of 16
(1,456 Views)

 


@JCollado wrote:

 

Not sure why but when I tried reading that text file they way you have it I could not read it. It says invalid Path.

 

It did work when I did it with build string and then string to path.

 

See attached snippet.

 

JCollado


In your string constant 'getArgs.txt', get rid of the slash

 

Cory K
Message 13 of 16
(1,445 Views)

Yes Sir that was it!

 

I did not expect that since when I put the path from the get system directory vi it does not have the slash.

 

Good Job.

 

Thank you

JCollado
0 Kudos
Message 14 of 16
(1,437 Views)

 


@JCollado wrote:

Yes Sir that was it!

 

I did not expect that since when I put the path from the get system directory vi it does not have the slash.

 

Good Job.

 

Thank you


 

One of the reasons Altenbach changed how you retrieve the file name is because of that slash.

Not all operating systems use a \ as a delimiter between a folder and its contents.

This will cause your VI to break on other OS's if you use your original method.

That is why Altenbach proposed his method.

Cory K
0 Kudos
Message 15 of 16
(1,431 Views)

Ok

 

Go Yanks tonight! 🙂

JCollado
Message 16 of 16
(1,427 Views)