LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel operations

I´m writing a program in which I receive data from a GPIB and a RS485
port. I´m trying to optimize the program, to make it as fast as I can.

Therefore I have built two parallel loops in one VI, one for the RS485
and one for the GPIB. The data from both loops´re concatenated after to
save them in a file.
The operations in the RS485-loop take exactly 400 ms, the operations in
the GPIB-loop need also 400ms. If I run the VI with the two parallel
loops it takes 700ms.
Why?
Normally the VI should need only 400ms because the single loops work
with different resources and each need only 400ms because the connected
devices´re so slow - not my computer. My computer is not working to
capacity.


--
Ciao
Max


* Max Weiss/Kaiserstr. 188/76133 K
arlsruhe/0721 2030339/Germany *
* max@mvmpc9.ciw.uni-karlsruhe.de/DB8MWE *
0 Kudos
Message 1 of 4
(6,839 Views)
> The operations in the RS485-loop take exactly 400 ms, the operations in
> the GPIB-loop need also 400ms. If I run the VI with the two parallel
> loops it takes 700ms.
> Why?
> Normally the VI should need only 400ms

Hi,

I take it, you have only one processor in your computer. In this case,
execution of "parallel" processes (in general, not only LV) is cut into
"time-slices" by a scheduling scheme. So, if there is no external
processing by "intelligent interfaces" you should end up with execution
times which are roughly the sum of the individual times. In your case
you gain a little time; by eliminating some overhead I think.
P.Meyer
Message 2 of 4
(6,838 Views)

This thread is quite old, have you optimized your VI Max?

0 Kudos
Message 3 of 4
(3,219 Views)

@Jimmy.chretien wrote:

This thread is quite old, have you optimized your VI Max?


Max hasn't posted in a decade.  If you want to start a new thead with a simillar question be my guest


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(3,208 Views)