Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Barcode Program
#1
I'm still trying to get a barcode program and have come a little way

Code:
OPEN "COM1: 2400,N,8,1,BIN" FOR INPUT AS 1

When you run the program it goes to the black screen. If you don't touch anything it will say "DEVICE TIME-OUT", but if you press the button on the barcode scanner it will say "PRESS ANY KEY TO CONTINUE". QBasic is recieciving input from the barcode scanner, but how do you make the code appear on the screen?
If you can't dazzle them with brilliance, baffle them with bull shit"
Reply
#2
Well, I don't know anything about barcode scanners, but...
Code:
ON COM (1) GOTO labelName
I think that will jump to labelName when things are coming from the COM port 1.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#3
My guess is that there are two parts to it: one that is a string and one that is a number, and you are only accessing the number. Try to change the settings...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#4
My guess is that he's not accesing anything, because he's not GETting what he needs to get. Got it? Tongue
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply
#5
Are you using the "a$ = inkey$" as opposed to what ever you're currently using, ( Line Input, Input...etc.)? If not, you may want to use that instead. That's what I use for my own programs involving a (barcode) scanner. I'll try a program using my old scanner,(which I can hook up to a serial port), and see what I come up with.
Is there a certain reason you need to access the scanner via a modem or can you just use a serial port ?
(This was added 1-14-2004)
I should have said that the "type" of connecter(sp?) is serial.
This isn't the same as a "serial" port. My apologies. These are the same stlye, and size, as a modem input port.
What this connecter does, is allow the scanner to be plugged into a "serial" mouse port. I don't know for certain, but I would guess that a PS2 style adapter would also be available.
adsherm
Reply
#6
I am using a scanner that is in (COM1). I have another program that I got from someone, but it isn't working. When I have some time I will psot it in here.
If you can't dazzle them with brilliance, baffle them with bull shit"
Reply
#7
Would you mind posting the specs of the barcode reader from its manual or some technical info about it? I dont think you will be able to make an interface just out of the blue.
Reply
#8
O.K it is a Symbol LT1720. I don't know if that helps any
If you can't dazzle them with brilliance, baffle them with bull shit"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)