Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

AxCWGraph support for european format.

I'm having problems with the formatting of my Y axis using AxCWGraph. I've set the 'FormatString' property to '.#########k' to allow for very small units to be minimised by standard engineering units, and large numbers to be displayed as numbers with trailing zero's, i.e.
0.000000123 = 0.123um
5000.000000123 = 5000.000000123

When a european number format is chosen, i.e. ',' as opposed to '.' the formatting goes haywire. The format is permanently set to show the 9 decimal places if needed or not. I can change the settings to display the very small units correctly but not the big, i.e.
If my graph has been set to display units between 50.00001 and 50.0001 in 10 steps then the graph just displays 10 ticks of 5m, and no units after the decimal place. I can change this to show the decimal places but the very small units display all 9 precision units, i.e. 300nm = 300,000000000nm. This is very annoying.
Any help would be appreciated.
0 Kudos
Message 1 of 6
(4,138 Views)
Rob,

I agree, if you change to the European format without changing the regional setting to expect ',' then the ActiveX control does do funny things.

Have you tried changing the regional setting on the control panel?

After you change these settings and reload the control it uses the new settings?

Kind Regards


Steven Bird
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,105 Views)
This problem occurs when the software is installed on a PC set for a european language, so all the formatting delimiters are in european.
It appears as if the ActiveX control does not support the european delimiters.

The delimiters have been set to european in control pannel.

I'd be grateful for a workaround.

Cheers
Rob..

Message Edited by RobBart on 03-07-2005 07:19 AM

0 Kudos
Message 3 of 6
(4,104 Views)
Rob,

What settings are the regional setting set to?

I set mine to English (United Kingdom) I then editted the delimters myself and changed them to the ',' by selecting the customise button.

Hope this helps.

Kind Regards


Steven Bird
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(4,096 Views)
I've set the "Decimal Symbol" to ',' and the "Digital Grouping Symbol" to '.'.
My format string is :

CWGraph.Axes.Item(2).FormatString = ".#########k" + '"'+"m"+'"';

This gives me a Y axis of 30,000000000mm.

If I change the format string to :

CWGraph.Axes.Item(2).FormatString = ",#########k" + '"'+"m"+'"';

Then I get a Y axis of 30mm. But I don't get the reqd number of decimal places if needed. The ActiveX control seems to adjust the number of decimal places shown according to the values chosen, i.e. 10.123456000 would be displayed as 10.123456 (no trailing zero's).
In european I get 10.1234, the control will only display 6 chars, i.e.0.12345 and 100.123. I need to get up to 9 decimal places 100.123456789.

If I'm using a european symbol should I use a ',' in the format string commands, and is there a way of forcing the control to give me the extra decimal places when I need them?

Cheers
Rob...

Message Edited by RobBart on 03-10-2005 09:15 AM

Message Edited by RobBart on 03-10-2005 09:15 AM

0 Kudos
Message 5 of 6
(4,082 Views)
Rob to attach the trailling zeros in the format string you firstly need to use the non european decimal symbol '.' and the format string I believe should be in your case .#########000k + "m" I believe. I have not tried this in a program but purely just changing the properties.

Let me know how you got on and if this helps.
0 Kudos
Message 6 of 6
(4,014 Views)