Hello Barrie,
Instead usin an "on-cycle" object use a "until break" structure with calling
sleep function of kernel32.dll in it.
This causes VEE to free all CPU resources for the specified period.
header: void Sleep(long dwMilliseconds);
Regards
Jens
--------------------------------------------
Dipl.-Ing. Jens Fischer
SOMATEC - Software fur Maschinensteuerungen
und Automatisierungstechnik GbR
Jagdweg 7a
D-82041 Deisenhofen
Tel.: (089) 613 984 93
Fax: (089) 613 981 23
E-mail: Fischer@somatec.de
Homepage: http://www.somatec.com
--------------------------------------------
> -----Ursprungliche Nachricht-----
> Von: owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com]Im
> Auftrag von Barrie Walden
> Gesendet: Donnerstag, 21. Februar 2002 01:25
> An: Agilent Reflector
> Betreff: vrf CPU cycles
>
>
> Hi folks,
>
> I have an application running on a compact PCI machine having
> ventilation problems. One of the things I thought might help was to
> reduce the CPU workload. When I checked the CPU usage I
> discovered that
> my Vee application maintains a 100% load - this is due to a
> continuously
> running "until break" loop structure. I decided to switch to a one
> second "on-cycle" loop; this dropped the CPU load to about 10%.
> Unfortunately, 1 second turned out to be too slow so I tried some
> smaller values. The results were interesting - it appears that there
> are some "preferred" values such as .25 but in general, small numbers
> require a lot of CPU time.
>
> Does anybody have a method for looping within a Vee application which
> allows reduced CPU workload? There are ActiveX "timer event" objects
> which somehow appear to avoid CPU loading but I assume using one of
> these would require my application to contain a normal Vee
> loop to watch
> for an event flag or equal.
>
> Barrie
> WHOI
>
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo. To send messages to
> this maillist, just email to "vrf@lvld.agilent.com".
> Subscriptions and
> unsubscriptions are done through the address
> "vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------
>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Instead usin an "on-cycle" object use a "until break" structure with calling
sleep function of kernel32.dll in it.
This causes VEE to free all CPU resources for the specified period.
header: void Sleep(long dwMilliseconds);
Regards
Jens
--------------------------------------------
Dipl.-Ing. Jens Fischer
SOMATEC - Software fur Maschinensteuerungen
und Automatisierungstechnik GbR
Jagdweg 7a
D-82041 Deisenhofen
Tel.: (089) 613 984 93
Fax: (089) 613 981 23
E-mail: Fischer@somatec.de
Homepage: http://www.somatec.com
--------------------------------------------
> -----Ursprungliche Nachricht-----
> Von: owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com]Im
> Auftrag von Barrie Walden
> Gesendet: Donnerstag, 21. Februar 2002 01:25
> An: Agilent Reflector
> Betreff: vrf CPU cycles
>
>
> Hi folks,
>
> I have an application running on a compact PCI machine having
> ventilation problems. One of the things I thought might help was to
> reduce the CPU workload. When I checked the CPU usage I
> discovered that
> my Vee application maintains a 100% load - this is due to a
> continuously
> running "until break" loop structure. I decided to switch to a one
> second "on-cycle" loop; this dropped the CPU load to about 10%.
> Unfortunately, 1 second turned out to be too slow so I tried some
> smaller values. The results were interesting - it appears that there
> are some "preferred" values such as .25 but in general, small numbers
> require a lot of CPU time.
>
> Does anybody have a method for looping within a Vee application which
> allows reduced CPU workload? There are ActiveX "timer event" objects
> which somehow appear to avoid CPU loading but I assume using one of
> these would require my application to contain a normal Vee
> loop to watch
> for an event flag or equal.
>
> Barrie
> WHOI
>
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo. To send messages to
> this maillist, just email to "vrf@lvld.agilent.com".
> Subscriptions and
> unsubscriptions are done through the address
> "vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------
>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------