LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Preserving font change in a string subset


@NIcurious wrote:

This does seem to grind my VI to a halt pretty quickly 😞


I was worried that may happen. This probably won't completely help with as much as you're trying to do as quickly as you may be trying to do it. But, have you tried to defer the panel updates?

0 Kudos
Message 21 of 23
(306 Views)

Did this ever get resolve, doesn't look like it????

 

I am trying to emulate an old DOS program with VGA monitor that does exactly what the original poster requested::  Append substrings to a displayed string without loosing the font color format.  The problem is as soon as you perform the concatenate, you loose the font color format!.   The DOS program and VGA dispaly has a host of font color and background color options on a character by character basis which is what I am having diffuclty replicating in LV.

 

I can accomplish this by either embedding a format stirng into my front panel display sting or maintain a "a 2-D color array" that indicates the offset into the diaplay string where the colors are to change.  In either case I get unsatisfactory results  because once a few differnet color substrings get into the Diaplay string, the display flicker that occurs while the sting color updates is annoying and it really boggs down the program. 

 

Anybody figure out how to do this easily in LV?  How about an  RTF activeX control that can be embedded as my VGA monitor emulator? Any ideas? 

 

Here is the VI that sets alternating line colors based on the 2-D color array where values indicate the last number of the last character of a strng of INPUT (ODD) and OUPUT(EVEN) colors,  works fine if you dont care about performanc, but not nearly as well as an old VGA monitor!  Gets much more complicated if you dont have alternating color substirngs, then you'd probably want use the srting search which quickly becomes extremely slow.

.

0 Kudos
Message 22 of 23
(273 Views)

Hi rickales1

 

Here are a few resources to help get you started if you are considering delving into RTF ActiveX controls to improve your code's efficiency:

 

How Do I Use Text from a Rich Text File?

http://digital.ni.com/public.nsf/allkb/7CFE9838693EFF53862575ED005770FA

 

How Can I Use ActiveX Control in LabVIEW

http://forums.ni.com/t5/LabVIEW/how-can-i-use-activeX-Control-in-labview/td-p/996957

 

Using ActiveX with LabVIEW

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/using_activex_with_labview/

 

ActiveX and LabVIEW

http://www.ni.com/white-paper/2983/en/

 

Also, you might find more traffic if you open a new topic for your issue.  Even though your topic is the same as the original posters,  you will probably find more customer posters and repeat responders by creating a newer thread.  

 

Best of luck with your application!

Amanda B.
Applications Engineer
National Instruments
0 Kudos
Message 23 of 23
(246 Views)