Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi dan521, I have the same problem with Matlab r2010a (64-bit) running on Windows 7 (64-bit OS), I even tried renaming the extension, but didn't work for me:
>> addpath(genpath('C:\altera\91\quartus\bin'))
>> alt_signaltap_run; % alt_signaltap_run.dll
??? Undefined function or variable 'alt_signaltap_run'.
>> alt_signaltap_run; % alt_signaltap_run.mexw32
??? Undefined function or variable 'alt_signaltap_run'.
>> alt_signaltap_run; % alt_signaltap_run.mexw64
??? Invalid MEX-file 'C:\altera\91\quartus\bin\alt_signaltap_run.mexw64': C:\altera\91\quartus\bin\alt_signaltap_run.mexw64 n’est
pas une application Win32 valide.
.
And it seems to be a general problem of the MEX files, for example the testbench (NCO_1MHz_tb.m) for an oscillator, generated by Altera's NCO Megacore gives the same error when calling sncomodel
??? Undefined function or method 'Sncomodel' for input arguments of type 'double'.
Error in ==> NCO_1MHz_model at 43
= Sncomodel(phi_inc_i,phase_mod_i,freq_mod_i,wantFmod,wantPmod,numch,apr,mpr,apri,aprp,aprf,dpri,arch,dual,N);
Error in ==> NCO_1MHz_tb at 27
= NCO_1MHz_model(phi_inc_i,phase_mod_i,freq_mod_i);
I guess the DLL's were compiled on a 32-bit system and I haven't found a way to use them directly on a 64-bit environment. I will try to find a solution and post it as soon as possible.