Data assigned to CHAR doubles every other character
fogled@mizzou
Posts: 549
in AMX Hardware
This is an NI-3101 SIG, I can load the exact same program on another controller and it works fine.
--VARIABLE--
persistent char myvariable[100]
--START--
myvariable = "'ABCDEFG'"
When I look at the value of "myvariable" after an assignment statement like this, the content is: "AACCEEG" - it doubles one character, and skips the next. I'm guessing it's gotten locked into some kind of goofy 16-bit mode, but I don't know how to get it out of that mode. Help?
Thanks,
--VARIABLE--
persistent char myvariable[100]
--START--
myvariable = "'ABCDEFG'"
When I look at the value of "myvariable" after an assignment statement like this, the content is: "AACCEEG" - it doubles one character, and skips the next. I'm guessing it's gotten locked into some kind of goofy 16-bit mode, but I don't know how to get it out of that mode. Help?
Thanks,
0
Comments
Roger McLean
Swinburne University
I've pondered whether it is worth writing a test program which fully occupies the RAM, maybe via a very large array. The program should then populate the array and then perform a checksum on the array contents to verify whether it has all been written/read okay. The tricky part is determining how much user-RAM is available at run time, since we don't have dynamic memory allocation available to us. I don't know if Duet has dynamic memory allocation - can someone confirm/deny this for me?
Roger McLean
Swinburne University