LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Write 4 text to text box simultaneously

Hi,

 

Just wondering how can I do this:

 

I have a test running (4 different units); I have to write the test results to the text box. The problem is that each test is running for 30 seconds and each second I have a result from each units and I have to write the result to the text box, each second. So at the end of the test I will have 30 lines of the results for each units.

 

How do I write 4lines simultaneously to text box each second without overwritting so that at the end I have 30 lines for each units just like this:

 

 

unit1

 

line1

line2

line3

.....

 

unit2

 

line1

line2

line3

.......

 

unit3

 

line1

line2

line3

....... 

unit4

 

line1

line2

line3

..... 

 

is this possible?

0 Kudos
Message 1 of 2
(2,556 Views)

On one hand, the simplest solution is to have 4 different textboxes one for each unit under test. That way you do not need special provisions other than selecting the appropriate control to write to.

 

On the other hand, if you want to use a single control you could prepare the textbox with 30 empty lines and use ReplaceTextBoxLine to add the text you want in the appropriate position. Or even use InsertTextBoxLine to add text in the right position (more complicated as you need to keep dynamic track of the insertion point for each unit you are testing and update each one of them on each line you add in the control)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,550 Views)