From: Harald Oehlmann on
do you use the hardware flow control wires of the serial port ?
If not, you could switch the plexer using those signals (RTS, DTR) and
it is possible to control them directly with native tcl. You will have
to adopt the voltage level, but this might not be an issue.
See http://www.tcl.tk/man/tcl8.5/TclCmd/open.htm how to set them.
From: CKL on
On 7 oct, 16:46, Harald Oehlmann <wortka...(a)yahoo.de> wrote:
> do you use the hardware flow control wires of the serial port ?
> If not, you could switch the plexer using those signals (RTS, DTR) and
> it is possible to control them directly with native tcl. You will have
> to adopt the voltage level, but this might not be an issue.
> Seehttp://www.tcl.tk/man/tcl8.5/TclCmd/open.htmhow to set them.

Hum Hummmm
Good remarks, in fact I could use full the RS232 pins to control my
plexer.
Nevertheless I cannot use RTS,DTR, because my schematic is based on
http://chaokhun.kmitl.ac.th/~kswichit/Rs232_web/Rs232.html
But
Data Set Ready DSR
Clear To Send CTS
Carrier Detect DCD
Ring Indicator RI
are free, so I can simply use 2 of these pins to control my plexer
Just to see how to control this pins directly by tcl.

Many many many thanks to all.
Many thanks to change my direction

For information, my open source project is located here :
http://papsi.origo.ethz.ch/wiki/screenshots (Written in tcl) :-)))
http://papsi.origo.ethz.ch/wiki/cahier_des_charges_0

But it's in French

Christian

From: CKL on
On 7 oct, 18:06, CKL <christian.klugesh...(a)gmail.com> wrote:
> On 7 oct, 16:46, Harald Oehlmann <wortka...(a)yahoo.de> wrote:
>
> > do you use the hardware flow control wires of the serial port ?
> > If not, you could switch the plexer using those signals (RTS, DTR) and
> > it is possible to control them directly with native tcl. You will have
> > to adopt the voltage level, but this might not be an issue.
> > Seehttp://www.tcl.tk/man/tcl8.5/TclCmd/open.htmhowto set them.
>
> Hum Hummmm
> Good remarks, in fact I could use full the RS232 pins to control my
> plexer.
> Nevertheless I cannot use RTS,DTR, because my schematic is based onhttp://chaokhun.kmitl.ac.th/~kswichit/Rs232_web/Rs232.html
> But
> Data Set Ready  DSR
> Clear To Send   CTS
> Carrier Detect  DCD
> Ring Indicator  RI
> are free, so I can simply use 2 of these pins to control my plexer
> Just to see how to control this pins directly by tcl.
>
> Many many many thanks to all.
> Many thanks to change my direction
>
> For information, my open source project is located here :http://papsi.origo.ethz.ch/wiki/screenshots(Written in tcl) :-)))http://papsi.origo.ethz.ch/wiki/cahier_des_charges_0
>
> But it's in French
>
> Christian

I just took a look on tcl man page, nevertheless
CTS(input)
DSR(input)
DCD(input)
RI(input)
are input pins :-((((((

2 Solutions:
Event I will change my RS232 schematic, an use
RTS(output)
DTR(output)
to control the plex,
Or I will use the // port.

I would prefer the first solution


From: David Gravereaux on
CKL wrote:

> 2 Solutions:
> Event I will change my RS232 schematic, an use
> RTS(output)
> DTR(output)
> to control the plex,
> Or I will use the // port.
>
> I would prefer the first solution


CKL wrote (originally):

> 0x37a (port Cont)
> // Port Nb
> 1 : => output (Cont 0 )
> 14 : => output (Cont 1 )
> 16 : => output (Cont 2 )
> 17 : => output (Cont 3 )

Christian,

Ok, I see what you want to do. Those are the DB-25 pin numbers for the
control port signals on port 0x378+2 named:

-Strobe
-AutoFd
-Init
-Select

It doesn't look like that inpout32.dll will do it, as it seems to only
work on the data ports. That, and there would probably be timing issues
from the different interfaces.

I vote for RTS and DTR as that'll get you 4 distinct values and the Tcl
interface for it is the same on win and linux.
--


From: Jan Kandziora on
CKL schrieb:
>
>> For information, my open source project is located here
>> :http://papsi.origo.ethz.ch/wiki/screenshots(Written in tcl)
>> :-)))http://papsi.origo.ethz.ch/wiki/cahier_des_charges_0
>>
>> But it's in French
>>
No problem, as the language of science is math and the language of
engineering are schematics.

I don't think you will be encountering big problems with Tcl's speed. Your
device is using stepper motors, if I understand correctly. The upper speed
of such a device is limited to a low level by the intertia of the mass to
move. A Tcl program should always be fast enough to catch up.

Kind regards

Jan