10-30-2007 10:01 AM
I have a *vi that I am trying to use to format a multi-line string indicator with colors. The idea is that the data represents network traffic and must be formatted as shown in columns. I realize that there is an upper limit on the horizontal size of the string control of around 2000 characters. The standard console can be 9999 character wide. Second issue is that when I use a property node the iterations take forever to process since I am not able to concurrently apply the formatting to the string as I right them to the string window. I realize that I am using white space as filler and that this is causing a delay but in general this is taking way too long to format. Is there anyway to speed this up and go more than 2000 characters wide? If not is there a simple way to invoke the windows console in Labview and use the format parameter show in the attached *.cpp file?
I have attached the vi along with a sample Dev C++ project showing how fast the console is in comparison when apply colors to large amounts of text data.
Solved! Go to Solution.
10-30-2007 10:22 AM - edited 10-30-2007 10:22 AM
Ouch! This looks like a literal translation of text code whcih is not al all optimized for dataflow. All these local variables cause extra data copies. Your code constantly needs to switch to the UI thread.
Two ideas:
Why is your 3D picture set to scale with the panel? How big is your monitor? 😮
Message Edited by altenbach on 10-30-2007 08:23 AM
10-30-2007 12:23 PM
10-30-2007 12:36 PM
10-30-2007 01:04 PM
10-30-2007 01:18 PM - edited 10-30-2007 01:18 PM
@ShotSimon wrote:
I can copy your property node and it works. How do I create it from scratch? Thanks!
Drop a generic property node and select the correct class as follows.
Now select the defer property.
Message Edited by altenbach on 10-30-2007 11:19 AM