07-28-2017 03:06 AM
So I've attached my VI, and upon error checking it seems to work fine up until the Write JPEG to File code is implemented. It gives ERR 1 there. I feel like I've almost got it figured out, but no dice yet.
Just upload whatever personal VI you have to test my code.
Solved! Go to Solution.
07-28-2017 03:32 AM - edited 07-28-2017 03:37 AM
I get the same error when trying to write the file to a folder where I need elevated privileges (e.g. "C:\test.jpg"). However writing to desktop, documents or other folder where elevated privileges are not needed, it works fine.
07-28-2017 08:13 AM
Curious. This worked for me (basically your code, cleaned up a little) ... Hmm, can't save image (which worked a few days ago, now it insists on showing only part of the image), so I'll attach the code as a LabVIEW Snippet, as well as the output JPEG (which shows the Front Panel).
Bob Schor
07-28-2017 05:35 PM
I got no error either when saving to Desktop. I deleted the file path because it was asking an existing .JPG file (this can be configured by right clicking that control, then Properties and changing what it should show/expect)
07-31-2017 08:27 AM
Thanks guys! I got it to work, but only when the JPEG was being saved to a folder on my desktop. It probably has something to do with Administrator permissions (although I'm running this on a administrator account). But at least this is a good start. Thanks everyone.