Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

alt_signaltap_run can't work correctly.

why can't i send signaltap II sample data to matlab with the function of alt_signaltap_run?

it always shows the following errors:

Error: JTAG communication error. Check hardware setup.

Error: Acquisition stopped unexpectedly. No data are returned. Please check previous error messages.

??? One or more output arguments not assigned during call to "alt_signaltap_run".

the solution in the internet " clear alt_signaltap_run" can't solve the probleme.

can anybody help me? thanks

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i solved this problem by myself, just because of the XP system, i reinstall XP, all the problems have gone. i got the data in matlab space from the signaltap. it's so cool!:cool:

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    Perhaps you could help me run alt_signaltap_run.dll from Matlab R2010a

    I've followed the steps noted on page 15-62 of Quartus handbook (altera.com/literature/hb/qts/qts_qii5v3_05.pdf)

    However I am not able to run alt_signaltap_run from Matlab. I have tried renaming the extension to .mex, .mexw32 and .mexw64, but it doesn't work either.

    In Matlab:

    
    >> addpath('C:\altera\91\quartus\bin')
    >> alt_signal_tap.dll
    ??? Undefined function or variable 'alt_signal_tap'.
     
    >> alt_signal_tap
    ??? Undefined function or variable 'alt_signal_tap'.
    
    I am using Quartus v9.1 SP2 (64-bit) on a Windows 7 system.

    I appreciate any guidance you could provide.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you used the wrong function, it's not alt_signal_tap, but alt_signaltap_run,please check it again.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi arican,

    You were right about the wrong function name, however today I tried the following, with no success (I am supposed to view the help file for the MEX function by entering alt_signaltap_run in MATLAB without any operators)

    
    >> addpath(genpath('C:\altera\91\quartus\bin'))
    >> alt_signaltap_run
    ??? Undefined function or variable 'alt_signaltap_run'.
     
    >> alt_signaltap_run.dll
    ??? Undefined function or variable 'alt_signaltap_run'.
     
    >> alt_signaltap_run.mexw32
    ??? Undefined function or variable 'alt_signaltap_run'.
     
    >> loadlibrary('alt_signaltap_run.dll')
    ??? Error using ==> loadlibrary>lFullPath at 553
    Could not find file alt_signaltap_run.h.
    Error in ==> loadlibrary at 221
            header=lFullPath(header);
     
    >> 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.
    
    Thanks again for your time
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Codina, the syntax of addpath is just addpath('C:\altera\91\quartus\bin'), there is no 'genpath', i think that this statement is order to add the alt_signaltap_run function to the matlab environment, the alt_signaltap_run exits in the quartus II, so it can also explain why you can't find the alt_signaltap_run in MATLAB. Please try it again.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You are right about genpath, I had already tried only

    
    addpath('C:\altera\91\quartus\bin')
    
    but it did not work, so in my desperation I added all the subfolders (if any) to Matlab's path.

    I guess I will export the signaltap data to a text file and import it back to matlab, seems a good option for debugging, although not very good for a practical implementation.

    My guess is that the Altera mex files were compiled as a 32 bit application, and they cannot be called directly in a 64-bit OS. Could you confirm if your XP is 32-bit?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes, I use the XP os, it's 32-bit, the quartus ii 9.1 sp2, it's also 32-bit, maybe the problem is from os, I can export the signaltap variables to a text file, it's really a good choice to plot the data in matlab.