Pic to Excel Visual Basic
Posted: Tue Nov 08, 2011 10:57 am
Hi
I'm not sure if I'm allowed to ask a Vb question on this forum but please see if you can help?
I've programmed a pic16f877 to send data to an excel spreadsheet via com port 1 on the pc
the communication is working and all the data are recieved in the spread sheet like expected.
The Protocol format is: # A A S D D D D D D D D P CR LF
where: # = indicates start of message
: AA = Instrument address. ASCII 00 to 99
: S = sign (polarity) (ASCII "+" or "-" ).
: D = data bits (data for 8 numerals).
: P = decimal point position. ASCII 0 to 8.
: CR = ASCII carriage return.
: LF = ASCII line feed.
How can I display only the polarity sign & the 8 digits from the string
& remove the leading zero’s if there are any.
It also shows a square where it receives the CR or LF how can I remove it.
I'm not sure if I'm allowed to ask a Vb question on this forum but please see if you can help?
I've programmed a pic16f877 to send data to an excel spreadsheet via com port 1 on the pc
the communication is working and all the data are recieved in the spread sheet like expected.
The Protocol format is: # A A S D D D D D D D D P CR LF
where: # = indicates start of message
: AA = Instrument address. ASCII 00 to 99
: S = sign (polarity) (ASCII "+" or "-" ).
: D = data bits (data for 8 numerals).
: P = decimal point position. ASCII 0 to 8.
: CR = ASCII carriage return.
: LF = ASCII line feed.
How can I display only the polarity sign & the 8 digits from the string
& remove the leading zero’s if there are any.
It also shows a square where it receives the CR or LF how can I remove it.