YamidP Posted May 7, 2020 Share Posted May 7, 2020 Hello everyone I need to record the errors that DAQfactory reports in a plain text or file where an error history is displayed Does daqfactory generate an error log file? but how can I create that file? Thank you Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted May 7, 2020 Share Posted May 7, 2020 DAQFactory doesn't generate the file, but you can use the system event "OnAlert" do capture these messages and do whatever you want with them. This event and the other system events are in 5.28 of the user's guide. Quote Link to comment Share on other sites More sharing options...
KenG Posted June 6, 2023 Share Posted June 6, 2023 I'm having trouble creating an Onalert sequence per 5.28. I created a script called OnChar. Inside I put ? "OnChar Event " + char. This works I created a sequence named Onalert . Inside I put ? "Alert was captured". This does nothing when I generate errors such as disconnecting the communications line. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted June 6, 2023 Share Posted June 6, 2023 I'm not sure. It works fine for me. See attached (done in 19.1). Note that the sample opens COM1 and attempts to communicate over Modbus. Open in safe mode if you actually have something plugged into Com1. Also, you can run "badsequence" which will also generate an alert. OnAlert just prints "Alert" to the Command/Alert window and I see "Alert" appearing after every alert. onAlert.ctl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.