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.
05-12-2009 06:14 AM
Hi,
How to use multithreading in LabVIEW?
Is the attached diagram works in multithread?! what's lack? because when I tested it, it works sequentially
05-12-2009 06:20 AM - edited 05-12-2009 06:22 AM
Sadok wrote:Is the attached diagram works in multithread?! what's lack? because when I tested it, it works sequentially
Remove all the while loops and sequence structure. It will work as you expected.
05-12-2009 06:32 AM
05-12-2009 06:43 AM
05-12-2009 07:20 AM
Perhaps your DAQ device does not accept parallel access. If your loops were doing things which did not require shared access to a resource outside the CPU, they would probably mutlithread.
Lynn
05-12-2009 07:24 AM
05-12-2009 08:30 AM
Rather than letting each loop at the port seperately like you have done.
I would sugget you look at my Action Engine Nugget where I used the challenge of writting to a DIO port from multiple threads as illustrated here.
By use the AE approach the semaphore "comes along for the ride".
Have fun!
Ben