08-24-2009 03:50 PM
Solved! Go to Solution.
08-25-2009 03:05 PM
First issue noticed in your block diagrams is the EOL constant, which is CR in LabVIEW for ARM
#define SSEOL ‘\r’ in CCodeGen\include\os\rtx\LVDefs_plat.h (seems to be a Mac:)
Modifying it might help, but I don't know how this affects other modules.
Do not think to replace EOL in block diagram with a "\r\n" string constants because code generator will write SSEOL in the C files for any two characters string constants \r\n. A solution could be writing constant such, e.g. "\r\n.\r\n" for end of message.
The error shown in your image is not so strange - it’s a corrupted heap memory error. Perhaps there is an improper interface between LabVIEW strings and zero terminated C strings. Try to add a NULL at the end of the server address (i.e. "server01.iacontrol.com\00" , if you select Code Display for that constant, BTW-perhaps the domain is iacontrols).
Few questions are looking for answers before going further:
Does the board connect to the server? (put a CCG Error Handler.vi after TCP Open Connection and watch the error in runtime)
If the connection is established, how many packets are sent/recv before an error occurred? (e.g. put a One Button Dialog after TCP Read).
If the connection is not established, can the board connect elsewhere? Which versions are you using? (LabVIEW and MDK-ARM)
P.S. It is fair to wait for "220" before transmitting "HELO"
08-26-2009 02:52 PM
Hello Jaggs,
We are going to need a little bit more info. Can you answer the questions Nic posted. As well, when exactly is this error occuring? Is it during the deployment process or right after the program begins running?
09-04-2009 12:37 PM
09-04-2009 01:48 PM
09-15-2009 03:04 PM