LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait on activex component

maximint,
      Thanks for attaching your code.  I see what you are saying about the wait statement not helping out at all.  Did TekLynx create the SubVIs?  It might be worthwhile asking them about what is happening in their application since it seems like that is where the time delay is occuring.  I recommend benchmarking the time it take to call the PrintDocument method.  I have attached a screenshot showing how to do this.  I also recommend seeing what happens when you change the TEKLYNX Document Print.vi when you change it back to normal priority.

Cheers,

NathanT
Message 11 of 15
(1,074 Views)
Hi Nathan,


no, the VIs are not from Teklynx as they don't give any answer to any question concerning this.    😞
They are from NI forum. I've greater hope to solve the problem with NI who gives everytime a great support. Thanks for this.
The benchmark test results are:

1. print msec: 89
2. print msec: 3323
3. print msec: 3362
4. print msec: 3414
5. print msec: 3273

to be continued

I played also a little bit with the priorities of the main VI and the print.vi. No difference.


Thanks for your interest, Thomas.
0 Kudos
Message 12 of 15
(1,066 Views)
maximint,
       Thank you for doing the bench mark tests and posting the results.  A possible workaround would be calling "TEKLYNX Document Print.vi" dynamically, using the "Call By Reference Node," which would load it into memory each time it was called and remove it from memory when it was done executing.  It will hopefully give you the 89 ms performance since each time will be the "first" time that it is called.  This is difficult to reproduce since I don't have the printer and drivers that you do.  Let us know if calling the VI dynamically is a valid workaround.

Thanks,

NathanT
Message 13 of 15
(1,059 Views)
Hi NathanT,

thanks a lot for this tip. This definitely solves the problem. All labels are printed immediately.
That's the first time I used call by reference. I think it will not be the last time.

Thanks again, Thomas.
0 Kudos
Message 14 of 15
(1,050 Views)
Thomas,
       That is great news!  There are all sorts of cool things that can be done with VI Server.  Good luck with the rest of your application.

Cheers,

NathanT
0 Kudos
Message 15 of 15
(1,041 Views)