LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BARCODE TAIL END WITH CTL+G [^G]=ASCII 7 [BELL]

NO!!!!
I'm not read the barcode whit this vi.
the barcode is connected whit the keybord.
when i'm read the barcode in dos mode i can see the ^G at the end.
why in labview a can't see that?
is there any why to slove this problem????
 
regard's,
eyal.
0 Kudos
Message 11 of 18
(1,333 Views)

Ok - so you're using a keyboard wedge.

I can't tell you exactly why, but obviously ^G does not work as Ctrl+G in a string control (if you try to type it in manually it doesn't work either).

Is it possible to configure this end-character?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 12 of 18
(1,325 Views)

NO!!!.

I must to solve this .i'm sure there is a way to handle this. if in VB and dos i can see the end of the tail

i'm sure that in labview there is a way to do that.

regards,

eyal.

0 Kudos
Message 13 of 18
(1,323 Views)
Maybe this problem exists, because Ctrl+G is a fixed shortcut in LV (find next element e.g. if you searched for all instances of a vi).
 
So you basically have no problems to "acquire" the barcode - it's just this character.
 
I'd suggest you to start a new thread, concentrating on this (for instance "0x07 not displayed in string control") or you could also contact your local NI office.
 
Sorry for not being able to give you a more positive answer.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 14 of 18
(1,321 Views)
Put a probe on the 'Plat Mods' wire and on the 'char' wire then run the VI

You are not getting a 'CTRL G' with the keyboard but CTRL then character 103
You have set the numeric data type constant to HEX which makes it a little more fun, so that 103 decimal = 67 hex
The key code thus seems to work.

Hope this helps figure out why and what the problem is.
0 Kudos
Message 15 of 18
(1,320 Views)

Thank's for your time man.

 

0 Kudos
Message 16 of 18
(1,316 Views)
Further,
If you want to enter a 07 character use the ALT key then type 007 from the numeric keypad

Don't forget to change your code to detect a hex 7

0 Kudos
Message 17 of 18
(1,312 Views)

I must correct my last post.

If you wire an U8 array, where one field contains 0x07 to the Byte Array to String function, it is displayed. But as this character is sent to LV from the keyboard input, it may conflict with the shortcut mentioned.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 18 of 18
(1,311 Views)