Data assigned to CHAR doubles every other character
fogled@mizzou
h4x354x0r
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,
Comments
-
This would most likely be bad RAM in your master. We had 5 (out of 48) DVX-2100 units with the exact same problem. Send it back to AMX if it is under warranty. I suspect a bad batch of RAM ICs managed to get past QC.
Roger McLean
Swinburne University -
Yeah, I contacted AMX, and the verdict was to get an RMA and send it in. However, the support tech said this problem had never been reported before. Maybe not on an NI-3101, but...
-
I think some of the innards of the DVX-2100 is taken from the NI-3101 design. The device firmware appears to be applicable to either model, though they have different port counts. (Similar to the NI-2100/3100/4100 devices.) In discussions with our tech support they had seen a similar issue maybe 5 years ago on two NI-X000 units, but not since.
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
Leave a Comment
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums