Sign in to follow this  
matthewx

Daqconnect Force Update

Recommended Posts

DAQconnect only updates the remote computer as new data arrives, is there any method to force update even if there is no value changes? as some of our data value won't change in few hours.

 

Thanks.

Share this post


Link to post
Share on other sites

Just update the channel with the same value.  So, create a sequence like this:

 

while(1)

   myChannel.addValue(insertTime(myChannel[0], systime(), 0))

   delay(1)

endwhile

 

That will cause myChannel to update with the last reading of myChannel every second, which will then get sent across the wire to the other computer.  Add more lines in the loop for each desired channel, and adjust the delay() as needed. .

Share this post


Link to post
Share on other sites

I tried

While(1)

Bay4.temperature.addValue(insertTime(Bay4.temperature[0], systime(),0))

delay(1)

endwhile

But it didn't work, can you please advice?

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this