cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Simulator Driver Generate Random Boolean?

TW_10347398
4-Participant

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

Works! Thanks!

Announcements


Top Tags