LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AMC API losing messages when sending over a network?

I am trying to use the AMC api to send data across a TCPIP connection and randomly messages will get lost.  Is it possible that the use of the XML string inside the api for the message format could be interfering?

0 Kudos
Message 1 of 3
(2,917 Views)

I will answer my own question.  Yes that is the source of my missing messages.  Luckily it is easy to replace with flatten to string and resolves the problem. Hope this helps some one else.

0 Kudos
Message 2 of 3
(2,911 Views)

I know I am replying to a pretty old thread but I stumbled upon it searching for AMC.

 

Even though replacing the xml with a flattened string fixed your problem that may not have been the cause. AMC messages are sent as UDP unless there is an option I don't know about. UDP packets can get lost and that is normal.

 

So maybe replacing the XML with a flattened string is just masking the "problem" of dropped messages. XML is going to result in a larger amount of data. Maybe this resulted in more UDP packets.

 

If you are still here, have you ever seen dropped messages since you made that change?

 

Oh and you would have probably got a quicker answer over here.

=====================
LabVIEW 2012


0 Kudos
Message 3 of 3
(2,798 Views)