Thank you.Consider taking a look at using pySerial in a python program -- it may do what you want -- I control a variety of instruments using python (serial, USB, and GPIB instruments). If you haven't used python, consider giving it a try, as it's a powerful and free tool. An experienced C programmer can be producing useful python programs in an hour or so. And your knowledge and code will be portable amongst different OSes (excluding, obviously, platform-specific code).
KBasic is a full flavor BASIC. It can handle all you want. It is QBasic / VisualBASIC / and Java all rolled into one.
http://www.kbasic.com/
You will be quite happy. It is FULLY syntax compatible with VB6, VBA and QBasic.
Check it out.
And if you ever decide to take Ubuntu or any linux for a try, check my blog for setting it up in linux.
Thanks RM. I'm lookin' at kBasic documentation now.KBasic is a full flavor BASIC. It can handle all you want. It is QBasic / VisualBASIC / and Java all rolled into one.
http://www.kbasic.com/
You will be quite happy. It is FULLY syntax compatible with VB6, VBA and QBasic.
Check it out.
And if you ever decide to take Ubuntu or any linux for a try, check my blog for setting it up in linux.
I prefer the MAME simulator. Then I can play all my favorite arcade games from the good old days. Like Pacman, Donkey Kong, Duck Hunt, and othersOk bmorse, now you have to send me KONG.
...trying to follow your footsteps is tiring.
I prefer the MAME simulator. Then I can play all my favorite arcade games from the good old days. Like Pacman, Donkey Kong, Duck Hunt, and others
My first computer was a VIC20, I have been around for while and seen things come and gobut this Kong game was an old IBM game that people use to play before windows was even around
B. Morse
My first computer was a VIC20, I have been around for while and seen things come and go
Mike: keep plugging away and it will eventually make sense. I came across python 12 or 13 years ago and taught myself from the tutorial document that comes with python.I downloaded and installed Python. There's sooo much material there. After a couple hours reading and going through simple tutorials I still haven't quite figured out how you get past "interactive" mode and would write a program (LOL). I will keep plugging away at it.
def ScanInterfaces(bus_name):
''''Find what instruments are connected. The dictionary returned
contains the devices found keyed by the string that identifies the
instrument on the bus.
bus_name must be "gpib" or "usb".
'''#
d = {}
for instrument in visa.get_instruments_list():
if instrument.lower().find(bus_name.lower()) == 0:
inst = visa.Instrument(instrument, term_chars = "")
response = inst.ask("*IDN?")
d[instrument] = response
return d
def ScanSerial():
print "\nSerial instruments:"
ports = []
for i in range(256):
try:
s = serial.Serial(i)
ports.append(i)
s.close()
except serial.SerialException:
pass
if ports:
print " Active ports: ", [i+1 for i in ports]
for port in ports:
for br in (38400, 19200, 9600, 4800, 2400, 1200):
try:
se = serial.Serial(port, baudrate=br, timeout=0.5)
se.write("*IDN?\n")
s = se.readline().strip()
se.close()
del se
if s:
print " COM%d" % (port + 1), br, s
break
except serial.SerialException:
if se:
se.close()
del se
ScanSerial()
The problem is not programming language, Windows 2K/XP/Vista/7 prohibits direct access to any ports. Running QBASIC or any other free programming language (such as GCC, LCC or MinGW) does not change the fact that direct IO access is not allowed. Thus making it difficult to control the port hardware, therefore the RTS or CTS lines individually.
These direct access IO drivers allow that. You can use them with any programming language that you have or want, as long as it supports access to DLL. VS 2008 Express, VB, VC, VC# are free from MS, there are also GCC, LCC, MinGW. Take your choice.
by Jake Hertz
by Jake Hertz
by Aaron Carman