LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

optimize request time of a rs232

Hello,
I got a problem! I receive with my RS232 (1200N81) a signal and than i have to answer it between 5-20ms. But the best time which i get are 40ms. Who can me Help? Used is a PC Pentium3 600Mhz with Windows2000, and a NI-PXI-8422.
Greetings Michael
0 Kudos
Message 1 of 3
(2,675 Views)
While I never used this function (InstallComCallback()) you might want to try it (if you haven't already).
I am not quite sure about its response time, but if you are not getting it to work correctly, (which would not surprise me too much in view of the delay you want), You can try to launch all the RS232 methods in a separate thread, in where you can implement a loop to pool continuously the com port.

Hope that helps,
Best Regards,
Farid.
0 Kudos
Message 2 of 3
(2,675 Views)
Hi,

Also keep in mind that Windows 2000 is not a real time OS. This means that you cannot guarantee that you'll get the required response time 100% of the time. If anything else is going on in the system (loading word, for example) the response time will most likely be affected.

DiegoF
National Instruments.
0 Kudos
Message 3 of 3
(2,675 Views)