Jump to content

vattic

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by vattic

  1. Tom,

    Your message caught my eye as the Simple TCP Messaging (STM) protocol that we have published on ni.com basically does the same thing. We have tested and benchmarked it on different LV versions and controlleres and can achieve at least 2 ms update rates per packet.

    The STM sender prepends the size of the packet in a 4 byte integer, and the STM reader first performs one read operation to read the 4 byte header and then performs a second read to get the payload of the packet. STM is implemented using polymorphic VIs supporting both UDP and TCP under the hood.

    I just retested this using LV 8.6 and a cRIO-9012 VxWorks controller and was able to achieve better than 2ms loop times for sending/receiving two packets per loop (4 individual read operations on the cRIO) using both UDP and TCP.

    I realize you already have a working solution, but if you're interested I would be available to help determine what caused the behavior and low performance that you saw, which is not typical of TCP/UDP on the VxWorks RT platform.

    http://zone.ni.com/d...a/tut/p/id/4095

    http://zone.ni.com/d...a/epd/p/id/2739

    Hi, i'm sorry if i interrupt this thread,but when you mentioned about STM i have a question. i have STM newest version 2.0 library and labview 2009. when i connect a server and client it works fine without any problem. i should thank the people who has did this library,but found one bug on it,like whenever i remove the LAN connection that means STM read message in the server side which is suppose to give an error (66) , will not give any error saying the connection is lost. what is the reason behind this?if you have any idea then please tell how to go on with this.

  2. Hi all,

    i want to send a file of around 1MB from one PC to another using labview through serial port.im using Xmodem protocol for this application.

    my problem is how to detect the serial connection lost and give an interrupt to the sender saying there is an error on the link so that the transmission should freeze until the link get live.In this time both programs in the transmitter and the receiver should run even if the serial connection is broken.

    can anybody please help me regarding this matter?

    Regards,

    vattic

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.