is there anything that can go wrong when switching from Frontpanel 64-bit to 32-bit?
Well, obviously, since in my case (win7 x64, Frontpanel 4.0.3, MATLAB 2011a win32 and x64) SetWireInValue() calls from MATLAB x64 with the 64-bit frontpanel dll work nicely, but nothing seems to happen (i.e. values don’t get transferred at all or in a totally wrong way) on MATLAB win32 with the 32-bit dll on the very same machine. I’m using MATLAB’s loadlibrary() and calllib() functions, the arguments passed to the library call are declared as uint32 in MATLAB. All library calls return “OK_NoError” , and no other error messages are generated. My board is a XEM3010-1500.
I don’t have any idea anymore on how to debug this, I can only list what is NOT the cause:
- it’s not the firmware or clock config, since everything works when using the 64-bit dll.
- it’s not an issue of 32-bit windows vs 64-bit windows. tried both.
- it’s not the firmware download. An FPGA configured from 32-bit as well as 64-bit can be controlled using the 64-bit API call, but not the 32-bit one.
- it’s not the compiler that MATLAB uses in the background. Tried both the built-in one and MS VisualC++ 2010
So, what can go wrong when using the 32-bit fronpanel dll?? Anything concerning byte order or endpoint bit width that I should know? Any clues?