Previous Next        Current Page: NeXtMidas Training / Common Midas Concepts / Data Types / Data Formats / Types
back
+ Start Here   
+ Background   
- Common Midas Concepts   
   + Version Numbering   
   + Basic Features   
   - Data Types   
      - Data Formats   
         - Types   
         - Modes   
         - Elements   
      - Compound Types   
      - Lab 1 - Data Types   
         - Exercises   
   + Blue Files   
   + Lab 1   
+ Getting Started - Part 1   
+ Getting Started - Part 2   
+ Working with Files   
+ Option Trees   
+ Macros - Part 1 (Basics)   
+ Macros - Part 2 (Graphics)   
+ NetBeans - Part 1 (Setup)   
+ NetBeans - Part 2 (GUIs)   
+ NetBeans - Part 3 (Profiler)   
+ Eclipse - Part 1 (Setup)   
+ Eclipse - Part 2 (GUIs)   
+ Primitives   
+ WebStart   
+ Maps & Imagery   
+ X-Midas Interoperability   
+ RMIF & Remoting   
+ Installing NeXtMidas   
+ Support & Maintenance   
+ File Handlers   


  • Basic Types
    Scalar Format Data Type Scalar Size
    Packed Bits P 1 bit
    Nibble Packed Bits N 4 bits
    Offset Byte (Not Supported) O 1 byte
    Signed Byte B 1 byte
    Signed 12-bit Integer J 12 bits
    Signed (Short) Integer I 2 bytes
    Signed Long Integer L 4 bytes
    Signed Extra-Long Integer X 8 bytes
    Single-Precision Floating Point F 4 bytes
    Double-Precision Floating Point D 8 bytes
    ASCII String (8 Characters) A 8 bytes
    ASCII 256 Character String Z 256 bytes
New Feature (Since NeXtMidas 3.9.4):
New New Data Type 'Z' added to support longer ASCII strings
IMPORTANT NOTE
  • 'Z' as a Data Type means a 256 character ASCII String.
  • 'Z' as a macro result type (displayed as 'z') still means Boolean.
  • 'Z' as a Table value type (displayed as 'z') also still means Boolean.
  • DataFile Keywords are not allowed to be typed 'A' or 'Z'. ASCII types are saved as 'S' String.
  • ASCII/String Macro RESULTS are stored as 'S' String type. Trying to directly type a result as 'A' type gives a warning, and the type is converted to 'S'.
  • DataFiles with 'Z' Format Type Data, including in a subrecord, will be given the BLUE VER 1.2.
New Feature (Since NeXtMidas 4.1.2):
New New Data Type 'J' added to support conservation of bandwidth and storage
IMPORTANT NOTE
  • 'J' 12-bit integer is primarily intended for storage and transport of type 1000 and 2000 data.
  • 'SJ' support has limitations, as write operations need to be along byte boundaries.
  • 12-bit 'J' was adopted as Jeff Schoen contribution and is primarily tested under intended use conditions.
  • File operations, such as PLOT, FFT, NOOP, LIST2, DATALIST are all supported, though there are some minor limitations for SJ.
  • Operations such as RESULTS, CALC, TABLE entries, IF, and DO are not intended usage and, as such, have received limited testing.

Java Experts Take Note:
Duke The naming convention for the integer types differs from Java. This is for historical reasons, to keep the terminology the same across all Midas frameworks. (The names originated on VMS which used a 16-bit integer type.)

X-Midas Users Take Note:
Caveman Older versions of X-Midas do not support the Extra-Long Integer (X) type. Support for the Extra-Long Integer (X) type in NeXtMidas and Martes predated X-Midas. Also note that inside a macro, NeXtMidas uses S: (String) rather then A: (ASCII). In other words, the NeXtMidas macro uses Java strings (variable length Unicode strings) rather than fixed-length ASCII strings.

back