LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I conditionally print the front panel on completion?

Solved!
Go to solution

I have a system wherein I want to print the front panel at the completion of the VI *IF the user pushes the 'PRINT' button*.  I can set it to print all the time, through the menus, but I can't find how to control the printing through LabView.   At the moment the 'Print' button "My eyes!  The button does nothing!"

 

See attached PDF for what I have in mind.  This is the same PDF as a previous posting. 

 

Thanks, Scrx

0 Kudos
Message 1 of 5
(3,469 Views)

How about this:

Put your print logic at the very end of your code (but still inside a while loop).


The user has two options:
1) Press stop, which will stop the loop, stop the program, and NOT print the front panel

2) Press print, which will enter an event structure, which contains the logic for printing, then stop the loop and stop the program.

 

Both ways, the program will end by a user event, it is just whether or not printing occurs.
I can explain more if you have questions about what I am talking about.

Cory K
0 Kudos
Message 2 of 5
(3,445 Views)

Hi Cory, 

The while loop is already there, and it (at the moment) does nothing, but the problem is that I can't get LabView to 'Print Front Panel' except by checking that box in the menu, and I don't want it to print every time, I want it to print when the user clicks on the 'Print' button...  

Thanks, Scrx

0 Kudos
Message 3 of 5
(3,442 Views)
See the bottom of this related post.
Message 4 of 5
(3,437 Views)
Solution
Accepted by topic author Scrx
sorry, I forgot to whack 'Sovled!' on this one.   Scrx
0 Kudos
Message 5 of 5
(3,402 Views)