LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time loop problem when add a parellel subvi in another time loop

I have four time loops in parellel, they work find
without any problem. However when I add a third party
Vi as a subvi in parellel inside a another time loop.
The first four time loops start working eraticly.
Is there any way I can make them work independently
time wise. There is no data transfering between any
of the loops
0 Kudos
Message 1 of 6
(3,081 Views)
You don't really give enough information to troubleshoot the problem. Some questions:
-- How long does that subVI take to complete and what is it's priority setting?
-- What does the third-party subVI do (call a dll, interact with hardware, etc.)?
-- What determines the timings of all the other loops?
-- Do they do heavy computations or just input checking?
-- What is your definition of "working erratically"?
-- What is your OS? Which version of LAbVIEW?
0 Kudos
Message 2 of 6
(3,080 Views)
Hello
The VI with the timing loop is set to cycle once every second, and all it does
Is turn on a boolean light indicator off and on every second. It has a boolean
inverter connected to the shift registers of the loop. Its priority is set to Normal.
The third party VI interacts with a spectrometer hardware. The spectrometer measures
The amount of light and transform the data collected by the spectrometer into digital information, which is then passes to LabView. LabView then compares the sample information to a reference measurement and displays the processed spectral information.
The timing loops of the main VI is manually set by me the user.
The timing loops would loose its sequence; the loops would run normal for a couple
Of cycle the
n either run fast or run slow. If I take out the third party subvi everything
Runs fine
I am using windows XP with LabView 7.1
Download All
0 Kudos
Message 3 of 6
(3,080 Views)
(I cannot test your USB subbVI.)

Your lower 2 loops inside the control vi don't have a wait, thus run at full throttle, no matter what timing you set. This could explain part of your problems. Make sure they contain a wait (same as the upper two loops).

Since you are using LabVIEW 7.1, you might want to use the timed loop, it will behave better overall (see attached example).
Message 4 of 6
(3,080 Views)
Hi
Thank you for your help. I got it to work much
better by following your advice and placing my
time loops in the third party VI last sequence
frame.

Thank's again
Message 5 of 6
(3,080 Views)


@Kaycee wrote:
I have four time loops in parellel, they work find
without any problem. However when I add a third party
Vi as a subvi in parellel inside a another time loop.
The first four time loops start working eraticly.
Is there any way I can make them work independently
time wise. There is no data transfering between any
of the loops



You should download the 7.1.1 patch (supposed to come out in a few days) to solve this problem
0 Kudos
Message 6 of 6
(3,069 Views)