Hello,
I have an 'If' statement calling my data table conditionally. My table has a defined table size and no 'DataInterval'.
I would like for each condition to store the data to a specific record number.
I looked at 'DataEvent' but it doesn't look like it will work.
Is there an instruction built to do this?
bKlippert,
You do not have control over the record number assigned in final storage. For example, you can not conditionally store event 1 data as "record 1", event 2 as "record 2" and repeat. Maybe the data should be kept in an array in the Public table or written to a file using the FileOpen/Read/Write commands?
Implement your own table number counter and sample it as the 1st item in your data table. Increment the number after the table is written like this:
If table.output(1,1) = True then MyRecord = MyRecord + 1.
(Substitute your table name for the word table.)
When you do your reports, skip the logger supplied table number and use yours.