03-20-2015 10:12 AM
I am tring to read form 10 different comm ports at the same time and record the data do i have parallelism done right
03-20-2015 10:56 AM - edited 03-20-2015 10:56 AM
Parallelism in a for loop would be to spread the reads across the different cores on your processor. You probably don't need this here. Also, no need to wire the "N" terminal on the second for loop. Just autoindex your VISA array.
03-20-2015 11:21 AM - edited 03-20-2015 11:24 AM
I am on the road and can not open your VI
But I assume you do not wish to read from each port on at a time in a loop.
1 then 2 then 3 ... then 10 repeat
On a system where I have 32 comports to read, I created a re-entrant VI to read and process one comport and then using the VI server, I spin up 32 copies of that VI passing in the comport to monitor.
03-24-2015 08:54 AM
I don't have 2014 installed but an alternative to VI server and asynconous reentrant VIs, is to use the for loop parallelism. Right click the for loop and enable parallelism, and set it to 10. The pass in an array of the 10 COM ports you want to read. Attached is a quick example which is not complete.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord