LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

MCB 2300 email

Solved!
Go to solution
I have created a simple email VI which works in PC based LabVIEW.  It gives strange error results when I deployed it on the MCB2300 board.  Did anyone encountered this problem?  Please find the attached files.
Download All
0 Kudos
Message 1 of 6
(7,039 Views)
Solution
Accepted by topic author Jaggs

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"

 

 

0 Kudos
Message 2 of 6
(7,014 Views)

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?

Regards,

Jon S.
National Instruments
LabVIEW NXG Product Owner
0 Kudos
Message 3 of 6
(7,000 Views)
I am wondering if you received any message from Email@system.com
0 Kudos
Message 4 of 6
(6,954 Views)
No, it is not working.  I have upgraded my labVIEW version to 2009 and now I not able to create build.  I will try on another PC.
0 Kudos
Message 5 of 6
(6,947 Views)
Finally got it solved by modifying the LVDefs_plat.h file.  I am not sure if this is the final accepted solution or will there be a CAR for this?
0 Kudos
Message 6 of 6
(6,874 Views)