Skip to main content
5-Regular Member
February 22, 2023
Solved

Simulator Driver Generate Random Boolean?

  • February 22, 2023
  • 1 reply
  • 1531 views

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

Best answer by cmaccormack

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

1 reply

7-Bedrock
February 22, 2023

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

5-Regular Member
February 23, 2023

Works! Thanks!