LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hi Labviewer's,
 
I'm reading a barcode that end whit  ascii code bell [0x07], i want to check  and compere
the end of the barcode if it's end whit ^G or something else, i'm reading the data into control string
but i cant see the ^G. 
o.k i know that it's ascii code but i need to compre and check the tail of the barcode how can i do this???
 
regard's
eyal. 
0 Kudos
Message 1 of 18
(3,991 Views)
If you send your barcode data to a string control and then set the string control to display HEX data, you should be able to see the codes....

Right click on the front panel string indicator control to get the option to display the HEX codes.

Don't forget to check that the barcode type you are using supports the code you think that you have.

0 Kudos
Message 2 of 18
(3,985 Views)
the problem still exist!!!
i try this but it's not solve the problem.
regard's
eyal.
0 Kudos
Message 3 of 18
(3,978 Views)

Hi

You could use the "Strin to Bytearray" function. This allows you to compare each character, although it may not be displayed in the string control.

Hope this helps.

Thomas

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

still can't see the ctl+g;????

regard's

eyal.

0 Kudos
Message 5 of 18
(3,973 Views)

Then I'd say it is not there.

How do you get the data? Did you check with another tool if it works?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 18
(3,971 Views)
See the attach file.
0 Kudos
Message 7 of 18
(3,967 Views)

As you may have seen in my posts, I use LV7.0.

So could you repost your vi as LV7.0 (File>>Save with options>>Save for previous)?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 18
(3,964 Views)
see the attached file, also if i read the barcode into dos, i can see at the end the ^G.
0 Kudos
Message 9 of 18
(3,961 Views)

I strongly assume you don't read the barcode with the posted vi.

I further assume you have a barcode scanner, which is connected to a computer over rs232 ore something else. If there really is ^G at the end of the data you should receive, there won't be either 0x47 or 0x67, but 0x7 instead.

So tell us more about the whole system.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 10 of 18
(3,958 Views)