Quantcast
Viewing all articles
Browse latest Browse all 27201

VS 2010 string of hex to data table

Hi all, I am new to vb programming but I have had 3 years experience in learning(badly) C at uni.

I am attempting to create a GUI to control a MCU via rs232 and read data from it.

I have got to the point where I can receive a list of characters (in hex format) from the rs232 and dump them into a list box.

The hex string I am tx'ing from my MCU is 12 bytes long, each byte is a variable passed from the MCU..

ie;

MCU will transmit via rs232 : 0x122410122410122410122410

0x 12 (variable 0) 24 (variable 1) 10 (variable2) and so on

What I need to do with some of these variables to put them into a data table for later use in excel (the rest are used as status indicators) ie;

Variable0|variable1|variable2
123 |244 | 234
201 |120 |004
.....


Any help would be much appreciated and I will buy you a beer if you're ever in Plymouth, England.

FYI I'm using VS2010 and a header file for controlling the rs232 which I found online (which I have attached)Attachment 97049
Attached Files
  • Image may be NSFW.
    Clik here to view.
    File Type: vb
    CRs232.vb‎ (41.7 KB)

Viewing all articles
Browse latest Browse all 27201

Trending Articles



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