ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing string indicator

Sorry for all these questions but I'm so new at this Labview and I kind of want to impress my boss! 😉

I have a string that gets sent to a file log as well as a string indicator, I would like to clear the string indicator with a clear log button, in my code graphic I have a case statement with a selector to the clear log button, on the true side I have an empty string that I will wire to the input side of the shift register but since I don't want anything to happen on the false side and since I have to wire up the false side because it is an output I don't know what to put in there so nothing will affect the string indicator, what should I place on the false side?

Ron
0 Kudos
Message 1 of 8
(14,653 Views)
Hi Ron,

take a look at this diagram, If I got it right, it does what you're looking for.
Good luck,

Alberto
0 Kudos
Message 2 of 8
(14,653 Views)
If you just want to clear the indicator then just create a property node or a local variable and wire a constant to it.


joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 8
(14,653 Views)
I have a slightly different question: I have a multiline string going to display my test's progress.  I want to save this into a text file, but only once the test is done, as a one formatted string.  If I choose to clear the display every time the vi is called I obviously only end up with the last run of the VI.  I want to clear the multiline string when my main program start at the initializing stage of the state machine.  Anyone know how it's done, clearing the multiline string display?
0 Kudos
Message 4 of 8
(14,203 Views)
A string indicator is the same whether you drag it to make it larger to display multiple lines or leave it with the default appearance. Clearing a string indicator is described above.
0 Kudos
Message 5 of 8
(14,189 Views)
Well, I am under impression that if you start sending empty strings into a multiline string it will append them rather than overright the existing data.
0 Kudos
Message 6 of 8
(14,181 Views)

Your impression is wrong. A string indicator will not append a new string to an old unless you have written some code to do that. In fact, there is really no such thing as a multiline string. There is just a string. Maybe you are confused with another type of control/indicator.

 

Message Edited by Dennis Knutson on 03-24-2009 10:37 AM
0 Kudos
Message 7 of 8
(14,160 Views)
Yes, you are wright, I had written something to append to the string and forgot about it.  Thanks for your help.
0 Kudos
Message 8 of 8
(14,154 Views)