Hi Dean, Welcome to the forum.
Unfortunately, all the methods for doing this like the "PISDK.IPICalculation.FirstTrue" method have not been implemented in the current version of PISDK. So OSI have thought about and put the empty method there so they can introduce in the future.
You could use the PISDK.IPICalculation.Calculate method to check when the values of the Digital tags are both "On".
Code:
Dim Calc As PISDK.IPICalculation = Server ' Server is a PISDK.Server object
Dim PIVals As PISDK.PIValues = Calc.Calculate("*", "*-1d", "('Switch1' = ""High"" And 'Switch2'=""High"")", stRecordedValues, "")
But you will still need to check for when the value is 1 (aka True) and the first occurence would be the timestamp you want. Alternatively, you could use a sample interval to find when it was true.
Principal Consultant
Real-Time Data Management @ Wipro Technologies