05-13-2010 10:17 AM
I have a script that reads in binary data from a file, but there are null characters separating each entry. What syntax does MathScript use for the null character??
The script is something like this:
entry = fread(fid, 1, 'uchar');
if entry ~= NULL
column = [column entry];
else %When we hit a null, we finished one column title, then cycle until we begin another one.
... Do other stuff....;
05-14-2010 11:23 AM
If you're reading a binary file and searching for a Null character, I would assume that it would be represented as the binary equivilent of the ASCII NULL Character, which would be 00000000.
Otherwise, if you are using the MathScript Node in LabVIEW, it will use the same NULL character that LabVIEW uses, '\0'
Logan H