Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 speed on CVI5.5 10 times less than in CVI4.0.0

When I use CVI5.5 for create an application for reading from RS232,I see average time per byte about 60
milliseconds. This is very slow.
Then I run this project under the CVI4.0 (NOT standalone)and see average
time about 5.0 milli seconds.
The application is very simple - only reading bytes from com-port and put it to Standart I/O and checking
keyboard input.
Disabling Standart I/O output can't solve problem.
0 Kudos
Message 1 of 4
(3,673 Views)
Such a great difference looks strange to me: I never saw those figures.
If you run a project in the 5.5 IDE environment, the debug features are all active, unless you set in the project window Build >> Configuration >> Release.
Up to 5.0 version the corresponding option was in Options >> Run options menu, and could be set to 'None'.
Check in your project if this option is turned on or off (remember that when you compile a project, it is automatically set to 'None'): such a different configuration (5.5 WITH debugging and 4.0 without) could perhaps explain the graeat difference in performance.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,673 Views)
I find a solution.
There is big difference in CVI5.5 and
4.0 in speed of execution "ProcessSystemEvents" and "KeyHit" functions.
0 Kudos
Message 3 of 4
(3,673 Views)
Hi... I am trying to determine the rate of data transfer over my serial ports. I wonder if CVI has any inherent functions that can help me to do it? Plus, i have calucated based on the baud rate used as well as the number of bits of data i would sent, some commands will only take 0.4 ms, but i think CVI cannot return a time anything less than 1 ms.. am i correct?

thanks
0 Kudos
Message 4 of 4
(3,673 Views)