
Com3 in Quickbasic under Windows NT
Quote:
>The 'swapping' thing is beyond me, but I would guess you would have to use
>the interrupts to communicate with the modem. For instance, if I used int
>10h (VIDEO) function 00h (i think) to change video modes to one that isn't
>standard in QBasic, say mode 17h, QBasic has no commands to write text or
>graphics to that screen. (pset() won't work) You have to use the int 10h
>functions to do that, or work directly with the video RAM (0a000h is the
>segment for a lot of modes). So look into those interrupts is all I can
say.
>--
>Yours,
>** leadGUITARIST for machineDEGENERATE **
I'm not trying to communicate with a modem. I'm measuring a temperature
from a precision thermometer, then feeding a PID control algorithm signal to
a temperature control bath, then measuring a resistance when a certain
temperature condition is reached, then writing the data to a file. So I'm
interfacing with three laboratory devices that have RS232 ports in order to
automate a precision, long-term test.
There's not much you can do with interrupts in QB45 to solve my com3
problem. I gave up on QB45 for this. I broke down and bought Power Basic
3.5 for DOS (thanks for the tip Tom Lake). This is working, but barely
working. I had to set the interrupt for com3 to IRQ15. I'm able to write
to com3, but I still cannot read from com3. Lucky for me I only need
one-way communication with one of the devices (the bath).
I could not get com3 to work with the standard IRQ4, even though I'd close
com1 prior to opening com3 (which also uses IRQ4). The Powerbasic support
guy gave me something to try, which didn't work (he also said he couldn't
emulate my problem since he didn't have 3 com ports, which I felt was pretty
lame for a computer software support guy). But since IRQ15 is doing the
job, the heck with it for now (maybe I'll figure it out later).
I'm very happy that Powerbasic has allowed me to perform the task at hand,
although working with it has led me to really appreciate the QB45 user
interface. The PB user interface is pretty raw and the on-line help menu is
slim (although the manuals are comprehensive). Also, I've found PB to be
more fickle to work with than QB45 with respect to having to clear buffers
and such. You really need to make sure all your i's are dotted and t's are
crossed.
I have a feeling though that I will continue using PB instead of QB45 for
future programs, even where QB45 would work fine. PB seems to offer a lot
more possibilites that I want to check out.