LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save to a new vi when main program is running

Hi All,

I would like to ask whether:

 

Firstly, when my main program is running, and when i click my save button, it will prompt me to save. here comes the thing. when it prompt me, i would like to save it as type is in VI form. not in all files. Currently, i'm using binary files in my 'save' case structure.

 

2nd problem is that: if i save as type in VI form, i cant open it as error prompt said, the file that i save is an invalid labview file.

 

Lastly, i would like to ask is there a way to save a new vi when main program is running? i wish tat in my program, when i click 'open' button, it will show me the previous readings.

 

Currently, i'm using labview 7.1

Thank You.

 

 

0 Kudos
Message 1 of 7
(2,500 Views)

Hi Isabella,

 

Thanks for your post and I hope your well.

 

I am sorry but I dont fully understand your issues:

 

1#: So when your main vi is running, why/how are you trying to save it? 

 

2#: Are you asking if there is a way to programmatically save a VI or File?

 

If you could try to clarify things for more (sorry) and I will then give you some help 😄

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 7
(2,480 Views)

1#: So when your main vi is running, why/how are you trying to save it? 

 

The reason of saving it because i would like to view back the records of history

How i'm saving it by having a save button in my 3loop structure.

 

2#: Are you asking if there is a way to programmatically save a VI or File?

 

Is there a way to programmatically save a VI?

 

Sorry for those unclear portions. Thank You.

 

Regards,

Isa

0 Kudos
Message 3 of 7
(2,467 Views)
You can programmatically save a VI, but I don't really see how that's going to help you. Your statement "The reason of saving it because i would like to view back the records of history" seems to imply some sort of configuration management. If this is what you're trying to do then you should not do it this way. Use proper configuration management software. If that is not what you are trying to do, then I have no idea what you're trying to do. Are you sure you're not trying to save data to a file? It may help to post your code so we can see for ourselves. 
0 Kudos
Message 4 of 7
(2,462 Views)

Hi Isa,


Thanks for the reply -  sorry for the delay.

 

Are you saying your storing data on your LabVIEW front panel.. so you wish to save it has you go along?

 

If so, I would suggest logging the data to a file. You could then create a new file every X events (every iteration, every 10seconds, every N Sample) etc. 

 

You can find file examples in the NI Example Finder (Help>>Find Examples and search Files).

 

Please let me know what you mean't,

Hope this helps. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 5 of 7
(2,448 Views)

Hi Hillman,

                Thanks for the suggestion. I looking in the example finder now. Thanks alot. Smiley Wink

 

Regards,

Isa

0 Kudos
Message 6 of 7
(2,426 Views)

Hi Isa,

 

Thanks for getting back to me, glad to help 😄

 

Let us know  how you get on!

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 7 of 7
(2,406 Views)