Property: ExponentSeparator for Formatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: ExponentSeparator for Formatter
Property: ExponentSeparator for Formatter
Specifies the exponential character used in the file.
Object.ExponentSeparator
| Object | Formatter Object with this property |
| Object.ExponentSeparator | String with read and write access |
The following example shows the settings required for reading the lines listed below:
15.12.1998 12:00:00; 2.84529E-04¶ 15.01.1999 12:00:00; 1.05914E-04¶ 14.02.1999 12:00:00; 2.84483E-04¶ 16.03.1999 12:00:00; 4.72043E-04¶ 16.04.1999 12:00:00; 5.47222E-04¶ 16.05.1999 12:00:00; 0.00010¶ 16.06.1999 12:00:00; 0.00012¶ 16.07.1999 12:00:00; 0.00015¶
The ExponentSeparator property defines an E as the exponential character:
File.Formatter.TrimCharacters = " " File.Formatter.LineFeeds = vbNewLine File.Formatter.Delimiters = ";" File.Formatter.Timeformat = "DD.MM.YYYY hh:mm:ss" File.Formatter.DecimalPoint = "." File.Formatter.ExponentSeparator = "E" Dim oGrp : Set oGrp = Root.ChannelGroups.Add("Measurements") Dim oBlock: Set oBlock = File.GetStringBlock() Dim oChn : Set oChn = oBlock.Channels.Add("Time", eTime) oGrp.Channels.AddDirectAccessChannel(oChn) Set oChn = oBlock.Channels.Add("YShift", eR64) oGrp.Channels.AddDirectAccessChannel(oChn)