📄 nmeamparwin.txt
字号:
Readme for NMEAMPARWIN.EXE, 06 Aug 2003 , Dieter Gronholz gronholz@oceanwaves.de
NMEAMPARWIN sends wave parameters stored in the file MPARmmyy.* in NMEA0183 format to a serial port.
The Para file stores derived wave parameters (Hs, etc).
WaMoS creates a Para file for each month, the file name holds the month and year of creation,
e.g.: MPAR0803.CAT stores the data from August 2003, the file extension is derived from the
Rig's ID in WaMoS' setup e.g.: CAT for CATamaran, EKO for EKOfisk, a.s.o..
NMEAMPARWIN expects the directory, where the Para files are saved as the first and the
number of the COM port as the second argument, e.g.: NMEAMPARWIN D:\RADAR 1
The directory will be searched with the mask MPAR*.* for the newest Para file.
The last entry in this file represents the actual wave data.
This will be send in NMEA format to the selected COM port.
WINWAMOS.EXE executes after each wave measurement the file USER.BAT.
USER.BAT can start individual tasks, e.g.: Transferring data to a network drive.
WINWAMOS.EXE calls USER.BAT with 2 arguments (%1 and %2): the data save directory and
the last processed file name.
NMEAMPARWIN.EXE can be called in USER.BAT e.g.: NMEAMPARWIN.EXE %1 1 will execute
NMEAMPARWIN with the data save directoy in %1 and COM1 for data output.
Data format:
Serial format is 9600 Baud, 8 Data Bits, 1 Stop Bit, No Parity
The output is a proprietary NMEA sentence in the form:
$PWAM,0005.3,0006.9,0015.0,0008.1,0101.0,0006.0,0008.0,0100.0,-009.0,-009.0,-009.0,0119.0,0001.3,2000-12-05 17:20:00
The numbers in the fields are separated by commas and have this order:
Hs: 5.3 m
TM2: 6.9 s
PDir: 15 deg
TP: 8.1 s
LP: 101 m
DP1: 6 deg
TP1: 8.0 s
LP1: 100 m
DP2: -9 deg
TP2: -9.0 s
LP2: -9 m
Current Dir: 119 deg
Current Speed: 1.3 m/s
At the end the time stamp of the measurement, followed by <CR/LF>.
To decode the string, it is recommendet to separate the fields by the commas, because the
length of the fields are subject to change.
A value of -009.0 inticate a not applicable field, e.g.: if no second energy peak was found.
Normally all values are positive.
The serial port is configured for hardware handshake. If a timeout occurs the following message appears:
"Serial port H/W-handshake timeout, check connection, RTS/CTS."
In this case, use a Null-Modem cable or make the appropriate short connections in the connector:
RTS-CTS and DTR-DSR (9-pin D-connector: 7-8 and 4-6 or 4-9).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -