LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display a string and then replace its content

I would like to show a string for a certain amount of time and then, after that time, to replace the string content with something else.

does anybody know how to do this?

0 Kudos
Message 1 of 6
(2,968 Views)

flaviac,

 

There are literally about 50 ways to do this. It all depends on your specific application needs which you did not share.

 

I have attached 1 method, it is just something that should get you started.

 

-Chazzzmd

0 Kudos
Message 2 of 6
(2,963 Views)

No, I count about 101 ways to do it.  More details would be helpful.  Do you have a vi you can attach?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 3 of 6
(2,948 Views)

in attach my vi.

basically I need to send a shock, then show GO for 1 sec, then GO has to desappear for 3 sec.

I need to replace the GO with nothing after 1 sec.

 

thanks so much,

 

flavia

0 Kudos
Message 4 of 6
(2,942 Views)

Stay away from simple VI archetectures.  You want the VI to be scalable.  Use a state-machine instead.  There are examples in LV you can look at.  You should only use one indicator to display the message.  Get rid of the sequence structure, you don't need it.  Use different states (cases) to display different messages.

 

Search the knowledge base for use of a state-machine.  Sorry, this is not the forum to learn labview.  Most of what you learn will have to be through research and trial and error.

 

Is this a school project?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 5 of 6
(2,936 Views)

I agree that this program is way too linear and rigid. I would recommend to rearchitect it as a simple state machine.

 

In any case, here's how to update your string using a small FOR loop. See if it works for you.

(I did not touch your architecture, try to do it yourself. ;))

0 Kudos
Message 6 of 6
(2,923 Views)