On Mon, 21 Feb 2000 17:05:24 GMT, gnj@ffa.se wrote:
>
>> > The problem is that whenever my VISA-drivers are
>> > called, they will effectively kill the
>> > performance of the system.
>
>> There is a known bug in the NI-VISA 2.01 driver for Win32 that causes
>> excessive CPU usage on serial I/O. The new NI-VISA 2.5 driver is in
>> beta and should fix the problem you have seen. The particular problem
>> was with serial reads, which although they were async, they polled
>> rather than sleeping when data was not available. If you are willing
>> to try the beta, go to ftp.ni.com/support/visa/drivers/win32 and let
>me
>> know whether that works better for you. Sorry for the inconvenience,
>> but we are dedicated to continuously improving our VISA drivers - and
>
>
>Thank's for your fast reply.
>
>I've tried to install the NI-VISA 2.5 beta, but I'm not sure I was
>fully successful. I still got a "National Instrument VISA" in the
>Install/Uninstall (won't run an uninstall shield.
>
>How do I find out what version of VISA that is installed?
>
>So far I have seen no improvement in performance at all with the new
>install. Putting a "syncVisa=True" in the .ini doesn't seem to have
>much effect either. Multithreading is turned on
>
>Using the old fashioned serial VIs gives just a tiny performance
>decrease compared to running the DAQ loop alone. (about 20Hz)
>
>Running the VISA read loop, pretty much stops the DAQ loop. 5 Hz, with
>clear delays (stops?) when the VISA driver is executed.
>
>I'm very confused. Is this possible, or is there something I've missed?
>The driver, after initialized, flushes the serial buffer, writes a
>string to the instrument, and then reads back the reply.
I have made one experience with VISA serial reads which perhaps will
help you. If you open the VISA session each time you want to read from
the serial port and close it afterwards it will take much more time
than keeping the VISA session open for the whole program.
If you open the session at the beginning of your program and use it
for all serial reads you can speed up your program.
Perhaps this is the problem you have, I hope this will help you.