moose2004 Posted July 10, 2010 Share Posted July 10, 2010 I am getting the following error if i run a sequence with TAPI.Drop() in it and TAPI is not in call. T1002: TAPI error: not currently in call. Unable to perform action. I understand why i am getting this error but my question is why doesn't the ignore('all'), ignore('T') or ignore('T1002') work? Link to comment Share on other sites More sharing options...
AzeoTech Posted July 12, 2010 Share Posted July 12, 2010 First of all, try and avoid using ignore(). It was created for backwards compatibility with version 3 of DAQFactory and has lingered on. Use try/catch instead. That said, TAPI runs completely asynchronously from your code, so the errors can't be caught in a sequence and won't cause a sequence to stop. To actually do something on a TAPI error, you have to use the OnAlert() system event (see 5.28 in the manual). Also because its async, after TAPI.drop() will return immediately and the next statement in your script will execute without waiting for the call to actually be dropped. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.