09-20-2005 12:00 PM
09-20-2005 12:39 PM
@Sirin wrote:
... I don't think I have access to the Report Gen VIs since I only have the Base Development system for LV6.1.
You should still have (or at least I'd really hope you'd have) the ability to use an Invoke node to access the "Print VI To HTML" method.
Apologies if I'm wrong.
09-20-2005 12:55 PM
I will have to try that. What would be the best way to print the png once I've gotten it printed to html though? (I'm beginning to doubt that it is LabVIEW or my program that is causing the system to halt, I think it is the fact that I'm printing to another computer's printer over the network; it is Windows itself that is slowing things down.)
I will know better tommorrow when I bring in a separate printer to directly hook up to my test PC.
09-20-2005 04:15 PM
I got a chance to hook up another printer (a Dell 1700 via parallel cable). I made sure that spooling was setup in the printer preferences, and tried to run my program. I got worse results than with the printer over the network.
The test computer in question is a P3 550Mhz with 64 MB of RAM, running Win2k, connected to a Dell 1700 via parallel cable.
The computer that worked is a P3 850Mhz with 512 MB of RAM running Win XP, connected to a HP1022n via TCP/IP.
Seeing that huge difference in RAM, I ran with a P3 850 with 128 MB of RAM with Win2k, connected to the same Dell 1700 via parallel cable and achieved acceptable results.
I'm guessing that the RAM is what was making things grind to a halt; but the extra 300Mhz of processor might also play a factor.
09-20-2005 04:21 PM
Yes, I would agree that a Win2K machine with 64MB RAM would be resource starved. We had a similar system that was upgraded from 95 to 2K, could not do too much 'usable' work on it at all. Click here, wait, click there, wait...
Memory is cheap (if you can find compatible sticks), you may want to bump it up at least to 128MB, probably 256MB
04-12-2006 02:47 PM
Sorry to dig up this old topic again; but, I've found that even adding memory to the PC has not helped the main symptom.
On my VI's main screen, there are various buttons that start routines that make equipment move. What is happening is that users are pushing these buttons at the same time as a report is being printed, thus are seeing an unacceptable "lag" between when they push the button, and when LabVIEW actually processes the data (since the boolean controls are all set to latch). Is there some way to tell LabVIEW not to make printing more important than processing the entire rest of the program?
I'm still using LV6.1, base development version.
04-12-2006 03:35 PM - edited 04-12-2006 03:35 PM
No. LabVIEW printing is an unprotected subsystem and therefore in order to avoid race conditions has to run in the user interface execution system too. You can make VIs that run in different execution systems and they will happily run while LabVIEW is printing but all user interfaces (and user clicks etc) have to be handled in the user interface execution system too. I can't really remember the details about printing in LabVIEW 6.1 but I think there have been a few smaller or not so small improvmenents in newer systems. It might be also Windows XP which helped a bit here but I wouldn't really be sure.
@Sirin wrote:
Sorry to dig up this old topic again; but, I've found that even adding memory to the PC has not helped the main symptom.
On my VI's main screen, there are various buttons that start routines that make equipment move. What is happening is that users are pushing these buttons at the same time as a report is being printed, thus are seeing an unacceptable "lag" between when they push the button, and when LabVIEW actually processes the data (since the boolean controls are all set to latch). Is there some way to tell LabVIEW not to make printing more important than processing the entire rest of the program?
I'm still using LV6.1, base development version.
Message Edited by rolfk on 04-12-2006 10:36 PM
04-12-2006 03:47 PM
Yeah, I did get it down from 1.5 minutes, but the delay of a few seconds (between 3 and 10) is still too much for our demanding users. Would it even help things if I had a separate exe that was called from the main program, or would it still cause the same problems?
Thanks for your good explanation though; it is nice to learn at least one new thing a day. 🙂
04-12-2006 03:55 PM
Printing in a different executable should definitely help, except when the printing operation itself is taking up so much CPU resources that other applications won't get to run much at all. But it will at least avoid the possible lockup of the user interface interaction in your UI. If a separate process (excutable) for printing does not help much, that would be the indication that your hardware is simply to low end to handle the printing task gracefully without locking the rest of the system considerably and then buying a newer machine will be really the only remedy. Considering nowadays computer prices, going for the new machine directly might be the cheapest solution actually.
@Sirin wrote:
Yeah, I did get it down from 1.5 minutes, but the delay of a few seconds (between 3 and 10) is still too much for our demanding users. Would it even help things if I had a separate exe that was called from the main program, or would it still cause the same problems?
Thanks for your good explanation though; it is nice to learn at least one new thing a day. 🙂
04-12-2006 06:15 PM