Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.

Log in or register to post/reply in the forum.

What "fieldname" I should use to retrive the value of "Maximum" in a Datatable?

Specto Technology Jun 26, 2021 08:17 PM

I have the below Datatable in one CR800

DataTable (Leq_60m,1,-1)
    DataInterval (0,60,Min,10)
   Maximum (1,Reading,IEEE4,0,True)
   Sample (1,Reading,IEEE4)

I want to get the values of both "Reading" and "Maximun Reading" and the timestamp of "Maximum Reading using "getvariables" from a second CR800.

I can retrieve "Reading" using "Reading" as fieldname but I tried "SPL"," Maxmum:, "Maximum.SPL" and "SPL.Maximum" as fieldname for the Maximum reading without success.

Thank you in advance for anyone that can help.


nsw Jun 28, 2021 06:55 AM

The format of referring to fields in a table is "TableName.FieldName(FieldNameIndex, RecordssBack)". Have a search in CRBasic Help for TableName.FieldName for more details.

The FieldName is the name of the column and normally you see these when colelcting data from the table in the Header. But in general it follows the following format for maximum instruction "Reading_MAX".

Log in or register to post/reply in the forum.