05-03-2012 10:45 AM
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?
05-03-2012 11:08 AM
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
05-03-2012 12:21 PM
No, I count about 101 ways to do it. More details would be helpful. Do you have a vi you can attach?
05-03-2012 12:39 PM
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
05-03-2012 12:49 PM - edited 05-03-2012 12:50 PM
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?
05-03-2012 01:58 PM
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. ;))