![]() |
|
![]() | ||
|
Subject:
computer programing
Category: Computers Asked by: ladyalice-ga List Price: $25.00 |
Posted:
17 Aug 2004 06:21 PDT
Expires: 16 Sep 2004 06:21 PDT Question ID: 388923 |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: computer programing
From: 1anton1-ga on 17 Aug 2004 10:17 PDT |
Could this be because you are sending: print chr$(254),chr$(1) instead of: print chr$(252);chr$(1) Or was that just a typo in your question ? |
Subject:
Re: computer programing
From: crythias-ga on 17 Aug 2004 12:21 PDT |
http://shorterlink.com/?J26PTE This should give a hint. If you OPEN AS #1, you can Print #1, character.. Re: the above comment: be aware that "," may send a tab character between CHR$'s. The ";" context is better for your project. |
Subject:
Re: computer programing
From: crythias-ga on 17 Aug 2004 12:30 PDT |
if you can't open the com port with your cbasic, you already have mbexec. Just make two files relayon.txt and relayoff.txt, each with the two characters you need. then mbexec("c:\winnt\system32\command.com","/c cat relayon.txt > com1") or mbexec ("c:\winnt\system32\command.com","/c cat relayoff.txt > com1") Also, according to your question... it seems you need to swap 0 and 1. Likewise, PRINT and INPUT will go both to screen unless they're going both to com1. You can't have it both ways :). I'm guessing that "Try again ?" is a user input on the screen, not control information that will be displayed on the relay. |
Subject:
Re: computer programing
From: tidlick1-ga on 29 Aug 2004 17:51 PDT |
What operating system are you using ?? This governs wether data can be input/output from the data ports |
Subject:
Re: computer programing
From: crythias-ga on 31 Aug 2004 06:13 PDT |
instead of "cat" you might use "type" for Windows/DOS. Oops. Sorry :). |
Subject:
Re: computer programing
From: crythias-ga on 02 Sep 2004 12:22 PDT |
DOS prompt. edit relayon.txt alt (numberpad 254, numberpad001) no semicolons :) Save, exit. see if that works. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |