02-07-2014 01:23 AM
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
02-07-2014 07:07 AM
Please post your vi.
Are you using http://zone.ni.com/reference/en-XX/help/371361G-01/lvreport/query_avail_printers/ ?
02-10-2014 07:52 AM
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
02-10-2014 08:12 AM
Not sure why the query printer is called by reference! Please try the attached vi.
02-12-2014 01:59 AM
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?
02-12-2014 02:10 AM - edited 02-12-2014 02:26 AM
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.