I am trying to get an output pulse of 100Hz and 5V form USB-6501.
The maximum I am getting is 10Hz.
I changed the output of a pin in a continuous for loop from 0 to 5v (without any delays) and the maximum freq I get is 10Hz.
I tried precise timming by using the timer function and I toggeled the output pin after every 0.001 sec and still the output was 10Hz. Even if I decrease the time period for the timer fcn still I dont get above 10.5Hz.
In case you have problems with the above adapter: The VTI driver (which happens to be a VXI Plug&Play driver) comes with a COM interface, a MEX file interface, and MATLAB examples for both kinds of interfaces.
The driver for the VTI 1432 (which used to be the HP 1432) can be downloaded from here:
When you install it,
- The COM interface (and MATLAB COM examples) are under C:\Program Files\VXI Technology\ME
- The mex file and MATLAB mex examples are under C:\Program Files\VISA\winnt\vt1432
- The VXIPnP driver is in C:\Program Files\VXI Technology\ME\bin\vt1432_32.dll
Note that you need to install VISA software to use the VXI PnP driver (either Agilent VISA, NI VISA, or Tektronix VISA). For example, here is the Agilent VISA library