在Windows 7的QBasic中打开COM端口 [英] Opening a COM port in QBasic on Windows 7

查看:120
本文介绍了在Windows 7的QBasic中打开COM端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难像这样从QBasic(从www.qbasic.net获得)打开COM端口

I'm having difficulty opening a COM port in QBasic (obtained from www.qbasic.net) like so

OPEN "COM4:9600,N,8,1,BIN" FOR OUTPUT AS #1

但是,当我在QBasic中执行此语句时,open关键字被突出显示,并且收到错误消息Bad file name.

However when I execute this statement in QBasic the open keyword is highlighted and I get the error message Bad file name.

推荐答案

以下作品 FreeBasic

Open Com "COM1:9600,N,8,1" As 1

我推荐FreeBasic IDE FBIde .

I recommend the FreeBasic IDE FBIde.

这篇关于在Windows 7的QBasic中打开COM端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆