From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-02-2019 05:14 AM
Hello everyone,
In my current project I have two producer loops and many consumers (Generate signals, logging, debugging, data transfer,...). I am using Queues to trigger the cases of my consumers and also send necessary data.
Usually only "Generate Signals" and "Logging" run continously and send messages (and graphs) to the main UI. SInce I have some trouble with memory allocation I want to include the CPU and Memory on the Debugging window in the main UI.
My strategy is to continously request these Values from my Debugging Consumer and send it to the Main UI (~1s intervall). Can this additional continous request cycle affect my Signal output or logging time, because I dont want to slow down the data aquisition in order to wait on a message from the (secondary thread) "Debugging" Consumer. My PXI device has a Quad-Core and should handle multithreading, but I am still not sure if Labview handles it the same way.
Thanks for the help
Solved! Go to Solution.
09-02-2019 06:07 AM
A 1 second interval for something that should take VERY little time should not affect any of your system.
09-02-2019 06:16 AM - edited 09-02-2019 06:16 AM
I thought as well.
Let me ask a more general question: In the case that the consumer may need more ressources (some complex calculation for example), is there a way to prioritize certain threads? I dont want my continous measurements (~15 channels) to halt because some other thread is busy.
09-02-2019 06:23 AM
If you are probably using subVIs and what not, you can mess around with the VI properties to put VIs into special thread pools and set priority. I have yet to actually need to do this and it can actually cause issues if you are not careful.
09-02-2019 06:49 AM
Thanks for the help. If the calculation really does need too much ressources I will do the aquistion and calculation seperatly.
Since it is not clear yet if I need the calculation data as feedback for my output devices I will keep my program simple.