- Usb serial emulator how to#
- Usb serial emulator code#
- Usb serial emulator download#
- Usb serial emulator windows#
I tried to make CMD.EXE save the error info as you sugested, but I don't know how to do it in my This crashes on the INPUT statement because the AS#1 was not done in the INPUT The colon, to PCBASIC, but PCBASIC doesn't recognize this as an OPEN statement, and ignores My guess is CMD.EXE passes com1, using com1=COM20 and several other forms without This crashes PCBASIC and returns to CMD.EXE. Now PCBASIC goes on to my input atatement: INPUT #1, PIN$ However, this doesn't pass the musterd when reading the manuels.Įveryone specifies this form: OPEN "com1: 9600,N,8,1,RS,CS0,DS0,CD0" AS#1 ^ With a colon. I'm not sure but there may be a reason the USB COM ports can't work is there may be a problem Just edit the match file and away it goes.ġ0 CLS:COLOR 14:LOCATE 6,1:PRINT"RUN " CHR$(34) "X.BAS" CHR$(34)Ģ0 OPEN "com1: 9600,N,8,1,RS,CS0,DS0,CD0" AS#1ģ0 PRINT #1,"S" :rem Command to read parameters from the FE5680A I find it's much easier to play around with the command line Using the "INI" or the "PCBASIC Command Line". I have found that it makes no difference whether I start I haven't had any luck with all the variations.
Usb serial emulator code#
(Yes, I know I need to disable TeraTerm when using PCBASICīTW this is a Vista machine and the lines of code in X.BAS with errors are:ġ110 OPEN "COM1: 9600,N,8,1,RS,CS0,DS0,CD0" AS#1:REM <- ERROR I know the com ports work a I can use them from TeraTerm. Methods but cmd.exe did not like the format it was sent.Īll to no avail with the same exact results. My guess is that the redirection is sent to cmd.exe in both PCBASIC.COM X.BAS -com1=com20 -com1=com22 I tried the second method using Basic command line. X.BAS reports errors when accessing the coms.īoth when initializing and printing to the com1 port.Ģ. WARNING: Could not attache com22 to COM device WARNING: Could not attache com20 to COM device I made a batch file, X1.BAT, to automate starting pcbasic, it contains: I did find the PCBASIC.INI file and edited it to contain: I made a simple basic program called X.BAS that only tries to sendġ. I tried both the INI and cmd.exe methods. I've tried all your suggestions for redirecting the com ports
Usb serial emulator windows#
There should be a text file in that folder which depending on your Windows settings shows up as PCBASIC or PCBASIC.INI or some version of that you can edit this in Notepad to add lines The actual location is a bit different between Windows versions and WIndows seems to hide this location by default (which I think is completely crazy as this is the official place to put settings files, but there you go).Īnother way of getting there is to type %APPDATA% in the Windows Explorer and then select the folder Roaming, then PC-BASIC. Alternative: using the INI fileĪlternatively, you should find an INI file in your roaming profile directory, which is a path like "C:\Documents and Settings\Duane\AppData\Roaming\PC-BASIC" where I'm assuming your user name is Duane. This would enable both USB adapters as COM1: and COM2: in BASIC. on 64-bit machines it's probably "C:\Program Files (x86)\PC-BASIC\PCBASIC.COM". Where the path to the executable may be different on your machine, e.g.
It appears these two terms are often used, but I don't know the Files\PC-BASIC\PCBASIC.COM" -com1=COM20 -com2=COM6 It appears these two terms are often used, but I don't know the Guys: But it also seems a "Command Line" is also what is after the name of a program, i.e. It seems that within basic a "Command Line" is what you use to enter programs, i.e. Oh yes, What's the definition of "Command Line"?ġ. Can you give me an example INI file to make it work with my USB ports? I have both COM6 and COM20 available to play with. I don't know how to put options in the INI file.ģ. I found some info in the "Options" part of the documentation.
Usb serial emulator download#
The download package didn't have a PCBASIC.INI example.Ģ. I haven't figured out how to get this to work yet.ġ. Since PC-BASIC only has basic's COM1 or COM2. I'm trying to get that program to run in my modern laptop.ĥ. USB ports are now the only thing available. This worked in an old XP machine that had "Real" com ports, not USB ports.
I wrote a GW-Basic program that does this. While a terminal is useful, I need an active program to run it. The serial interface is on COM:20 at 9600bps. I control it now using TeraTerm terminal emulator, this works well.ģ. I need to use the serial ports to drive an FE5680A Rubidium Frequency reference.Ģ.