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

Simulator Driver Generate Random Boolean?

  • February 22, 2023
  • 2 replies
  • 1561 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

2 replies

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

TW_10347398
5-Regular Member
February 23, 2023

Works! Thanks!