03-09-2011 02:13 PM
Hi everyone,
I made a program that sweeps the frequency of a speaker and makes measurements of light reflecting from a soap film... This program was working perfectly using a PCI GPIB card from NI, the problem was that this card was borrowed. After my own GPIB card arrived (Advantech PCI-1671UP-AE) and I installed the drivers necessary for it I tried the same program and now it gives me an error that says:
Possible reason(s):
VISA: (Hex 0xBFFF003C) Insufficient system resources to perform necessary memory allocation."
For controlling the Agilent frequency generator I am using the example that comes when I install the instrument (Agilent 33120A)... This problem occurs only if I try to change the frequency in a loop, if I just use the example by itself just once it will work fine.
Thanks a lot in advance!
03-11-2011 10:49 AM
Hi,
The fact that your program works once but not multiple times suggests that you might be performing a Visa Open multiple times without closing. Make sure that you are using the Visa Open and Visa Close functions outside of the loop. Inside the loop, you should be using Visa Read, Visa Write, etc. If you have any Visa Opens or Visa Closes inside your loop, please try to move them outside.
Thanks,