#21613 - 2002-05-12 11:53 AM
RS232
|
tobien
Lurker
Registered: 2002-05-12
Posts: 3
Loc: germany
|
HELP I am using a multimeter which is sending data’s over a rs232 serial line to my comport1. I want to log some data when the kix script is started. Is this possible?
|
Top
|
|
|
|
#21615 - 2002-05-13 07:36 AM
Re: RS232
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Oh man Doc.. You are bringing memories back to me now..
I think what you need though is a re-direct to the com port..
Like: DIR > COM1
tobien - to take off from what Doc has posted:
KIX32 YOURSCRIPT > COM1
Doc, remember these?
ECHO AT > COM1
Or.. ECHO ATZ > COM1
Or.. ECHO ATH > COM1
Thanks,
- Kent [ 13 May 2002, 07:38: Message edited by: kdyer ]
|
Top
|
|
|
|
#21622 - 2002-05-13 10:24 PM
Re: RS232
|
tobien
Lurker
Registered: 2002-05-12
Posts: 3
Loc: germany
|
A multi meter is giving a value out onto its display or to a computer via rs232. This value shall be used to make decision in Kix. The value can be a temperature, an electric value as Amp; Voltage, Resistor Capacitor or radiation .... Kix is running on w2k and it is easy to writ it in qbasic, but qbasic in not running correctly under w2k. The w2k kernel is stopping all access to the ports
|
Top
|
|
|
|
#21623 - 2002-05-13 10:29 PM
Re: RS232
|
tobien
Lurker
Registered: 2002-05-12
Posts: 3
Loc: germany
|
Jens is totally right with a Fluke Multi-Meter
Marc Tobien
|
Top
|
|
|
|
#21625 - 2002-05-13 11:34 PM
Re: RS232
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
|
The Platfrom SDK November 2001 says the following about 'comm/datamodem/portname': quote: The comm/datamodem/portname device class consists of the device names to which modems are attached. When this device name is specified in a call to the lineGetID function, the function fills the VARSTRING structure with a null-terminated ANSI (not Unicode) string specifying the name of the port to which the specified modem is attached, such as "COM1\0". This is intended primarily for identification purposes in the user interface, but could be used under some circumstances to open the device directly, bypassing the service provider (if the service provider does not already have the device open itself). If there is no port associated with the device, a null string ("\0") is returned in the VARSTRING structure (with a string length of 1).
So, according to this, there are provisions to read the data. But, not knowing the communications protocol used by the multimeter, I doubt it'll be doable in kiXtartat all. I would rather use some kind of command-line data logger that reads the data into a text file. Afterwards I can parse the text file with KiXtart and do whatever needs to be done with that data. That reminds me, it would be nice to be able to define a function based on a call to a DLL as can be done in Visual Basic.
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|