LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I detect "print completed"?

Hi all,
I want to do an operation like this:
 
1. read data from file_01.txt
2. put these data in a XYgraph
3. print the XYgraph image
4. load the next data file
5. back to point 2
 
I used the "Print Panel To Printer Method" in a for loop, but the second file is loaded before the first print is completed, and so on
 
Can I read the print status? (so I could wait until print is completed before loading the next file)
 
Any suggestion?
 
Thanks a lot in advance.
 
 
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 6
(2,728 Views)

Hi,

 

Im not sure, but I guess if you disable the spool function of your printer (in XP: advanced printer properties/ print directly to printer) Labview will wait until the print job is done.

 

 

Kind regards,

 

0 Kudos
Message 2 of 6
(2,720 Views)
The problem is that I can't modify that option because I'm connected to a shared printer, and I haven't the administrator rigths.
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 6
(2,702 Views)

Could you post some code or a picture of it?

I just made a simple example which seems to work properly.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 6
(2,700 Views)

You're rigth, but the problem is that the Front Panel is updated quickly, so in the graph I only can see the last data set (even if the documents in print queue are correct - i.e. all different -).

I'd like to see the first data set, so I can type the correct name for the pdf file i want to obtain, then see the second data set and type the proper pdf file, and so on ...

Probably I made some confusion before, but I need to print both on an a physical printer (which is a shared one) and a virtual printer (PDFCreator) to obtain a pdf file.

I made experiements using Standard Report, but the image quality in the pdf was really poor.

Message Edited by vix on 07-21-2005 12:14 PM

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 6
(2,695 Views)
But you have the possibility to control the sequence using the dataflow and you can use a sequence structure in addition to that. So as you want, can have each operation in a separate frame of the sequence structure. I did it this way too in the example.
 
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 6
(2,685 Views)