LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call APIS from com dll which run performance counters of less than 1ms using CVI and still get the timer resolution of less than 1 ms

Solved!
Go to solution

Hi,

 

   I have created a com dll in VC++  which uses performance counters/timer of less than a millisecond.

   This is helpful when sending a message at a very high speed. (say at 10us or so)

   This is done by dll.

 

   When I use CVI to create a user interface, this dll runs at a fixed rate of 1ms.

   This slows down the application.

 

   I tried using the same dlls with VC++ host and it performs well.

 

   I need to check the registry setting to see if the useDefaultTimer is set to FALSE or TRUE.

   (I am not near the development PC) However, by default it should be FALSE and I didnot fidle with that.

 

   Kinldy post any suggestion you may have.

   Thanks!

 

   

0 Kudos
Message 1 of 2
(3,019 Views)
Solution
Accepted by topic author joshib

This problem is now resolved for me.

 Just made the thread priority highest in the dll.

 

Thanks if you had though about the answer.

0 Kudos
Message 2 of 2
(3,002 Views)