My code:
BEGIN"dms2"
RA2SERIAL""
2SERIAL("%s[1$]\013\010",W) 1$
LOGONA
END
This is my serial input data, from TSS DMS Heave sensor actually:
:888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U
:888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U
:888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U
:888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U
:888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U
:888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U
:888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U
:888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U
:888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U
:888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U
:888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U
:888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U
:888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U
:888888.88 -2.9428e-02 -1.6708e-02 9.7694e+00 0022 -0048 -2.9952e-03 U
:888888.88 1.1484e-02 1.1408e-02 9.7815e+00 0022 -0048 -2.9877e-03 U
:888888.88 -3.4157e-03 -3.2676e-02 9.7774e+00 0022 -0048 -2.9800e-03 U
:888888.88 -7.1590e-03 5.7486e-02 9.7736e+00 0022 -0048 -2.9730e-03 U "
Then I unload data with Detransfer on the menu <data transfer><unload>, the data i got is:
D,085734,"DMS2",2008/10/15,15:51:50,0.981323,1;A,0,":888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U";0126;3566
D,085734,"DMS2",2008/10/15,15:51:50,0.990722,1;A,0,":888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U";0126;23B7
D,085734,"DMS2",2008/10/15,15:51:50,0.999755,1;A,0,":888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U";0126;A920
D,085734,"DMS2",2008/10/15,15:51:51,0.015991,1;A,0,":888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U";0126;E48B
D,085734,"DMS2",2008/10/15,15:51:51,0.034301,1;A,0,":888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U";0126;4E02
D,085734,"DMS2",2008/10/15,15:51:51,0.052490,1;A,0,":888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U";0126;A38F
D,085734,"DMS2",2008/10/15,15:51:51,0.071166,1;A,0,":888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U";0126;21BA
D,085734,"DMS2",2008/10/15,15:51:51,0.090698,1;A,0,":888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U";0126;CDD3
D,085734,"DMS2",2008/10/15,15:51:51,0.112060,1;A,0,":888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U";0126;CB62
D,085734,"DMS2",2008/10/15,15:51:51,0.130737,1;A,0,":888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U";0126;E836
D,085734,"DMS2",2008/10/15,15:51:51,0.151245,1;A,0,":888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U";0126;1971
D,085734,"DMS2",2008/10/15,15:51:51,0.171630,1;A,0,":888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U";0126;D674
D,085734,"DMS2",2008/10/15,15:51:51,0.190673,1;A,0,":888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U";0126;D86E
But I don't want the time stamps and other stuff from DT80. I want the pure string in text form:
:888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U
:888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U
:888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U
:888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U
:888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U
:888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U
:888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U
:888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U
:888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U
:888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U
:888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U
:888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U
:888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U
:888888.88 -2.9428e-02 -1.6708e-02 9.7694e+00 0022 -0048 -2.9952e-03 U
:888888.88 1.1484e-02 1.1408e-02 9.7815e+00 0022 -0048 -2.9877e-03 U
:888888.88 -3.4157e-03 -3.2676e-02 9.7774e+00 0022 -0048 -2.9800e-03 U
:888888.88 -7.1590e-03 5.7486e-02 9.7736e+00 0022 -0048 -2.9730e-03 U
Though I can use MS Excel to do some processing to get pure string out, but the end user would not like the extra step. Is there some easy switch to command DT80 not to place the job name, time stamp and check sum(?)etc on the pure string?
Thanks,
orange
My code:
````
BEGIN"dms2"
RA2SERIAL""
2SERIAL("%s[1$]\013\010",W) 1$
LOGONA
END
````
This is my serial input data, from TSS DMS Heave sensor actually:
````
:888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U
:888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U
:888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U
:888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U
:888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U
:888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U
:888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U
:888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U
:888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U
:888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U
:888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U
:888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U
:888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U
:888888.88 -2.9428e-02 -1.6708e-02 9.7694e+00 0022 -0048 -2.9952e-03 U
:888888.88 1.1484e-02 1.1408e-02 9.7815e+00 0022 -0048 -2.9877e-03 U
:888888.88 -3.4157e-03 -3.2676e-02 9.7774e+00 0022 -0048 -2.9800e-03 U
:888888.88 -7.1590e-03 5.7486e-02 9.7736e+00 0022 -0048 -2.9730e-03 U "
````
Then I unload data with Detransfer on the menu <data transfer><unload>, the data i got is:
````
D,085734,"DMS2",2008/10/15,15:51:50,0.981323,1;A,0,":888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U";0126;3566
D,085734,"DMS2",2008/10/15,15:51:50,0.990722,1;A,0,":888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U";0126;23B7
D,085734,"DMS2",2008/10/15,15:51:50,0.999755,1;A,0,":888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U";0126;A920
D,085734,"DMS2",2008/10/15,15:51:51,0.015991,1;A,0,":888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U";0126;E48B
D,085734,"DMS2",2008/10/15,15:51:51,0.034301,1;A,0,":888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U";0126;4E02
D,085734,"DMS2",2008/10/15,15:51:51,0.052490,1;A,0,":888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U";0126;A38F
D,085734,"DMS2",2008/10/15,15:51:51,0.071166,1;A,0,":888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U";0126;21BA
D,085734,"DMS2",2008/10/15,15:51:51,0.090698,1;A,0,":888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U";0126;CDD3
D,085734,"DMS2",2008/10/15,15:51:51,0.112060,1;A,0,":888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U";0126;CB62
D,085734,"DMS2",2008/10/15,15:51:51,0.130737,1;A,0,":888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U";0126;E836
D,085734,"DMS2",2008/10/15,15:51:51,0.151245,1;A,0,":888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U";0126;1971
D,085734,"DMS2",2008/10/15,15:51:51,0.171630,1;A,0,":888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U";0126;D674
D,085734,"DMS2",2008/10/15,15:51:51,0.190673,1;A,0,":888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U";0126;D86E
````
But I don't want the time stamps and other stuff from DT80. I want the pure string in text form:
````
:888888.88 -2.3425e-03 -3.8412e-02 9.7798e+00 0022 -0049 -3.0993e-03 U
:888888.88 -6.3690e-03 -1.0189e-02 9.7755e+00 0022 -0049 -3.0897e-03 U
:888888.88 -1.1278e-02 -1.0463e-02 9.7720e+00 0022 -0049 -3.0843e-03 U
:888888.88 -1.3892e-02 3.6146e-02 9.7744e+00 0022 -0049 -3.0739e-03 U
:888888.88 1.6186e-02 -2.7963e-02 9.7847e+00 0022 -0049 -3.0677e-03 U
:888888.88 2.0542e-02 2.2410e-04 9.7858e+00 0022 -0049 -3.0541e-03 U
:888888.88 1.3928e-02 -3.0826e-02 9.7826e+00 0022 -0049 -3.0419e-03 U
:888888.88 -1.5672e-02 3.6091e-02 9.7704e+00 0022 -0049 -3.0270e-03 U
:888888.88 -7.4767e-03 -3.0833e-02 9.7770e+00 0022 -0049 -3.0203e-03 U
:888888.88 2.6452e-02 2.2941e-03 9.7858e+00 0022 -0049 -3.0200e-03 U
:888888.88 1.0900e-02 2.9101e-03 9.7823e+00 0022 -0048 -3.0114e-03 U
:888888.88 -1.2284e-02 -2.0587e-02 9.7758e+00 0022 -0049 -3.0069e-03 U
:888888.88 5.5236e-03 3.2948e-02 9.7787e+00 0022 -0048 -3.0024e-03 U
:888888.88 -2.9428e-02 -1.6708e-02 9.7694e+00 0022 -0048 -2.9952e-03 U
:888888.88 1.1484e-02 1.1408e-02 9.7815e+00 0022 -0048 -2.9877e-03 U
:888888.88 -3.4157e-03 -3.2676e-02 9.7774e+00 0022 -0048 -2.9800e-03 U
:888888.88 -7.1590e-03 5.7486e-02 9.7736e+00 0022 -0048 -2.9730e-03 U
````
Though I can use MS Excel to do some processing to get pure string out, but the end user would not like the extra step. Is there some easy switch to command DT80 not to place the job name, time stamp and check sum(?)etc on the pure string?
Thanks,
orange