How do I create a Look-up table and .map file?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by erasco on Tue, 03/23/2010 - 22:22 

How do I go about creating a *.map file? I need a two-column look up table. I have tried Excel, wordpad and such but cannot find a 'save-as' .map option. Please help! Thanks, Eric

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by Anders89 on Tue, 03/23/2010 - 22:39.

     

    The file suffix does not matter. You can use .csv (Excel comma separated value), .txt, .dat, .map, or .foobar

    • The numbers in the two columns may be separated by spaces(' '), tabs('\t'), or commas(',').
    • The first column values must be all increasing or decreasing in consecutive values.
    • You may have more than one output column.
    • Values don't need to be evenly spaced.
    • Here is a sample table:
      ; input column output column
      1 2
      1.5 10
      5 12
      9 7
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by abida86 on Fri, 03/26/2010 - 23:35.

    To use a map block in vissim we need map files. Can u please explain how to create a .map file?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by Richd on Sat, 03/27/2010 - 01:28.

    Here, follow these steps:

    1. start VisSim
    2. place map block in VisSim Workspace
    3. right click on map block to bring up Map Properties dialog and click Browse...
    4. notepad will start with an empty file. Type in 2 columns of numbers that represent your table as described above.
    5. choose File > Save As... and save some place like 'c:\myVisSimFiles\myFunkyLookupTable.txt'
    6. Back in Map Properties dialog click Select File...
    7. In Files of type drop down, select ASCII Data(*.txt) and browse to your file 'c:\myVisSimFiles\myFunkyLookupTable.txt'
    8. Click Open
    9. Click OK
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by a_a on Sat, 03/27/2010 - 01:01.

    If you go to in the menu: Diagram > Examples > Blocks > Nonlinear, there are a few map examples. You can edit a .map file using Notepad and save the file as .txt and then rename it as .map in Windows

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by erasco on Tue, 03/30/2010 - 20:53.

    Thank you for the very useful info. Problem solved.