Skip to main content
Feb 22, 2023 9:52 AM UTC
Solved

Simulator Driver Generate Random Boolean?

Hi,

 

Is it possible to generate a random Boolean using the Simulator Drive?
I would like to Simulate a Tag that's value will swap between True/False.

 

Thanks

 

Tim

Feb 22, 2023 5:31 PM UTC

Hey Tim,

 

To create a Random Boolean simulator tag, use User(frequency,0,0,1,0,1,1,1,0,0,0) function where frequency is ms of tag update.

 

Hope this helps.

 

Chris

2 replies

Feb 22, 2023 5:31 PM UTC

Hey Tim,

 

To create a Random Boolean simulator tag, use User(frequency,0,0,1,0,1,1,1,0,0,0) function where frequency is ms of tag update.

 

Hope this helps.

 

Chris

Feb 23, 2023 8:58 AM UTC

Works! Thanks!