LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan from file: Duplicate path/data not in specified format

Solved!
Go to solution

Can anyone please let me know why this is not working?

It's just a sample piece of code, to write data into a txt file and then read from it.

 

First of all, if a file already exists when I want to write into it and I choose "Replace the file", it says Duplicate path and stops.

Second, if I write a new file, it shows: Error 85: Scan failed. The input string does not contain data in the expected format.

 

Attached VI file.

 

EDIT: see below post.

0 Kudos
Message 1 of 4
(3,406 Views)

In case someone wanted a better version of the same file, here it is.

0 Kudos
Message 2 of 4
(3,397 Views)

I now understood it to be a string scan problem, that it is not taking the  comma as a separator, but as part of the string.

Any help?

 

EDIT:

Before anyone posts anything, here's the actual thing I'm trying todo. It's part of a larger program, and I copied only parts of what I need in this post, so only relevant suggestions please.

The VI will not run because the LoadJob event has all the errors. It's what I need help with.

0 Kudos
Message 3 of 4
(3,389 Views)
Solution
Accepted by topic author prafullashahi

Just for reference, I solved it using the match pattern VI in a for loop and then using index array for individual values.

0 Kudos
Message 4 of 4
(3,357 Views)