LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving waveform graph continously

Solved!
Go to solution
Hello everyone. i been working on saving waveform continously. What i mean is, if i run the vi for 5 minute, it will save the waveform from begining until i stop the program (5 minute). I manage to save waveform in format jpeg but the problem is everytime i save the image, it will overwrite the previous one. Is there anyone can help me?
0 Kudos
Message 1 of 13
(4,261 Views)
Use a shift register.
0 Kudos
Message 2 of 13
(4,259 Views)

Hi,

 

 

When you are writing the jpeg file the filename you enter is the same that is why it is overwriting the file,

 

everytime you run the program.

 

As said above use the shift register or try different methods to name the file.

 

Regards,

 

Shrek

0 Kudos
Message 3 of 13
(4,248 Views)
I don't understand to use  shift register. At which part that i should put it?
0 Kudos
Message 4 of 13
(4,238 Views)

hi

 do you want that once you stop your VI then it should save the image ? if yes then i think you should use event structure . 

also see the attached VI of how to use shif register

 

regards

Regards
0 Kudos
Message 5 of 13
(4,231 Views)
Is this what you need
Regards
0 Kudos
Message 6 of 13
(4,229 Views)
0 Kudos
Message 7 of 13
(4,225 Views)

Hi nolsqn, muks

 

Thanks for your reply.

 

Nolsqn, it will be pleaseure if you can convert vi that you upload cause i'm using labview version 8.5 :smileyhappy:

 

What exactly i'm trying to do is to save waveform from begining i run vi until i stop it. Let say if i run vi for 10 second, it will save 10 picture of waveform and it done  automatically. The vi that i attach here able to save waveform in format jpeg but it keep asking me to choose  the path to save the waveform.  I just want  it done automatically and does not overwrite  the  previous save file.

 

 

Muks, i try to run you vi but there was an error. I can't find function "IMAQ Write Jpeq file ". Is that because i'm using previous version of labview?

0 Kudos
Message 8 of 13
(4,195 Views)

Don't worry about that function. It's from IMAQ and you do not need that toolkit. What you should be looking at is how the file name is dynamically created. Modify as necessary.

0 Kudos
Message 9 of 13
(4,193 Views)

Hi,

 

 

One of the method by which you can name a file without overwriting is by giving the current time as the filename.

 

It will create a seperate file as per time, check forum for the ex.

 

Regards

0 Kudos
Message 10 of 13
(4,171 Views)