LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Hex text files to the Serial Port

Hi,
Does anyone know or have any experience in how to open a Hex file, read
the data and send it down the serial port.

Regards,
Martin.
0 Kudos
Message 1 of 6
(4,593 Views)
Hi Martin,
There is a function " read spreadsheat file.vi " to load the Hex text file.
Then you use the serial communication.vi to send the string to the serial port.
If your Labviw version dos not contain the serial communication.vi : It is a
simple program which inits the serial port, then writes a string to the port,
and finally reads a string from the port.

Good luck!


Andi Exner
Martin Stanley wrote:

> Hi,
> Does anyone know or have any experience in how to open a Hex file, read
> the data and send it down the serial port.
>
> Regards,
> Martin.
0 Kudos
Message 2 of 6
(4,593 Views)
Martin Stanley wrote:
>
> Hi,
> Does anyone know or have any experience in how to open a Hex file, read
> the data and send it down the serial port.
>
> Regards,
> Martin.

Martin,
I have a vi that reads a hex file then sends the data out the serial port.
It waits for each byte to be echoed back before sending the next one.

As each hex number is read, it's converted to a decimal number. The number
is used as a decimal ascii code, the ascii character is then sent to the
serial port.

I'm not sure if this is the most efficient way to do it, but it works.

Walter
0 Kudos
Message 3 of 6
(4,593 Views)

Dear Martin, 

 Now i'm looking for sending the data from hex file through serial port. I think your program is very useful to me. Can you share the program?

0 Kudos
Message 4 of 6
(3,116 Views)

You do realize this thread is over 19 years old and Martin has not visited the forums for nearly 18 years, right?  I highly recommend you start a new thread with a lot more details on your problem, including what you have tried so far.  An example file would also help clear a lot of confusion.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,110 Views)

Also try searching the forums.  This question comes up periodically, and I think at least twice in the last few months alone.

0 Kudos
Message 6 of 6
(3,104 Views)