julius228 Posted August 10, 2023 Share Posted August 10, 2023 I need to acquire data every 10 seconds so I set channel.timing=10. But I also need to start the acquisition at second 00 and acquire at 00,10,20, ecc. There is a way to reset the timing of acquisition and force to start timing by script at certain second? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted August 10, 2023 Share Posted August 10, 2023 Yes, you can do: channel.restart() but it is often more reliable to simply create a while loop to sample the channels when you want. If you put all your input channels in a single channel group, you can do: channel.readGroup("myGroup") where myGroup is the name of your group, and all the channels will be read once. Set the timing to 0 on those channels of course... 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.