10-11-2013 10:00 AM
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
10-11-2013 10:08 AM - edited 10-11-2013 10:12 AM
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".
10-11-2013 03:42 PM - edited 10-11-2013 03:51 PM
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
10-11-2013 04:19 PM
All you need to do is over write your file every so often. There's no need to read from it.
10-11-2013 04:30 PM
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.