LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing flattened cluster to binary string tag?

Should the write tag vi produce a status warning or something if the binary string tag is not sized as large or larger than the string data being written to it?? I am using labview7.0. Right now the DSC engine just truncates the data with no indication of an issue.
0 Kudos
Message 1 of 2
(2,538 Views)


Well, it can be argued both ways -- yes, it will be nice if the Write Tag VI warns that the string length has exceeded the specified limt -- no we don't need a warning since you have explicitly specified the string length (and thus implicitly agreed that the rest will be truncated).

Anyways, if a warning is desired, a workaround would be to check the length of the string (using the string length function) before writing to the Write Tag VI and then flag some kind of error.

Hope this helps.

Regards,

Khalid 🙂


Message 2 of 2
(2,538 Views)