LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save insert data

Hi,
 
I've written a program to control a robot. I send references to the robot.  The user of the robot has to insert these references into input boxes. Is there any way to save the references into this boxes when I shut down LabVIEW.
 
 
0 Kudos
Message 1 of 5
(3,120 Views)

Hi heelklick,

      In "G" (AKA LabVIEW) a "Reference" is a special data-type - I doubt you really want to save "references".  Can you send/attach a picture of the front-panel so we can see these "input boxes"?  I wonder if it's text-strings that you want save between runs...

Cheers.  

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 5
(3,115 Views)

At the moment it is not possible to send the FP.

These are only references to the Robot. The input boxes are text fields. I only want to save the data which are in this input box. This means with the next start of the program the text should be again in the text field.

0 Kudos
Message 3 of 5
(3,105 Views)
I think your best bet is a sequence structure where you store the "references" in a text file.
1.  Load the data from the text file and put them into the respective controls.  You will need a case structure to detect if the file structure exists.  If it does not do nothing.
2.  Sequence which does all your program is doing now.  This sequence loops until you hit whatever button stops your program.
3.  Save the data in those controls to the text file.
0 Kudos
Message 4 of 5
(3,087 Views)


@heelklick wrote:

At the moment it is not possible to send the FP.

These are only references to the Robot. The input boxes are text fields. I only want to save the data which are in this input box. This means with the next start of the program the text should be again in the text field.



Hi heelclick,

      The attached VI is very convenient for saving parameters at the end of execution - for retrieval on the next run.

Just modify the cluster(s) to hold the data you want to save.  When your program starts, just wire the file-path to read-back the saved data.  Unbundle the string-parameter, and wire it to a Local-Variable copy of your "Input Box"!

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 5 of 5
(3,073 Views)