05-06-2014 03:40 AM
hi
i am not able to execute imwrite command in the mathscript module in LabVIEW. Is there any way i can execute the imwrite command ?\
Vishnu.T
05-06-2014 07:44 AM
Hi,
What command did you execute? Did MathScript throw any errors?
05-06-2014 01:07 PM
05-06-2014 01:18 PM
Hello vishnu_t,
I believe fwrite_image is what you're looking for, refer to this help document:
http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmath/msfunc_fwrite_image/
When you say this is not able to execute, is the function recognized? Do you see any errors? Does the VI run at all? What version of LabVIEW are you using, and on what platform (Windows, RT, etc)?
Regards,
05-07-2014 12:49 AM
I am using labview 2013 in windows 7.
i tried to execute imwrite(array,name); where array is the 2d array i want to write as the image and name is the full path of the image i.e eg: 'D:\pic.jpg'.
I get the error "You specified an invalid number of input parameters for this function."
What can I do
Vishnu.T
05-07-2014 01:02 AM
Hi,
The third input which speicifies file type is required. Then, you have to give three inputs as follows.
a = rand(10); imwrite(a, 'D:\test.png', 'png')