Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default q:read value from serial port

I have a queston concerning excel. Namely, we have comparator in our firm
with which measure the deviation from the vertical in the bottle that we
produce. These datas are typed into table in excel and are processing
later.Since there is a lot of measuring and the above mentioned comparator
has a cable to connect it with a serial port (9 pines) of comparator, is it
possible to make macro in vb so that on pressing a key the computer reads
value in the serial port and puts it into the activ cell in excell.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default q:read value from serial port


Hello Qwerty,

If the communications software for the comparator exposes VBA routine
in Excel then your task will be much easier. If not you could writ
your interface using Visual Basic (not VBA) and write a DLL to provid
the low level link needed to the serial port. I would advise agains
it, unless you have the electronics and software background an
experience with low level coding.

It could be the comparator is communicating via DDE (Dynamic Data Link
or RTD (real Time Data). Either of these methods has VBA interfacin
with Excel. You could easily construct a button using VBA to read i
the information.

Happy Holidays,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=49591

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default q:read value from serial port

Thank you very much for answering to me so quickly. But i have a question
for you because i am not very good at vb. Do you have an example of vb(or
macro in excel) which reads value on the serial port ?

Merry christmas and happy new year !


"Leith Ross" wrote
in message ...

Hello Qwerty,

If the communications software for the comparator exposes VBA routines
in Excel then your task will be much easier. If not you could write
your interface using Visual Basic (not VBA) and write a DLL to provide
the low level link needed to the serial port. I would advise against
it, unless you have the electronics and software background and
experience with low level coding.

It could be the comparator is communicating via DDE (Dynamic Data Link)
or RTD (real Time Data). Either of these methods has VBA interfacing
with Excel. You could easily construct a button using VBA to read in
the information.

Happy Holidays,
Leith Ross



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default q:read value from serial port


Hello Qwerty,

I regret the delay in answering back. I was experiencing some problem
with my computer today. I don't have any VBA examples of commands t
read from a serial port because it is not a standard VBA function i
Micsoft Office.

In my original post I stated the company that developed the comparato
would have to had written accessable VBA routines into thier software
VBA is a licensed product for third party development. Contact th
company or reference the manual to find out. Some third partys who ad
VBA to their software are AutoCad and Adobe.

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=49591

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read/write a Serial Port Wal[_2_] Excel Programming 5 November 26th 04 03:26 PM
Serial port interface TAV Excel Programming 2 October 25th 04 04:14 PM
Mac Serial Port Communication Jeff Robson Excel Programming 0 November 30th 03 03:51 PM
Excel and the Serial Port Hotbird Excel Programming 1 November 27th 03 11:10 PM


All times are GMT +1. The time now is 07:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"