LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you create superscripts subscripts in LabVIEW?

I want to create superscripts subscripts in LabVIEW, but those are not options in the Applications Font Dialog Box. How do I do this?
0 Kudos
Message 1 of 10
(5,888 Views)
To my knowledge, this isn't available directly in LabVIEW. You will have to import an ActiveX control, and display your text that way (assuming you are in Windows).

I know how to change the font/appearance for individual characters, but don't think this will help you for your problem, unless you were to find a font with its own super and subscripts. Is this for chemistry? Is there a limited characterset needed for sub and superscripting? You could create your own, and if this IS for chemistry, I have to imagine that there is a characterset (font) out there.

You could also create your own font...
0 Kudos
Message 2 of 10
(5,888 Views)
LabVIEW Guru:

I am using LabVIEW 6.0.2 Base Package on Windows NT. How do I import ActiveX controls? How do I create my own character set or my own font? I am trying to type a mathematical formula, for example, Asubscript(2)=Asubscript(1)Xsuperscript(2).

Thanks,

Jim Kane
0 Kudos
Message 3 of 10
(5,888 Views)
Jim,

This suggestion has been placed in our Product Suggestion database for future versions of LabVIEW. For the current time, I would follow Labviewguru's advice.
To import an ActiveX control, you can place an ActiveX container down on the front panel, then right-click on it to insert a control. You will need to know what control you want to insert.
As for creating your own font, you may want to search on one of the major search engines for that information.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 4 of 10
(5,888 Views)
Jim,

There should be some forumla expression fonts out there, just do a search for one.

I had a need for this. I ended up using a math program (mathematica) and exporting the formula as a bitmap. Of course, my formula was a few magnitudes more complex , and required a much greater level of difficulty to display.

Let me know what you are trying to do. Is this to display a formula that is being used in the program, or what is the exact use.

Also, try looking for a font that has some subscripts in it. I know that the system and terminal (as well as most) fonts on windows include the 2, 3, and 4 as superscript, but I didn't find any subscripts. You may be able to just make the font smaller for the subscripts. I did this before,
but using different fonts in a text display to display characters for logic formulae.
0 Kudos
Message 5 of 10
(5,888 Views)
I am using LabVIEW 6.0.2 Base Package on Windows NT. How do I import ActiveX controls? How do I create my own character set or my own font? I am trying to type a mathematical formula, for example, Asubscript(2)=Asubscript(1)Xsuperscript(2).
0 Kudos
Message 6 of 10
(5,888 Views)
Unless you want to write formulas alot in the future i really wouldn't create a font for it. I think the best and quickest method would be to type your formula in say MS word (Insert>Object>Microsoft Equation - you may have to install it from the Word CD) and then cut and paste it into your front panel.

Kim
Message 7 of 10
(5,888 Views)
Hi,

If you need users to create those formulas, it can get very complex. You
cannot have font differences (or different fonts) in one string control.
Even if you make a font with sub and superscript included, this is no
solution.

If you need a static formula on the front panel, make it by using several
text boxes. For Asubscript(2)=Asubscript(1)Xsuperscript(2), one text is A =
A X B. The other text is smaller, and has 2 1 in it. The last has a 2
in it. When placed in the right position, it will make a fine formula.

If the formula must be user editable, or changeble from the program, ActiveX
is a solution. Microsoft Rich Text Box comes to mind. However, you must make
the interface to make the selected text sub or superscript yourself. (Or
control i
t from the program.) A webbrowser control in combination with
MathML also seems logical. Both solutions are not for the faint or heart...

Regards,

Wiebe.



"Jim Kane" wrote in message
news:506500000008000000F8530000-1027480788000@exchange.ni.com...
> I want to create superscripts subscripts in LabVIEW, but those are not
> options in the Applications Font Dialog Box. How do I do this?
0 Kudos
Message 8 of 10
(5,888 Views)
Wiebe,

For clarification, it is possible to have different fonts displayed in a single string indicator/control. I implemented this a couple of years ago. It was tricky to figure out, but rather easy to implement.
0 Kudos
Message 9 of 10
(5,888 Views)
Hi,

Yes, I see... with property nodes you can set the selection, and set the
font size, color etc...

This could make a nice set of sub VI's...

Thanks,

Wiebe.


"Labviewguru" wrote in message
news:50650000000500000002900000-1027480788000@exchange.ni.com...
> Wiebe,
>
> For clarification, it is possible to have different fonts displayed in
> a single string indicator/control. I implemented this a couple of
> years ago. It was tricky to figure out, but rather easy to implement.
0 Kudos
Message 10 of 10
(5,888 Views)