how to add logic analyzer into Simulink ?

조회 수: 2 (최근 30일)
Tommy Boze
Tommy Boze 2014년 12월 12일
답변: Bharath Venkataraman 2015년 3월 12일
I tried to add logic analyzer to my design according to the 'dspprogfirhdl' example and I got some errors. I tried to figure out and I really don't understand.
Can someone help me to solve it?
I am adding below my m.file and the error message:
---------------m.file---(templogic.slx)------------------
clear all
modelname = 'templogic';
open_system(modelname);
systemname = [modelname '/Logicsignal'];
open_system(systemname);
load_system(modelname);
sim(modelname);
logsout_r = templogicReorderDataset(templogic_logsout);
analyzar = analyzeLogicFromSimulink(logsout_r);
-----error from command window--(Logic_Anlzr_3.m)-------
>> Logic_Anlzr_3; Undefined function or variable 'templogic_logsout'.
Error in Logic_Anlzr_3 (line 8)
logsout_r = templogicReorderDataset(templogic_logsout);
-------------------------------------------------------
Thank you for your support, Tommy Boze

답변 (1개)

Bharath Venkataraman
Bharath Venkataraman 2015년 3월 12일
Do you have the dataset named templogic_logsout in the model? This option is in Simulink -> Configuration Parameters -> Data Import/Export -> Signal Logging

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by