DAQconnect and DF sequence variables

Recommended Posts


Is the best way to make DF Sequence variables available to DAQconnect : -

1. Create a new channel (named e.g."LevelStatusDAQconn") using a dummy modbus device and then ticking the DAQconn box and filling out the  DCHst and DCintvl columns

2. In the applicable DF Sequence copy the actual variable to the channel "LevelStatusDAQconn" variable (i.e. LevelStatusDAQconn = LevelStatus)

Doing the above worked fine but I just wanted to check that this is the best way?

Link to comment
Share on other sites

I personally use daqconnect.addValue() for everything.  It gives me more control over exactly what data gets sent.  And in your case avoids a dummy channel.

I also use daqconnect.init() instead of using the menu, as it is more obvious what the data source is set to.  It also allows for programmatic change of the data source.

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.

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.