11:13 am
March 23, 2015
I've got a really weird issue with a very small array of Hex Strings that I'm trying to index. (I eventually want to have about 30 array elements).
If I have four elements in this array the compiler tells me how much space the Sketch/Global/Local variables I have used in the Status window and the program works on the PWS stamp.
However if I just add one more element to the array (ie. 5) the compiler seems to stop at the "Found library 'Ole32' at Ole32.dll" and it is not downloaded onto the PWS Stamp.
It doesn't matter what the actual value of each element in the array is and it doesn't matter if the array constant is inside or outside the While Loop.
It can't be a memory size issue, because I can't have say a 10 element array of normal text and each element can be several characters long and it compiles with no issues.
Is there something special about Hex strings in arrays that I'm missing?
2:16 am
March 23, 2015
Actually with further testing it seems it is the NULL (0x00) string character that is causing all the issues. If I try to do any sort of operation (except sending it straight to the Serial Write VI) the program will not compile properly.
This includes the indexing array VI above, concatenate string, Case statement and probably other LabVIEW VI's.
Why is it so - Chris?
4:34 am
March 12, 2015
This post may answer your question.
https://www.geverywhere.com/for.....functions/
There is also a note in the user manual about using NULL characters in a string array:
NOTE: Any NULL (0x00) bytes in an array cannot be represented in Arduino language and will cause the string to be prematurely terminated during conversion.
Looks like you are sending packets. Best thing to do would be to use hex byte arrays instead of string arrays.
38
1 Guest(s)