02-28-2008 10:12 AM
I have a machine in Japan that they use a hand scanner to enter some data into a string control. The data is typically something like “487\n”. Normally when they scan some data the string control will display “487” but when the application is built into an exe file the string control displays “487J”. I have tried the following to resolve this issue:
Has anyone any ideas what’s going on?
Using LV 8.01 on XP pro
TIA
-Martin
02-28-2008 10:34 AM
02-28-2008 10:54 AM
02-29-2008 01:57 AM - edited 02-29-2008 02:00 AM
02-29-2008 05:42 AM
Hi,
It’s not easy for me verify the above setting as the machine is production and in Japan. But the setting you mention will be at the default settings.
I have the built application here and I can’t re-create the problem buy pasting or typing in data that ends with a \n. So I guess it may be something to do with the way the scanner inputs the data. Maybe it streams the characters too fast or something. But it always displays a “J” at the end for a given barcode in the LabVIEW string control. I can’t remember the exact barcode they were scanning just that it ended with a /n. I think it may have been TEST1, or TEST-1.
02-29-2008 08:39 AM
Hey Martin,
Probably not particularly helpful, but just in case, note that newline and J are only off by one bit -
newline = 0xA or 00001010
J = 0x4A or 01001010
The fact that it works in notepad indicates to me that it is not an issue with the scanner hardware. Scanners typically do nothing but send characters exactly as a keyboard would do. Apparently the LabVIEW runtime or one of its dependencies is mangling the data.
Anyway, just some observances. Hope it helps, (somehow) 😕
Rob