05-23-2008 07:12 PM
05-27-2008 08:07 AM
05-28-2008 02:24 PM
chris_amadasun a écrit:
Hello,
Unfortunately the Xmodem protocol is not supported in LabVIEW or LabWindows/CVI
However we can implement certain parts of the protocols. Please take a look at this KnowledgeBase article.
We can try a few things
1. Can you try sending the second file first? Lets see what happens.
2. Also can you take a NI Spy log of the transfer and post it here.
Let us know how this goes.
thank you for your reply!
05-29-2008 09:34 AM
05-29-2008 10:45 AM
08-05-2009 09:21 PM
I have a similar issue with LabWindows/CVI Xmodem where the receiving device sends 'CAN' and terminates the transfer (likely due to an overrun error). The issue is unrelated to baud rate as it occurs at 9600 and 115200 bps. The file can be uploaded sucessfully using Hyperterminal. Transfering a file to a different device using the same CVI function also works fine. I used Portmon to capture the port traffic as you recommended. What is interesting is that when Portmon is active, the CVI Xmodem transfer always works fine (but fails when Portmon is not running). It appears that the extra delay (introduced between each byte) allows for a sucessfull transfer. How is this delay time (between bytes) set in the LabWindows/CVI Xmodem function?
08-10-2009 12:40 PM
Hi Kotech,
wait_delay is what you're looking for.
Please look at the following link (search for delay)
If you have any other CVI questions regarding this, please post them in LabWindows/CVI forum.
Regards,
Sammy Z.
08-18-2009 11:57 AM
Hi Sammy Z,
Thanks for you response but the 'page cannot be displayed' for link you provided.
The parameter wait_delay is also described in the knowledge base article http://digital.ni.com/public.nsf/allkb/2AD81B9060162E708625678C006DFC62.
It states that "the receiver will call wait_delay and then send ack back to the sender" after reading the data packet.
What I am looking for is a parameter for the delay time after each byte when a packet is sent.
08-19-2009 01:45 PM
Hi,
That was actually the link I was trying to send you.
In order to send the data bytes with delays in between, I suggest doing multiple writes with smaller chunks of data being written at a time.
Regards,
Sammy Z.