LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter special character for a label of a textbox control ?

How to enter special character for a label of a textbox control ?

Ex: Special characters=  √ , µ,Σ  etc..
0 Kudos
Message 1 of 4
(4,325 Views)

Hello HDN,

In order to use special characters you hold <alt> and type in their ASCII decimal represenation.  For example, to get μ you would type the following:  <alt>230

Click here to go to an ASCII table with the decimal represenations. 

Unfortunately, not all symbols are supported by the CVI labels (ie, ∑, √ are not supported).

Regards,
Ben M
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,300 Views)
Thank for your response, It's too bad because the character that I want to use in my project is √
Just wonder why CVI didn't support all special characters ?

Message Edited by HDN on 07-16-2007 07:19 AM

0 Kudos
Message 3 of 4
(4,263 Views)

@Ben M wrote:
 

Hello HDN,

In order to use special characters you hold <alt> and type in their ASCII decimal represenation.  For example, to get μ you would type the following:  <alt>230

Click here to go to an ASCII table with the decimal represenations. 

Unfortunately, not all symbols are supported by the CVI labels (ie, ∑, √ are not supported).


This thread is old, and perhaps CVI 2013 has changed its extended ASCII compatibility.  Regardless, the ASCII chart linked above is just plain incorrect in the extended portion (128-255).  A better chart I've found is here.  This chart I can corroborate how CVI 2013 handles the extended characters with this bit of code:

 

char stemp[10];
unsigned int glyph;

for (glyph=0; glyph<255; glyph++)
{
	sprintf(stemp,"%i: %c\n",glyph,glyph);
	DebugPrintf(stemp);
}

 

0 Kudos
Message 4 of 4
(3,431 Views)