Discussion Forums are temporarily in read only mode. All forums are visible but posting is not possible. Please check back shortly.

Thread: Command for strip print out


Permlink Replies: 4 - Pages: 1 - Last Post: May 18, 2011 6:26 AM Last Post By: dbailey Threads: [ Previous | Next ]
sittisak

Posts: 3
Registered: 11/25/09
Command for strip print out
Posted: Mar 24, 2010 9:36 PM
Click to report abuse...   Click to reply to this thread Reply
Does anybody knew about command for print out in BT-Basic?
Thank you
Jack
Gaddy82

Posts: 14
Registered: 01/28/10
Re: Command for strip print out
Posted: Mar 29, 2010 4:39 AM   in response to: sittisak in response to: sittisak
Click to report abuse...   Click to reply to this thread Reply
Hi Jack

What do want to do?
Just a printer check?

Open BT-Basic and type

report is /dev/rpr1
report " This is a test"

then the printer should print this

Regards
sittisak

Posts: 3
Registered: 11/25/09
Re: Command for strip print out
Posted: Mar 31, 2010 1:10 AM   in response to: sittisak in response to: sittisak
Click to report abuse...   Click to reply to this thread Reply
Hi Torsten,
I'm new user 3070. I have many problem.
Firstly, my customer gave me a testplan and my function is install them into system.
I found the printer didn't print out when found failure. So, I have to edit something in testplan but I don't know how to do.

Secondly, I want to keep all record into log file.

Please kindly advice two problem.
Thank you advance,
JAck
AlexQTS

Posts: 6
Registered: 05/24/10
Re: Command for strip print out
Posted: May 24, 2010 5:18 PM   in response to: sittisak in response to: sittisak
Click to report abuse...   Click to reply to this thread Reply
Hi Jack,

For the print out, the regular testsmain has the followin code:

Eject_Ticket: image 13/

if panelfailed then
if Using_Buffered_Reporting then
for I = 1 to Number_Boards_On_Panel-1
board number is I
if boardfailed then report out
next I
board number is Number_Boards_On_Panel
report using Eject_Ticket
report out
else
report using Eject_Ticket
end if
end if
copy Report_Printer$ over "/dev/rpr1"

In this routine, the "Eject_Ticket: image 13/" command inserts a lot of extra empty lines on the paper so you don't cut the paper in the middle of your failure message, by calling it with the "report using Eject_Ticket". Then, the "report out" sends all the messages stored on the memory to the actual printer.

I'll find out on your logging need and post back.

Regards,
Alex
dbailey

Posts: 83
Registered: 08/20/08
Re: Command for strip print out
Posted: May 18, 2011 6:26 AM   in response to: sittisak in response to: sittisak
Click to report abuse...   Click to reply to this thread Reply
Are you sure the printer works?

Sounds like you need to invest some time and money in the programming class.

Point your RSS reader here for a feed of the latest messages in all forums