hello all,
i want to write some data on the screen using tpwrite
i want to add “tabs” between the data so the data is displayed like colums on the screen.
but i don’t find how i can add a tab to a string
any help?
hello all,
i want to write some data on the screen using tpwrite
i want to add “tabs” between the data so the data is displayed like colums on the screen.
but i don’t find how i can add a tab to a string
any help?
Try this:
TPWrite “Data19”+“Data29”+“Data39”;
You can append control characters to string literals with “XX”, where XX is the hex value of the control character.
hello,
I tried this code, but it is not working on real robot
it is writing a “square box” instead of a tab
even if i try other codes like 10 or 8 it is always write the square box character
anybody else have the same experience
i am using 5.11.02.00.2003
update
i just tried it in robotstudio on a virtual flexpendant, there it seems to work
but not on a real controller !!!
Yes it looks like the RAPID UI instructions cannot cope with unprintable characters, this syntax must be intended for use with the instructions lumped into the category File and Serial Channel Handling. Looks like you can only do padding with spaces, it probably wouldn’t be so hard to write a function that would do that.
Hi,
padding the strings with spaces I already tried earlier, this don’t work with the listview,
the character width is not the same for all characters, it is using true font i guess.
for example : ob128 is longer then la411, because the “l” character is with small width.
with tpwrite the characters are aligned vertically, in the listview not, hope they will add the TAB functionality in the future :stuck_out_tongue_winking_eye: