LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Print for CAB4.3+/300

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

0 Kudos
Message 1 of 7
(971 Views)

@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:1234

REVISION: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

0 Kudos
Message 2 of 7
(950 Views)

@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:1234

REVISION: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?

 

0 Kudos
Message 3 of 7
(939 Views)

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.

 

altenbach_0-1683992347129.png

 

It is possible that the field delimiter is something else (e.g. tab), but we cannot tell from your post.

0 Kudos
Message 4 of 7
(936 Views)

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

0 Kudos
Message 5 of 7
(777 Views)

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.

0 Kudos
Message 6 of 7
(756 Views)
Thank you for helping. 🙂
I am attaching the files.
Download All
0 Kudos
Message 7 of 7
(671 Views)