02-27-2007 10:41 AM
02-27-2007 12:29 PM
I'll qualify my response by saying I'm not a MathScript or Matlab expert, but I'm pretty sure the imread function in Matlab is part of the Image Processing Toolbox. You probably have this toolbox installed for Matlab and may not have even realized it. I don't think MathScript natively supports functions in addons of this sort. Perhaps someone else will have some ideas on how you might still be able to use MathScript, but if you need imread I'm not sure if MathScript will work for you or not.
Good luck!
02-27-2007 01:44 PM
03-05-2007 05:12 PM
03-05-2007 05:13 PM
03-05-2007 05:22 PM
03-06-2007 07:27 AM
Hello Stephanie,
Historically, some error codes were (unfortunately) overloaded to give different error messages in different situations. I presume that the error is coming out of the "Read JPEG File.vi"? Clearly, as you've noticed, this shouldn't generate a GPIB error. 🙂 The LabVIEW error message for error 1 should read something like "An input parameter is invalid..."
Now if you'd sent the read function an invalid path, you should have gotten a more helpful error 7, file not found. Error 1, if being returned by "Read JPEG File.vi", might indicate that there was a problem reading the file at the path you specified. Perhaps it is not really a JPG file, or maybe it is a variant of the JPG format that LabVIEW doesn't understand, I'm not sure.
Anyway, as JeffreyP said, if you can post an example VI (including the JPG file you're trying to read) we could give a more definitive answer.
Good luck!