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: 

Select printer problem in application

Hello there,

 

I'm pretty new to NI & LabView, and may I missed some things ... if I do I'd like to say sorry!

Our idea is to create measurement-programs, and as soon as they are working as intended we "compile" them to Applications (*.exe).

 

Now we have a problem with a vi called select_printer.vi, which is a sub-vi of a bigger program.

If we run the compiled measurement-application, we do not have a single printer in the drop-down box (Printer_Dialog-empty_box_within Application.jpg).

When we compile select_printer.vi only, we see the list of all on that computer installed printers (Printer_Dialog-Select_Printer-as_Application).

 

We are running NI LabView 2010 SP1

Is there any switch to set when compiling/building an Application (*.exe)?
Or did I/we miss something?

 

Thanks a lot for your time!

 

cu

Torsten

0 Kudos
Message 1 of 6
(4,279 Views)

Please post your vi.

 

Are you using http://zone.ni.com/reference/en-XX/help/371361G-01/lvreport/query_avail_printers/ ?


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 6
(4,239 Views)

Hi,

 

here's the vi.

I'm not sure if we use "Query Available Printers VI", but I will check that tomorrow (I have to talk to the guy who wrote that application)..

 

cu

Torsten

0 Kudos
Message 3 of 6
(4,183 Views)

Not sure why the query printer is called by reference! Please try the attached vi.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 6
(4,173 Views)

Thanks a lot, .aCe.

 

I copied the file, run the main vi, and within the printer dialog a lot of printers were shown we do not have 😉

So I removed all those printers, saved the vi, and restarted the main vi - only the six printers that are installed on that PC are shown ... and that's fine!

 

But: when we select to create an Application (*.exe) with that select_printer.vi the list stays empty ... so it looks something like:

"when creating an *.exe the 'query for locally installed printers and show them within the dialog-box' function does not work".

 

Might that be correct?

0 Kudos
Message 5 of 6
(4,133 Views)

Sorry, I do not have application builder license to try this.

Your application may be missing this vi, so I have replaced the vi with just a property node. Give this a go.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 6 of 6
(4,127 Views)