Jump to content

How many parallel while loops should I use?


Recommended Posts

Hello,

 

my first post here, so I hope this fits.

 

I´m using the NI structure: "continuous measurement and logging" to build a programm t run a test bench.

There are 5 parallel loops in this structure.

 

Now I need to add a few features to the programm (some timers, cyclic test bench parameters, PID controller, time controlled logging ...) and I dont know where to build them.

I added some features (that just run one time) in the UI message loop but for continous running code that doas not work.

 

Now I would put the feature SubVi´s in the Data Display Loop to not slowing down the acquisition or the looging loop.

 

Is this the right way to go or should i build more parallel While loops to run the features.

 

In general: Is it better to use a small number of parallel while loops with much stuff that happens inside or is it better to use lots of parrallel loops with just one function per loop?

 

If this is important: The programm later should work on weak intel atom embedded pc´s.

 

 

 

Thanks in advance and kind regards

Lichter

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.