ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check for network printer

I am writing a VI that prints it's front panel, but before I print it I
want to check if there is a printer connected to the network. Any
assistance would be greatly appreciated.

Thanks, Robert


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 3
(3,024 Views)
rlhenn wrote:

> I am writing a VI that prints it's front panel, but before I print it I
> want to check if there is a printer connected to the network. Any
> assistance would be greatly appreciated.
>
> Thanks, Robert
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Well I would say use the System Exec VI and send it the command "ping
"
but under Winx, the Sys Exec does not wait till the command completes. You
may have
to wrap this up in a bat file or some such.

There are most likely DLLs from MS that will accomplish this , but I do not
know what they may be

Kevin Kent
0 Kudos
Message 2 of 3
(3,024 Views)
In article <3982486B.E3CE98AD@usa.alcatel.com>,
"Kevin B. Kent" wrote:
> This is a multi-part message in MIME format.
> --------------4FADF13387F01F6868468511
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> rlhenn wrote:
>
> > I am writing a VI that prints it's front panel, but before I print
it I
> > want to check if there is a printer connected to the network. Any
> > assistance would be greatly appreciated.
> >
> > Thanks, Robert
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
> Well I would say use the System Exec VI and send it the command "ping
> "
> but under Winx, the Sys Exec does not wait till the command
completes. You
> may have
> to wrap this up in a ba
t file or some such.
>
> There are most likely DLLs from MS that will accomplish this , but I
do not
> know what they may be
>
> Kevin Kent
>
> --------------4FADF13387F01F6868468511
> Content-Type: text/x-vcard; charset=us-ascii;
> name="Kevin.Kent.vcf"
> Content-Transfer-Encoding: 7bit
> Content-Description: Card for Kevin B. Kent
> Content-Disposition: attachment;
> filename="Kevin.Kent.vcf"
>
> begin:vcard
> n:Kent;Kevin
> tel;work:972-477-4468
> x-mozilla-html:TRUE
> url:http://www.usa.alcatel.com
> org:Alcatel USA;WDCS Hardware Development
> adr:;;;;;;
> version:2.1
> email;internet:Kevin.Kent@usa.alcatel.com
> title:Engineering Technician
> x-mozilla-cpt:;-26944
> fn:Kevin Kent
> end:vcard
>
> --------------4FADF13387F01F6868468511--
>
>
Thank you for the Info. I'll give it a try.

Robert Henninger


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 3
(3,024 Views)