LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time management between objects

hello,

 

I notice a behavior with class containing wait fonction i don't expect

 

ie: i have to objects child of the same parent , both contain a wait ( simulating a wait for a device to respond  for exemple)

 

when putting calcul one after other it is normale to add times

 

but when both object are distinct i don't understand why times are added too ...

 

that let think that pause fonction are dependants ...

 

here a vi to test , the good one is "test para 2"

 

 

Best regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 6
(2,923 Views)

Make it reentrant?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(2,917 Views)

Hello,

 

yes it works but i don't understand why they share a common timer without make it reentrant ...

 

 

do you mean its a normal behavior ?

 

may be i have to create a timer object ?

 

Regards

 

Tinnitus

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 3 of 6
(2,906 Views)

In fact it works for the little example but not in the big project where class1 is an element of other class ...

 

 

Regards

 

Tinnitus

 

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 6
(2,901 Views)

The behaviour I described for non-re-entrant VIs I posted in my Action Engine Nugget still apply in LVOOP.

 

So I would say this is expected behaviour.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(2,901 Views)

Hello Ben,

 

Thanks for the link,

 

The idea is the same except that AE is unique, with class we can have severals instances

but idea is the same

 

I agree with the property of non reentrant function and that a functionality i would preserve.( preventing race condition)

and making calc method reentrant break that ( the alocation of  different memory space is not enable with class method )

so two calc are done in 100ms with two differents object  but if i connect the same object twice in the loop this time while expecting a 200ms 

(due to the protection ) it takes 100ms and that is not safe even if coding such a thing could not exist

 

To simplify

 

when 5 persons  run together during 10min the trainy take 10min                        // parallel tasks

if they  run a relay the total must be 50 min                                                       // serial tasks

and if we ask a person is to run  5 times 10 min he cannot do it in 10 min            // parrallel tasks serialized due to protection

 

Is there a way to obtain that

 

i will perform others tests tomorow ...

 

 

 

Regards

 

Tinnitus

 

   

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 6 of 6
(2,882 Views)