I have connected a bar code scanner via USB to my PC. My PC detect the scanner as a keyboard.
In Wordpad it writes down the correct bar code in numbers.
But if i use the Keyboard Node in vvvv the keyboard output is really stange and has nothing to do with the code. The output is often diffent to the scan right bevor.
Edit: I’m sorry, there was something wrong with the scanner, now it works.
Could it be that vvvv just updates itself in the middle of the code being entered as it does it char by char.
How about making a buffer that last a little while that everything is added to. And then combine it to form the complete string.
Should only need to last a few cycles to do it’s job.
are you sure that some chars are missing?
are you aware that the IOBox (String) has a (configuration pin which enables displaying ascii chars #0-#32 and #127 ?
What exactly do you mean with buffer?
For my testpatch see the attached file, please.
I disconnected the pins to avoid the control 1 input. :)
The correct code that sould be shown is 6345564584493
Sometimes it scans the whole code, but mostly there are some random missing chars.
@Kalle:
I have checkt the iobox concerning the ascii button, but it is disabled. Since I have changed the SliceCount Mode to “ColsRowsPages” vvvv get the code better, but not satisfying :(
I am doing almost the same. I am using the Barcode scanner as keypad.
But i got a diffrent question.
How to diplay the incoming string in a row?
How to make the chars stay in the box, render window?
I tryed diffrent setups but the result still upsets me :)
I want to scan and to compare the result afterwards.
So I need the string in one row of chars.
my suggestion is that vvvv just doesn’t display the received number due to patching reasons.
how does the signal flow from the barcode scanner work? does it send an empty string if nothing is scanned, and then a number for 1 frame?
what did you try on the logic side?
what i mean: did you already try something like in the attached patch, or just inserted in the queue every frame?
thanks for the patch.
whitch version are you using? I am working with 40beta19.1
i guess you aim was to display the numbers in the io box.
well on me computer it doesn´t seem to work.
how does the signal flow from the barcode scanner work?
Well it work exactly like a keyboard.
if you scan 13 numbers they appear in a row, within 0.2 sec.
And if nothing scanned there is no return.
so i try many things. to queue. as string, RegExpr, I try to use the clipToRec option in the textpatch, writing the string in a txt file and reading it out.
But this is to complicated. vvvv is smarter. I think there must be an other way.
Maybe when in a coming update the multiline option in the textpatch is fixed, it may probably work this way ???
I attached this patch. It shows what i am trying to do.
the numbers are coming and i need them to be displayed
then they are compared and with the result “matches scan”( 1) an soundfile is starting.
sorry, my answer above was adressed to Evilfraggle. Forgot to mention when wiriting it the second time (as it dissapeared after posting it the first time).
i think i don’t understand your problem in detail.
I’m scanning the code and windows get it correct. But vvvv get it via the keyboard node only sometimes correct. Mostly some strings are missing.
How to diplay the incoming string in a row?
fixed for betas >20
Use the new output of Keyboard (System Global) called “Buffered Keyboard Output” in combination with Tokenizer (String). The Barcodescanner should send some kind of separator, e.g. <RETURN> , after the actual string.