Matlab API, getDeviceCount returns zero

Whenever I try to use the Matlab API, calllib(‘okFrontPanel’,‘okUsbFrontPanel_GetDeviceCount’,xptr) returns 0. When I open FrontPanel, my XEM 3010-1500 is detected. However, I do NOT have FrontPanel open when trying to run the Matlab API. Any idea what I am doing wrong?

I am running:
Windows 7 64-bit
Matlab R2010b 32-bit
FrontPanel 3.1.5

XEM-3010-1500

are you using the 32 bit front pannel drivers or the 64 bit drivers? this always seams to be getting in my way. if matlab can’t call 64 bit drivers then either upgrade matlab to 64 bit or make sure to use the 32 bit driver front panel (it is 32 bit if you find it under x86 programs folder) if you have both versions another problem