02-16-2009 07:51 PM
I'm trying to implement a button on a joystick that when pressed will capture an image from the AXIS camera and save it to a file in the cRIO's file system. I've got the image capture working, as I can see the image displayed properly when I'm debugging. However, when I try to save the image to a file with the IMAQ Write 2 VI, I get an error -1074395313 with no explanation. I'm trying to save the image to an "images" folder with the current date/timestamp as the filename. The path returned and used is perfectly valid, and the images folder already exists on the cRIO (verified by FTP). I've tried saving as both PNG and JPEG, with the same results. I'm also able to successfully save text to a log file separately. Here's a screenshot of the image-saving code, with a probe on the error and the image:
Does anyone know what the issue could be and how I could fix it? Thanks in advance!
02-17-2009 09:11 PM
You can use the Help >> Explain Error feature of LabVIEW to find more information about specific error messages. I obtained the following result for error -1074395313:
IMAQ Vision: (Hex 0xBFF6074F) Writing files is not supported on this device.
One workaround would be to flatten the image to a string and send it over TCP/IP to your host PC. You could also use shared variables to transfer the data. Let me know if you have any questions about this after you read over the links. Thanks for posting and have a great day!