From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create JPEG File

Hello,

 

I want to create a .jpeg file to save a actual taken screenshot.

How can I create a .jpeg file to save it and take the actual timestamp as file path?

Here is my code.

screenshot.JPG

 

 

I want to press the screenshot button and then save the screenshot to a jpeg file with the filename like the actual timestamp. C:\12.11.2012_11:45.jpeg

 

Can anybody help me?

 

Thx!!

 

0 Kudos
Message 1 of 2
(2,677 Views)

Is your screen shot working?  Is your only problem building a file path?  If so, look into the Build Path (in the File IO palette) and the Format Date/Time String (in the Timing palette).

 

EDIT:  Looking at your code a little closer, I don't think you want to create the file in the first sequence frame.  The save to jpg will do that for you.  Also, you don't need the sequence structure.  The error clusters are creating the data dependence for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,661 Views)