32
922-20007052/1.2
Tip
You can use the M3 Sonar API Testing software to send commands to different ports.
Click the
Configuration
tab, then enter the port into the
Commands Port #
field.
Automatically enabling the M3 Sonar API at
bootup
If you want the M3 Sonar API to start automatically when your computer boots up,
you can create a simple batch file.
Prerequisites
• Your Sonar Head must be powered on.
• Your computer must be on the same network as the Sonar Head.
• You must have discovered your Sonar Head using the M3 software.
Procedure
1
Create a batch file.
a
In the bottom-left corner of your desktop, type “notepad” into the Windows
search box, then press
Enter
.
Observe that a new text document opens.
b
Enter the following line into the text document.
start c:\kml\m3_v0240\bin\m3.exe /api /no_dm
Note
Use the
/no_dm
switch for imaging applications only. Do not use the
/no_dm
switch for profiling applications.
c
Select
File
→
Save
.
d
Type “M3Start.bat” into the
File name
field.
e
Select
All Files
from the
Save as type
drop-down list.
Note
Leave the
Encoding
setting as ANSI.
f
Click
Save
.
g
Close the text document.
2
Create a shortcut to the batch file.
M3 Sonar API Instruction Manual