LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"write plot to jpeg" always stores data of previous run

Please have a look at the vi attached below: Although I'm using a sequence, the output-jpeg file always contains the date (jpeg) from the PREVIOUS run of the program.
What am I getting wrong here?
Thanks for any answers!
0 Kudos
Message 1 of 5
(2,860 Views)
It works just fine here (LabVIEW 7.0).
The jpeg always contains the data of the newest run and the file date is also correct.

(Your VI is actually broken, so I added a few points manually).

Please provide more details, e.g. are you calling this as a subVI? I doubt it would help, but you could also try to set the picture for synchronous display (right-click..advanced..synchronous display).
0 Kudos
Message 2 of 5
(2,860 Views)
Hello, yes you're right I just copied a small part of my program. I'm reading samples from niScope and build up an array with them. I then copy the array into a cluster and hand it to the plot function (as you can see in the vi already posted).
I'm not calling this function in a subvi.
It seems as though the values of the previous run get copied to the jpeg file.
Anyway I'll try to figure it out and come back to you shortly!
Cheerio
0 Kudos
Message 3 of 5
(2,860 Views)
Hello again. I found out what it is: The front panel has to be open when the values change. I found this information in the help file. However it also says:
" If you do not want to display the front panel but want the image to reflect value changes, wire a Property Node to any front panel terminal on the block diagram of the VI for which you want to create a front panel control image"
I don't quite understand how I should do this in my example code, i.e. where to wire it to.
Can you please help?
Thanks a lot
0 Kudos
Message 4 of 5
(2,860 Views)
Hello Schorsche,

I would drop the property node at the begining of the sequence strucure. So that the date is updated initially.

Kind Regards

LouisP
Applications Engineer
NI-UK
0 Kudos
Message 5 of 5
(2,860 Views)