LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Grabar Cambios en Aplicacion Construida (Save changes in running application

Hola a Todos, tengo una consulta, por ahy es media tonta pero no lo pude lograr aun.

 

Tengo una aplicacion construida, es decir ya tengo el ejecutable que abre el vi de arranque etc etc. La cuestion es que dentro del mismo tengo un pid donde le puedo configurar las ganancias kc, ki,kp. Y entonces, yo le coloco las constantes, ejecuto el programa y todo bien. La cuestion es que cuando cierro la aplicacion y la vuelvo a abrir, dichos valores se borran. Yo necesito de alguna manera, grabar para poder cambiarlos y que cuando vuelva a abrir la aplicacion me cargue los ultimos valores que agregue.

 

Obviamente no tengo un menu, que diga file->save, porque labview no te lo permite. Como lo puedo implementar?. Alguien sabe o tiene un ejemplo?

 

Gracias

 

Gustavo

 

English:

 

Hello Everyone, I have a query, there is a fool but I could not achieve yet.

I have built an application that is executable and I have the boot opens etc etc vi. The point is that within the same I have a pid where I can set the gains kc, ki, kp. And then I placed the constants, run the program and all good. The point is that when I close the application and reopen it again, they all are deleted. I need some way to record the change that i made when you reopen the application I need to load the last value added.

Obviously I have no menu, that says file-> save, because LabVIEW does not let you. As I can implement?. Anyone know or have an example?

Thanks

Gustavo

 

 

 

Si todo fuera facil, no estaria aca.
0 Kudos
Message 1 of 2
(2,264 Views)

I would use an ini file, create a new section and read it when you start the application and update your controls as necessary. When you shutdown, make sure you write the values to the ini file.

 

some links that may be of interest:

You can use the following vis for manipulating ini files: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/file-io/confi...

 

More  info: https://www.ni.com/docs/en-US/bundle/labview/page/configuration-files.html

 

how to deploy your own ini file https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L2eSAE&l=en-US


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(2,261 Views)