LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save the value entered in a controller?

I want to be able to save values entered into a controller (say set points) for the next time the program is opened...I was wondering if there was any easy way to do this (i.e. a setting on the controller rather than having to read the values from file and write them to the controllers each time)
0 Kudos
Message 1 of 4
(2,638 Views)
I don't know about easy, but you can use the VI server functions to "set current values to default" and then "save" the VI, essentially self modifying code. We use VI server functions like this all the time. look to the methods available in a VI reference.
Stu
0 Kudos
Message 2 of 4
(2,638 Views)
That all depends on the controller I would suppose and you didn't mention what it is. Look through the documentation on the system you're using and see if there's any nonvolatile storage (i.e. flash memory) available for such a thing.
0 Kudos
Message 3 of 4
(2,638 Views)
I think there's a confusion here, did the original poster mean a 'controller' (i.e. a piece of hardware connected to the PC) or a LabVIEW front panel 'control'?
0 Kudos
Message 4 of 4
(2,638 Views)