キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

CPU Optimisation

Clicking on close program and have to wait 20 second??? I don't like it.

Create a structure that fire event or Queue. This will improve the user feel when use the application.

Benoit

0 件の賞賛
メッセージ11/14
1,247件の閲覧回数

"wait until ms multiple" Is a wonderful method to ensure all of those loops wake up at the same time and fight over which one gets the CPU (he says sarcastically).

 

The only time that function should be used is if each instance has a different value each of which are a multiple of different prime numbers.

 

スポイラ
It works for the cicadas スマイリー ウインク

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 件の賞賛
メッセージ12/14
1,229件の閲覧回数

Heh.   I've gotten several quizzical looks during informal code reviews when people see my msec wait constants set for values like 201, 257, 993, etc.   I don't generally go to the trouble of making them *formally* prime, I just arbitrarily offset a little bit from one of the nice round numbers that people might normally be inclined to use.

 

I also used to do some special stuff with loops that used a combo of "ms multiple" waits and regular waits to set various loops up at the same interval but different phasing for wake times.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
メッセージ13/14
1,220件の閲覧回数

@Kevin_Price wrote:

Heh.   I've gotten several quizzical looks during informal code reviews when people see my msec wait constants set for values like 201, 257, 993, etc.   I don't generally go to the trouble of making them *formally* prime, I just arbitrarily offset a little bit from one of the nice round numbers that people might normally be inclined to use.

 

I also used to do some special stuff with loops that used a combo of "ms multiple" waits and regular waits to set various loops up at the same interval but different phasing for wake times.

 

 

-Kevin P


Nice!

 

Back when we only had one CPU and 40MHz clock rates... it made big difference.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 件の賞賛
メッセージ14/14
1,217件の閲覧回数