Recommended Posts

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?
 

Link to comment
Share on other sites

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...

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.