LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
falkpl

Subscript and superscript fonts

Status: New

How did a program made for engineers and scientists make it 20+ years and not allow for subscripts and superscripts to be displayed. 

E=MC2 is really not all that powerful.

Are there no chemistry math or physics applications developed.

 

One nice method for implementing this is to add an additional mode to string display called markup bhere simple tags could be added around characters to alter their appearance much like is done in HTML.

  

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
14 Comments
Enrico_Segre
Active Participant

> because most fonts have the square as plain character. 

 

Try to do that cross-platform. LV windows uses extended ascii, linux uses UTF8. You have to end up with a "square character constant" VI containing the platform dependent conditional code, i.e. \C2\B2 for utf and \B2 for ascii, or anything the like. Besides, the characters available that way are very few. Advanced unicode tables have many more glyphs, but their font support may be minimal; and anyway LV notoriously doesn't support unicode yet.

 

As a scientist, I second by far a pseudo-latex interpreter (like Matlab) than an html one. The typesetting capabilities of the former are superior by far, even if only a subset is to be supported. Of course, such an interpreting mode will have to be toggled, by a "Latex Display" check option, or such.

ec01
Member

+1 for a "LaTeX-like display", when I want to insert formulas in front-panel or diagram I have to paste an image of the formula, it could be easier with a little LaTeX interpreter (subscript, greek alhpabet, fractions, matrix, sums...).

X.
Trusted Enthusiast
Trusted Enthusiast

I actually did not check whether any of this is implemented in Next Gen yet, but that's something that NI must have thought about by now (?).

MizzouME
Member

Like everyone else here I wanted to add text to Labview front panel items, things like wavenumber units, inverse centimeters (cm-1) and wavelength units, microns (um). I was convinced, and disappointed, that it couldn't be done. I was working on a datasheet generator for a laser product and the units have to look right. 

 

The charactor set in Word includes a "minus superscript" but not a "1", just an "i" so it's not any help. I did find a better character set that let me do this and it works. I tried it in the scale properties and also in a string. You can find it here;

https://en.wikipedia.org/wiki/Windows-1252

Alt+0175=superscript minus

Alt_0185=superscript 1

Alt+0181=micro symbol

 

Hope this helps someone struggling.