Jump to content
jvalstar

Parallel programming

Recommended Posts

Hello,

I'm looking for a solution to run 1 function multiple times at the same time with different values. 
I've already made a function with local tags, function in tags and function out tags.
Inside the function is a small calculation and a short delay, divided in steps.

I think the timer is the biggest problem, how can I solve this? How can I make a timer a local tag?

Thank you in advance.

Share this post


Link to post
Share on other sites

How long is your short delay?

I'd look into the system tags and roll my own timer.  

For a longer time, you could use Frequency.Frequency 100 (ms) and increment a counter.

For more precise time, create some logic that takes a snapshot of the value of General.Milliseconds Counter, add your preset to it, and then wait until it's current value exceeds the sum.

That's just what comes to mind.

Joe T.

 

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

×