LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a mutiple of data to a string

Solved!
Go to solution

I have designed a code that sends a string to the string indicator, however if I send another string the previous string gets deleted and the new string gets display. I was wondering if I could improve my code so it can keep display a new string every time.

0 Kudos
Message 1 of 11
(3,401 Views)

Your VI only executes once.  You need to put a while loop around it with a stop button to stop the VI.  Also put in some timing VI's so it doesn't run infinitely fast.

 

Then use a shift register to store the string data, use concatenate strings to add new data to the end of your existing data.  You will probably also want to add a carriage return or new line character as well.

0 Kudos
Message 2 of 11
(3,400 Views)
I put in a while loop but i don't know how to store the string data to the shift register.
Message Edited by Ak star on 03-10-2009 01:32 PM
0 Kudos
Message 3 of 11
(3,391 Views)
Solution
Accepted by Ak star
See attached.
0 Kudos
Message 4 of 11
(3,373 Views)
Thanks very much
0 Kudos
Message 5 of 11
(3,354 Views)

Dear Ak star,

 

Please post Ravens Fan's post as solution to your problem so that it will help others who are facing same problem like yours and searching for a suitable solution. You can do that by selecting from "Options" menu located at the top right corner of the post. Hope you understand.

 

Thanks,

Mathan

Message 6 of 11
(3,338 Views)

Sorry, I am still a beginner at this forum. Now i have a similar problem but this time with the numeric indicator. I want the indicator to add the new value with the previous values and so on when i press sent.

0 Kudos
Message 7 of 11
(3,313 Views)

You need a shift register for that as well.  I don't know where exactly you want to do that so I'll just post a screenshot of an example.

 

Shift registers are a basic LV structure you need to learn.  I would recommend you learn more about LabVIEW from here. How to Learn LV

 

PS  In your code, the spelling should be "origin" not "orgin".

 

Message Edited by Ravens Fan on 03-11-2009 10:56 AM
0 Kudos
Message 8 of 11
(3,305 Views)

For the x and y, you just another another shift register for each of them like you have for the string. Instead of concantanating the string, you would use the add function.

 

p.s. You don't need those local variables at all. Place the indicators outside the case statement.

0 Kudos
Message 9 of 11
(3,301 Views)

Hi Dennis,

I used two shift register for x and y, also I include the add function. However, it doesn't work and the reason is the shift register value is always Zero. This is why it doesn't add the new values with the previous values because it adds the new value with Zero. 

0 Kudos
Message 10 of 11
(3,276 Views)