03-10-2009 01:05 PM
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.
Solved! Go to Solution.
03-10-2009 01:08 PM
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.
03-10-2009 01:31 PM - edited 03-10-2009 01:32 PM
03-10-2009 01:56 PM
03-10-2009 06:23 PM
03-11-2009 01:15 AM
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
03-11-2009 09:37 AM
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.
03-11-2009 09:53 AM - edited 03-11-2009 09:56 AM
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".
03-11-2009 09:58 AM
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.
03-11-2009 01:31 PM
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.