Forum Discussion

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

Problem with the SignalTap II MATLAB MEX Function

Hi,

My problem is very strange Indeed in a project, I capture with Signaltap the data in Matlab through the function X=alt_signaltap_run('d:\Documents and Settings\test.stp','unsigned','auto_signaltap_0');

It works very well.

In a second project, I try to capture with Signaltap the data through the same fuction in Matlab, but it doesn't work. In the console of Matlab, I have this error message :

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".

It's very strange because when I open the Interface Signaltap, I can capture the data. But I can't capture in this project the data in MATLAB with the MEX function. What is the problem of this project ? :rolleyes:

Thank You

Regards

Khoa-Nam LAM

3 Replies

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

    I have this same exact problem.

    I have confirmed that there is not an issue with the FPGA/STP versions.

    Altera support found a solution. When accessing the STP file from a remote share the DLL can get in a strange state.

    After successfully connecting the STP file to the signaltap instance SAVE IT. This updates the signaltap file.

    Then in MATLAB use the command "clear alt_signtal_run" This clears out the memory in MATLAB for the mex file which caches information about the STP file.

    Altera reported back that they had found the issue and traced it back to remote drives. This should therefore be fixed post 9.1 Sp2.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    is there a function to trigger the "compile" in the SignalCompiler Interface as well?

    It's awesome that it's possible to use a function for the "acquire"-button in the SingalTap Interface: alt_signaltal_run. I would like to have a similar possibility for the "compile"-bottin in the signalcompiler interface.

    Any hints?

    Thank you!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    "Compile" in SignalCompiler can be triggered via the mex function:

    alt_dspbuilder_internal_testsignalcompiler(x); x is the name of the Model.