LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a front panel?

I'm seeking a way to automatically save my front panel to a file while
the VI is running.
I'm using the PRINT function to get a paper copy of my VI every
n-seconds: is there a way to have the same procedure with a file?
I'm not interested only in data saving: I need an automatic function
to save both front panel and data every n-seconds.

Thanks a lot,
Estel

PS: sorry for my english 🙂
If something is not clear tell me and I will try again.
0 Kudos
Message 1 of 2
(4,397 Views)
> I'm seeking a way to automatically save my front panel to a file while
> the VI is running.
> I'm using the PRINT function to get a paper copy of my VI every
> n-seconds: is there a way to have the same procedure with a file?
> I'm not interested only in data saving: I need an automatic function
> to save both front panel and data every n-seconds.
>

There are a couple ways to do this. One assumes that you are using a
recent version of LV, within three or four years. If you have the
VI server or the VI control VIs, there is a way to get the data for
a panel and save it to a BMP, PNG, or JPEG. The VI server function
is Get Panel Image or something close to that.

The second approach is to turn on datalogging. It will save the
values of all controls, but no p
ictures. I know this doesn't solve
your problem yet, but Using datalog retrieval, you can view the
data for any VI call and pretty much see what the panel displayed
when the data was logged. You can then print the data or just
view it onscreen. Using the server, you can also automate the
printing after the experiment is over by loading the datalog
into the panel and telling it to print to file or printer.

The things that will be missing from the datalog viewer option are
attributes; so if cursor position or something like that is important,
read those values and display them in an indicator so that they will be logged.

Greg McKaskle
Message 2 of 2
(4,397 Views)