LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem executing Mathscript code fopen

Hi All,
I am using the function fopen in Labview mathscript.
I am using it as

fid=fopen('calfile.cal','wb');

w is for write mode and b is for IEEE floating point with big endian byte ordering.
However, when I execute it I get an error

Error in function fopen at line 41.  The input parameters are not in the required format.

Kindly help.
Thanks in advance
0 Kudos
Message 1 of 2
(2,889 Views)

Hi Venke, the parameter that is not identified is the b. File open is the reference for the file, more than the information on the file itself. In the next link you can see a description of the valid parameters for the parameter:

http://zone.ni.com/reference/en-XX/help/371361B-01/lvtextmath/msfunc_fopen/

Best Regards

Benjamin C
Principal Systems Engineer // CLA // CLED
0 Kudos
Message 2 of 2
(2,875 Views)