- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this strange problem. I'm trying to use the alt_signaltap_run to capture data from signaltap into matlab. I have done it successfully in the past up until I got a new computer with windows 7 64 bits.
Matlab doesn't seem to be able to even read or acknowledge the existence of any of the .mex files in the quartus/bin directory. I use the 'what' or 'exist' command in matlab and it's as if the directory is empty. The files are there because I can see them with Windows explorer. Does anyone have a clue about this?Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
codina,
I have found a (temporary) solution. Simply download the r2010a (or whatever version) for a 32 bit machine. When downloading, you are asked to select between a 32bit or 64bit version. It will automatically install it in Program Files (x86) instead of Program Files if you have Windows 7. The problem will then go away. Just make sure you click on the correct (32 bit) executable to start matlab, in case you have them both installed on your machine.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good suggestion, I'll try that.
Thank you Dan
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page