LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use a pre-assigned filename to save a PNG file

Solved!
Go to solution

Hi Ronster,

 

I didn't meant my comment to be offensive, but the neccessary information was given before.

I only opened the help, picked "Property and Method reference", then picked "VI Server" followed by "VI". Then you'll find "Front Panel:Get Image" method description...

 

So, what did I write? "method for the VI" to get the "front panel as picture" Smiley Wink

Message Edited by GerdW on 04-06-2010 03:10 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 19
(792 Views)
The OP expressed that he was looking into the report writer features, so I assumed a report was being generated, or the need to use Word or Excel, etc. For a raw picture, FP>Get Image is the obvious choice - agreed.
Richard






0 Kudos
Message 12 of 19
(783 Views)

GerdW,

Sorry, I appologize.  I have used this method.  When I use it, how do I have it include the entire screen?  I only get the graph, not my string indicators.

0 Kudos
Message 13 of 19
(772 Views)

Hi Ronster,

 

when you use FP.GetImage you only get the graph, but not the string indicators? Interesting. Very interesting…

 

Could you attach your VI (maybe simplified to the core problem, only containing the graph, strings, and the FP-method)?

 

Btw. Do we talk of the same things? What exactly is a "screen" for you? Do you mean FrontPanel (of a single VI) or the whole screen? Please use exact wording...

Message Edited by GerdW on 04-06-2010 03:41 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 19
(767 Views)

GerdW,

I have attached what my front panel looks like.  Yes, this is what i would call the 'screen', everything.  The next file is the saved bmp file.  You can see what is missing.  The last is my code.

Ronster.

Download All
0 Kudos
Message 15 of 19
(749 Views)

Hi Ronster,

 

are you sure (are your really sure?) it's a VI method?

 

From the picture I assume it's a graph method! So you will only get the graph's image. Use the VI method!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 19
(741 Views)
OK.  Now we may be on to something!  I have no idea.  How do I create this function as a VI node rather than an image node?
0 Kudos
Message 17 of 19
(735 Views)
Solution
Accepted by topic author Ronster

Hi Ronster,

 

pick a "fresh" method node from the VI server function palette, right-click to select class (VI Server->VI) if anything else is shown, now select method FrontPanel.GetImage...

 

When you need the image of the graph you use the graph's GetImage-method. If you need the whole FrontPanel you have to use the VI's method Smiley Wink

Message Edited by GerdW on 04-06-2010 04:13 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 18 of 19
(731 Views)

GerdW,

You 'da man!  I appologize for not knowing the difference between an image node and a VI node.  Works like a charm!

Ronster

0 Kudos
Message 19 of 19
(718 Views)