0

Procedure to pull recorded data from a 1620A DewK??

Does anyone have a procedure to do this and write it to a simple csv file??

Be handy for upcoming audits 

5 comments

Date Votes
0
Avatar
James Steeds

Logware does what you need - do you not have this?  We have moved away from using our 1620A's but I thought id give what you ask a go.

I can query the logger, and download the recorded data in binary format to a file.  I don't know where the structure of the binary data is defined - with this maybe this can be finished.

Let me know if you manage to do the last step of converting the data...

Here is what I have so far:

 

Airbus                                                      MET/CAL Procedure
=============================================================================
INSTRUMENT:            Dewk comms
DATE:                  2015-06-17 16:45:51
AUTHOR:                James Steeds
REVISION:
ADJUSTMENT THRESHOLD:  70%
NUMBER OF TESTS:       1
NUMBER OF LINES:       125
=============================================================================
 STEP    FSC    RANGE NOMINAL        TOLERANCE     MOD1        MOD2  3  4 CON

  1.001  HEAD         Port Setup - Select COM port.
  1.002  MATH         id = lbNew("COM Port List")
  1.003  MATH         txt="Choose the COM port to which the UUT is connected:"
  1.004  MATH         lbText(id, txt) ; lbAddList(id, ComList())
  1.005  MATH         lbConf(id, "+selreq,-sel")
  1.006  MATH         op = lbShow(id)
  1.007  MATH         port = lbGetSel(id, 1)
  1.008  VSET         PORT = [v port]
  1.009  PORT         [P38400,N,8,1,N][OTERM CRLF][term LF]


  1.010  RSLT         =------------
  1.011  PORT         *IDN?[I$]
  1.012  RSLT         =[mem2]
  1.013  RSLT         =------------

  1.014  PORT         UNIT:TEMP?[I$]
  1.015  RSLT         =Unit: [mem2]
  1.016  RSLT         =------------

  1.017  PORT         *OPT?[I$]
  1.018  RSLT         =[mem2]

  1.019  RSLT         =------------
  1.020  PORT         SENS1:STAT?[I$]
  1.021  RSLT         =[mem2]
  1.022  PORT         CAL1:MOD?[I$]
  1.023  RSLT         =[mem2]
  1.024  PORT         CAL1:SNUM?[I$]
  1.025  RSLT         =[mem2]
  1.026  PORT         SENS1:IDEN?[I$]
  1.027  RSLT         =[mem2]
  1.028  PORT         ALAR:TEMP1:LOW:ENAB?[I$]
  1.029  RSLT         =[mem2]
  1.030  PORT         ALAR:TEMP1:LOW:LIM?[I$]
  1.031  RSLT         =[mem2]
  1.032  PORT         ALAR:TEMP1:UPP:ENAB?[I$]
  1.033  RSLT         =[mem2]
  1.034  PORT         ALAR:TEMP1:UPP:LIM?[I$]
  1.035  RSLT         =[mem2]
  1.036  PORT         ALAR:RHUM1:LOW:ENAB?[I$]
  1.037  RSLT         =[mem2]
  1.038  PORT         ALAR:RHUM1:LOW:LIM?[I$]
  1.039  RSLT         =[mem2]
  1.040  PORT         ALAR:RHUM1:UPP:ENAB?[I$]
  1.041  RSLT         =[mem2]
  1.042  PORT         ALAR:RHUM1:UPP:LIM?[I$]
  1.043  RSLT         =[mem2]


  1.044  RSLT         =------------
  1.045  PORT         SENS2:STAT?[I$]
  1.046  RSLT         =[mem2]
  1.047  PORT         CAL2:MOD?[I$]
  1.048  RSLT         =[mem2]
  1.049  PORT         CAL2:SNUM?[I$]
  1.050  RSLT         =[mem2]
  1.051  PORT         SENS2:IDEN?[I$]
  1.052  RSLT         =[mem2]
  1.053  PORT         ALAR:TEMP2:LOW:ENAB?[I$]
  1.054  RSLT         =[mem2]
  1.055  PORT         ALAR:TEMP2:LOW:LIM?[I$]
  1.056  RSLT         =[mem2]
  1.057  PORT         ALAR:TEMP2:UPP:ENAB?[I$]
  1.058  RSLT         =[mem2]
  1.059  PORT         ALAR:TEMP2:UPP:LIM?[I$]
  1.060  RSLT         =[mem2]
  1.061  PORT         ALAR:RHUM2:LOW:ENAB?[I$]
  1.062  RSLT         =[mem2]
  1.063  PORT         ALAR:RHUM2:LOW:LIM?[I$]
  1.064  RSLT         =[mem2]
  1.065  PORT         ALAR:RHUM2:UPP:ENAB?[I$]
  1.066  RSLT         =[mem2]
  1.067  PORT         ALAR:RHUM2:UPP:LIM?[I$]
  1.068  RSLT         =[mem2]
  1.069  RSLT         =------------

 


  1.070  PORT         DAT:REC:OPEN 2015,1,17,0,0,0,2015,6,17,0,0,2

  1.071  WAIT         -t 2
  1.072  PORT         SYST:ERR?[I$]
  1.073  RSLT         =Error state: [mem2]

  1.074  PORT         DAT:REC:OPEN?[I$]
  1.075  RSLT         =Bytes in dataset: [mem2]


# number of groups to download = mem2/256
  1.076  MATH         groups = int(mem2 / 256)
  1.077  MATH         remainder = mem2 - (groups * 256)
  1.078  DISP

  1.079  MATH         group = 1
  1.080  DO
  1.081  PORT         DAT:REC:READ? 256[IB 256 300 >> c:\\test.txt]
  1.082  MATH         progress = crnd(100 * group / groups, 0.1)
  1.083  HEAD         Progess: [v progress] %
  1.084  MATH         group = group + 1
  1.085  UNTIL        group > groups

  1.086  MATH         m[1] = remainder
  1.087  PORT         DAT:REC:READ? [m1][IB 256 300 >> c:\\test.txt]

 

 

 

 

0
Avatar
Nathan Ryder

Thanks for that......We have just aquired our DewK and I wasnt aware of the logware software until yesterday I am in the process of installing that but hitting some issues with it as well......Have emailed software support for help 

 

Will give your procedure a go when I get a chance 

 

Thanks

0
Avatar
James Smith

One issue to be aware of when dealing with DEWK is that its processor is not very fast. If you try reading via the ethernet, use additional timing between sending the read command and asking its response. A few hundred milliseconds should suffice, but we with 1 second. If you do not, the DEWK will respond in unusual manners. Such as reversing the sensors and giving broken responses. 

1
Avatar
Dimitrios Pappas

Did you manage to find the format of the binary data?

-1
Avatar
James Steeds

DATa:RECord:READ? []
Reads a block of data from memory.
Example: DAT:REC:READ?
Response: ,#11
The parameter is optional and defines the group size (number of bytes)
to read from memory. If not specified, 256 bytes is used as the default group
size. The response to this command consists of the number of bytes of data in
this response (), followed by a marker (#11), followed by a string of bi-
nary data (). The number of bytes in the portion of
the response may be anywhere between 1 and bytes (256 if is
not specified). Use the DATa:RECord:OPEN? command to determine the exact
number of bytes in the open set of data.

https://dam-assets.fluke.com/s3fs-public/1620A___ugeng0000.pdf

Please sign in to leave a comment.