05-13-2023 06:11 AM
Hello
I'm stuck on a project, my problem would be when I send this command:B 67.5,3,0,QRCODE,0.7;MODEL:{MODEL}_SERIAL:{Serial_Number}_REVISION:{REVISION}_MFG DATE:{Date}
the printer (CAB4.3+/300) prints the QRCODE, but when reading it back, the characters are one after the other like this: MODEL:1233 SERIAL:1234 REVISION:1234 MFG DATE:2023.05.13.
How could it be solved so that the characters are placed under each other like this?:
MODEL:1234
SERIAL:1234
REVISION:1234
MFG DATE:13.05.2023)
does anyone have any ideas?
Thank you,
Roland
05-13-2023 09:54 AM
@djcsabii wrote:
Hello
I'm stuck on a project, my problem would be when I send this command:B 67.5,3,0,QRCODE,0.7;MODEL:{MODEL}_SERIAL:{Serial_Number}_REVISION:{REVISION}_MFG DATE:{Date}
the printer (CAB4.3+/300) prints the QRCODE, but when reading it back, the characters are one after the other like this: MODEL:1233 SERIAL:1234 REVISION:1234 MFG DATE:2023.05.13.
How could it be solved so that the characters are placed under each other like this?:
MODEL:1234
SERIAL:1234REVISION:1234
MFG DATE:13.05.2023)
does anyone have any ideas?
Thank you,
Roland
You failed to attach both the User Manual for your printer (which would allow us to understand what you told the printer to print, and which I presume it did "what you told it to do", but not "what you wanted it to do"), and (equally important) your LabVIEW code (where you show us what you "told the printer to do").
An obvious flaw in your output is the absence of <EOL> character(s), which are probably "printer-dependent", but likely <CR><LF>, <CR>, or <LF>. There also seems to be a re-arrangement of Dates from YYYY.MM.DD to DD.MM.YYYY .
Either figure it out for yourself, or send us your code and the manuals for your printer so that we can help you. Or find a colleague or local LabVIEW Guru to lend a hand ...
Bob Schor
05-13-2023 10:31 AM
@djcsabii wrote:
the printer (CAB4.3+/300) prints the QRCODE, but when reading it back, the characters are one after the other like this: MODEL:1233 SERIAL:1234 REVISION:1234 MFG DATE:2023.05.13.
How could it be solved so that the characters are placed under each other like this?:
MODEL:1234
SERIAL:1234REVISION:1234
MFG DATE:13.05.2023)
So if I understand you right, you can communicate with the printer and get a valid response string back and all you want is reformat it by replacing all space characters with linefeeds.. Where does the ")" come from at the end?
05-13-2023 10:40 AM
The problem is that if you "replace all" spaces with linefeeds, it will also break the "MFG DATE", so maybe it would be easier to just replace the first three.
It is possible that the field delimiter is something else (e.g. tab), but we cannot tell from your post.
07-22-2023 02:14 AM - edited 07-22-2023 02:16 AM
Hi,
The project was on hiatus for a while, but now it has reappeared. So the problem would be that when you print the label and read back the printed QRcode, the lines are one after the other and not under one another. I am attaching the document for the printer and the contents of the String.
https://drive.google.com/file/d/18IugUQaLvAncl1tnc9VeLwB5iQbSysVN/view?usp=drive_link
07-22-2023 06:10 AM
Please attach all documents to the post. Your drive link requires us to request access and I won't do that.
(You can place all in one zip file before attaching)
The string in your VI does not resemble what was discussed earlier.
07-25-2023 03:38 PM