LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping Notes in a Text File?

Ok, this is probably a simple deal, but I'm not finding anything when doing a search that's very helpful...  I'm wanting to open a standard text file and display it on the screen... got that done no problem.  The issue is how do you change the text display from an indicator to a control so I can then type in notes as my VI is running and have it save so I have those notes the next time I run my VI?

 

Thoughts?

 

Thanks!

 

Chad

0 Kudos
Message 1 of 5
(2,604 Views)

Use a control instead of a indicator, writing your saved data to it initially using the value method of a property node. To create a property node, "Right click" on the diagram icon for the control, scroll down to "Create", "Property Node", "Value".

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 5
(2,599 Views)

Ok that got me about 95% of the way there.  Thanks!   

 

...only issue I'm seeing now is that I can't be typing an have it save.  I put in a timer to have it save every 10 seconds... was trying to have it save as I'm entering information, but ran into issues with it wanting to read exsisting data in the file twice... then it would copy it back into the file again... Also, didnt' find an "append" feature on the write to text file like there is on the write to spreadsheet file VI. 

 

The VI I'm currently working with should be attached...  (edit - didn't attach, working on it!)

 

Any knowledge on how to have it save when I'm still typing would be appreciated.

 

THX

 

C

0 Kudos
Message 3 of 5
(2,565 Views)

All you need to do is over write your file every so often.  There's no need to read from it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,550 Views)

Other than the inital read that I set the Value Property Node of the Text box to when I start the VI, you are correct. 

0 Kudos
Message 5 of 5
(2,547 Views)