Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA Serial Write Binary File aborted

$
0
0

I have built a VI to communicate with a UUT (unit under test) over a serial port. The read and write are working properly, but I am having problems with using this port to transfer a binary file. I am attempting to automate an existing procedure performed with hyperterminal which uses the "send file" function with the "ymodem"' protocol setting.

 

There is no error when attempting to use "VISA write from file", and I have verified that the file size & bytes transferred are both 21862 bytes (from "Get file size" and "VISA write from file"). However, the UUT replies with a message that the operation was aborted by the user. I have also attempted to use "VISA Write", but I get the same results (Big or Little Endian).

 

Questions:

1) What changes do I need to make for this to work like Hyperterminal in "ymodem" protocol?

2) Do I need to modify the file before sending?

3) Do I need to send the file 1024 bytes at a time, appending the last message with null bits to make it come out to an even 1024 bytes?

4) Do I need to precede the file with a special header?

 

I have attached 2 pictures of example VIs to represent how I have attempted to use "VISA Write from File" and "VISA Write". The actual VI is built as an event handler driven producer-consumer.

 

======================

Example UUT Response:

======================

 

Erasing 450560 bytes at SPI Flash address 0x180000
Waiting for the file to be sent ... (press 'a' to abort)
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

Aborted by user.

OK

err[20:49:37] RCVR: No Updates - Restart

 

======================

 

 

Best Regards,

 

Sam Broyles

 

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>