Jump to content

Parallel programming


jvalstar

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.

Link to comment
Share on other sites

  • MVP 2023

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.

 

Link to comment
Share on other sites

  • 2 weeks later...

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.