LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1

When I try to run the code below, I get an error message saying "Error 1 occured at Open File."  Please help.  Thanks!

Error1.JPG

 

0 Kudos
Message 1 of 6
(3,258 Views)

Is the path in your SaveFile indicator valid and do you have access to the file?  Error 1 is typically an invalid path error.

 

As a side note, you probably don't need all of those local variables.

0 Kudos
Message 2 of 6
(3,252 Views)

The SaveFile is valid.  I just found out the "Write Characters to File.vi" is no longer valid in labview.  There is also another vi "Write to SGL File" that appears to be invalid.  This is probably the issue.  What functions can I replace these blocks with?  Thanks.

0 Kudos
Message 3 of 6
(3,236 Views)

Read/Write text file is probably what you're after.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(3,231 Views)

What about "Write to SGL File"?

0 Kudos
Message 5 of 6
(3,225 Views)

Hey Krang,

 

If I understand the history of that function correctly, we switched from a set of read/write vis for every data type to a smaller set. The LV7.1 help documentation says that read/write sgl file is just converting a single precision number to the binary representation and then outputting that to a file.

 

To replace that, you would use the read/write binary file VI. An example of this can be found here. The key point is that when you read in the binary data, you have to specify the type by attaching a single precision numeric constant to the data type input. You do not need to specify the data type for write to binary file.

 

Thanks,

D. Smith

0 Kudos
Message 6 of 6
(3,179 Views)