08-18-2008 05:30 AM
Hi all!
I've run into something weird with the application property "Printing -> Available Printers". Using LV 8.5.1 on Linux, i get error 53 ("Manager call not supported.") if i have an indicator or any other node connected to the Printers output of the property node. However, if I do not have an indicator connected LV does not report an error.
Now to some questions:
1. Why can I not see my printers?
2. Why do I get an error only if a node is connected to the property node output?
3. Is this a Linux problem or does it behave similarly on other platforms?
Thanks
//Martin
08-18-2008 05:56 AM
08-18-2008 07:43 AM
08-18-2008 08:15 AM
So is this the error u r getting?
08-18-2008 08:23 AM
08-18-2008 08:28 AM
Hi,
I'm afraid that property node is only available in Windows as it is something that will have to talk to the operating system and so will be dependent. I do wonder whether you can do someting similar using library calls or something of that nature in Linux. Perhaps go to the CUPS website and see if they can offer any help and I will have a quick look and see if anything jumps out at me.
Regards,
08-18-2008 08:53 AM
James:
Thanks for your reply. Is there a way for me to know which properties aren't available in Linux? I'm a noob with linux so I appreciate every single bit of help I could get in these matters. I will check the CUPS site and see if I understand what they are talking about.
Muks:
Yes, that is the error I get although with a different origin (it seems the error is rather generic):
Error 53 occurred at Property Node (arg 1) in PrinterError.vi
Possible reason(s):
LabVIEW: Manager call not supported.
Property Name: Printing:Available Printers
Property Name: Printing:Available Printers
08-18-2008 09:01 AM
Hi Again,
LabVIEW help should give you details of whether a property needs certain situations to work so if you go onto context help on your property node and click detailed help it will show you there.
Found the following site that details the CUPS API functions that you can call from their libraries so it appears possible. I am just trying to find an example on how to use the structure inputs using clusters as many of the functions use structures for printer details.
Regards,
08-18-2008 09:14 AM
M_Peeker wrote:
2. Why do I get an error only if a node is connected to the property node output?
Well that is a compiler optimization, code that has no output will not be executed. So if you have no node connected, LabVIEW will assume you don't need the information, and LabVIEW will not execute the node.
Ton