Apr 26th, 2024, 11:26pm
Welcome, Guest. Please Login or Register.
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print
   Author  Topic: Serial port control from Excel  (Read 5721 times)
rodp
FabulaTech Forum Newbie
*



View Profile         
Posts: 2
Serial port control from Excel
« on: Apr 18th, 2008, 2:56am »
Quote Quote  Modify Modify

Hi All,
 
I'd like to make use of this software but before I go ahead and purchase it, does anyone (or Fabultech themselves) have any examples of how to utilise it from within Excel.  I'm quite familiar with VBA but don't know where to start with this sort of activex control.
 
I'm essentially wanting to control an LED display unit from excel.  The manufacturer has kindly provided a document giving protocol details of the unit.  See below for a bit of the document.
 
Basically, using the Activex control, how would I send a command to the unit and how would I recieve / interpret a command returned from the unit (if there is one - would presume would need a timeout of sorts)
 
Many thanks in advance for your help
 
RodP
 
------------------------------
 
4.2 Message / Control
There are 6 kind of message / control transfer
- Real Time Clock Setting
- Sending Page Message
- Sending Schedule
- Sending Graphic Block
- Delete => Page
    => Schedule
    => All
- Sending Default
 
 
Format :
PC -> MCU:  <IDXX> Data packet CS <E>
 
'<IDXX>' :ID of the designated LED board
<, I,D & > are ASCII character “<”, “I”, “D” & “>”
XX denotes the ID of the designated LED Board
Values are two ASCII character from 00-FF
 
'Data packet' denotes data content of this transmission string
 
'[CS]' denotes the Xor Result of the data content(Data Package).
[,C,S &] are two ASCII character from 00-FF
 
'<E>' Denotes the Ending code of transmission
<,E & > are ASCII character “<”,”E”, and “>”
 
 
 
MCU -> PC: ACK /NACK /No Response
 
1. ACK : Message with the correct Xor Result for the designated ID is
received
 
2. NACK : Wrong xor result for the designated ID is received
 
3. No Response : ID not match (Message for another LED on the same transmission line) or data format is not recognized.
 
---------------------------------
IP Logged
Andrew
FabulaTech Forum Moderator
Moderator
FabulaTech Forum Senior Member
*****



View Profile   WWW         
Gender: male Posts: 427
Re: Serial port control from Excel
« Reply #1 on: Apr 18th, 2008, 7:05am »
Quote Quote  Modify Modify

Hello,
 
Thanks for detailed info.
 
OK, we'll send you MS Excel example by email.
IP Logged

Andrew Scott

FabulaTech
===================
http://www.fabulatech.com
rodp
FabulaTech Forum Newbie
*



View Profile         
Posts: 2
Re: Serial port control from Excel
« Reply #2 on: Apr 21st, 2008, 2:57am »
Quote Quote  Modify Modify

Hi Andrew,
 
Thanks in advance for your help.  Looking forward to the email.
 
RodP
IP Logged
Pages: 1  Reply Reply  Notify of replies Notify of replies  Print Print

« Previous topic | Next topic »
Online Talk to our
support team or
sales department.