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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...