Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

write to spreadsheet.vi run error in scan mode of crio

 

im trying to log some data to an excel spreadsheet using the write to spreadsheet.vi. 

When this VI is run on the crio, i get an error.

"error 43 occured at open/create/replace file in write spreadsheet string.vi"...

 

Its the same error i get if the same vi is run on teh local pc, and with no path provided, and the user clicks on the cancel button.. thus giving it no valid file name. In this case, on the crio, i have even hardcoded a file path in and still get the error though.

 

any help is apprecatied as i really would like to log the data

 

0 Kudos
Message 1 of 7
(4,454 Views)

How are you providing your path constant? 

 

If you are using a string constant with "c:\" you will get an error because cRIO uses unix style paths: "/c/system/"

 

If you use a path constant (green box) and put "c:\" it should work correctly.

 

 

0 Kudos
Message 2 of 7
(4,443 Views)

Im trying to write the file to the local PC

I was always using file path (green) constants.

If i write to the crio, well, i need to know how to get the file off of it.

 

I did try your suggstion of just the root of the c drive.

I do not get an error, but the file does not show up.

Where is the file being written to, the crio?

 

If i run a more elaborate path, such as this:

http://www.engr.uconn.edu/~jmacione/temp/Untitled6.jpg

The following  error occurs

http://www.engr.uconn.edu/~jmacione/temp/Untitled5.jpg

 

0 Kudos
Message 3 of 7
(4,437 Views)
Remember you can save files directly to the cRIO then use the LabVIEW FTP client or other FTP browser to move them to your windows host.
Message 4 of 7
(4,429 Views)

so according to hunter at ni, the crio will only write locally.

then we have to ftp into it to get the files

i guess its ok as the files are small.

 

easiest way if found is through my computer, ftp://192.168.1.105 and all the files show up.

0 Kudos
Message 5 of 7
(4,427 Views)

 

 

thanks

0 Kudos
Message 6 of 7
(4,425 Views)
Yes, that is all correct.
0 Kudos
Message 7 of 7
(4,422 Views)