LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

contiuous text stream display in a string indicator!!

Solved!
Go to solution

I need to display test output in a string indicator, I can see the test output

in a string indicator, but it just dumps all the text output at the end of test.

I want the text to scroll display as more is appended.

 

Basically I want to see the real time text output as soon as it is available.

 

I saw following reply from one of the similar topic.

If this is the way, can someone explain further?

Basically I do not how I can set this attribute mode for my string indicator!!

 

"If you want the text to scroll as more is
appended, use the string indicator attribute node to set the scroll
position"

 

Thanks,

 

Do

0 Kudos
Message 1 of 11
(4,453 Views)

Attribute nodes are obsolete. What version of LabVIEW are you using?

 

Current versions of LabVIEW use property nodes and the property is  Text.ScrollPostion. Set it to some large number. You could also simply reverse the string concantenation and place the last string at the beginning.

 

I'm assuming that you are building the string with a shift register. Your indicator should be inside the loop to display the text as it is acquired.

0 Kudos
Message 2 of 11
(4,451 Views)

Hi,

 

I am using LabView 8.6.1.

So I think I understood most of your comments.

By the way, do I have use the shift register in order to display the text stream?

If not, what is the advantage of using shift register?

 

Again, thank you very much for your information.

 

Do

 

 

0 Kudos
Message 3 of 11
(4,434 Views)
If you are getting the text stream in pieces instead of one big string, I'm not sure how you would be doing it without a shift register unless you are discarding text. Why don't you attach your VI and show how you are acquiring the text.
0 Kudos
Message 4 of 11
(4,432 Views)

Hi Dennis,

 

My code got somewhat big, so do not think I can share with you.

Instead I created small testcase and attached to this post.

Basically I want to accomplish following things.

1. Every time I run the test, I want to see my text output stream to be updated as it come out.

2. The scroll bar always should stay with latest output which means it should stay at the bottom

     of the indicator display.

3. If I have a nested For loop or Case, how do I propergate the text stream from nested loop to outter

    so that I can display it as it comes out.

 

I hope you see my points.

 

Thank you in advance,

 

Do

0 Kudos
Message 5 of 11
(4,402 Views)
Try this.
Message Edited by Dennis Knutson on 08-21-2009 10:44 AM
0 Kudos
Message 6 of 11
(4,396 Views)

Hi Dennis,

 

This is exactly how I want to see the output on the display.

Thank you very much.

So basically for the nested loops I need to have a shift register linked between nested loops

and the string indicator should resides in lowest nested loop.

Is this correct observation?

 

Do

0 Kudos
Message 7 of 11
(4,383 Views)
Solution
Accepted by topic author horanyee
Yes, just like the example.
0 Kudos
Message 8 of 11
(4,380 Views)

Dennis,

 

Sorry, but I do have one more question.

How do I link the shift register within subVI?

 

Thanks,

 

Do

0 Kudos
Message 9 of 11
(4,372 Views)

Use a reference, action engine, global variable, shared variable, pop up the subVI and not worry about the main.

 

All valid and discussed in many other threads. Just do a search for 'subVI update main'.

0 Kudos
Message 10 of 11
(4,347 Views)