08-31-2009 09:15 AM
Hi,
There is a 2D-Array.I need create multithreading for processing it row by row.Is there any way can do that?If can,please give me a example vi.Thanks a lot!
08-31-2009 09:23 AM
What version of LabVIEW do you have? LabVIEW 2009 has a new feature on For Loops that allow you to have the iterations run in parallel.
What processing do you want to do on each row? You could use several index array functions to get a particular row, and pass the data off into queues and have parallel while loops operating on the elements that come out of the queues.
08-31-2009 09:46 AM
hi,Ravens Fan
My labview version is 8.5.My Application controls equipments.The data should process one by one in the same row, but the data can process at the same time in different rows.
08-31-2009 10:34 AM
08-31-2009 08:14 PM
08-31-2009 08:24 PM
It will handle any number of rows.
I don't see any way you can handle an unspecified number of threads. At some point you are going to have to determine how many different rows you want to be processing at the same time. There is a practical limit, and that limit isn't that high of a number. Once you determine how many to process at the same time, then you just decimate your array of whatever size it is among those X number of processes.
09-01-2009 03:24 AM
Hi,Ravens Fan
I create a reentrant vi for processing which is invoked dynamiclly by main vi in the example.Is it multithreading ?
09-01-2009 05:00 AM
09-01-2009 05:13 AM
Hi,Baji
I think the main vi just invokes the process vi and doesnt wait until it done.Only the time running is different each other.
09-01-2009 05:19 AM