I am trying to create MIL automation script using Signal Editor facing below issue.

1.How to access signal editor block properties using m script in MATLAB ?
2.How to import input .mat and .xlsx file and access for test manager using mscript for Signal Editor ?

Answers (1)

Hello Nikhil,
To create a MIL automation script according to the specified requirements, follow these steps:
blockPath = [modelName '/Signal Editor'];
newSignalDataFile = 'new_signal_file.mat';
set_param(blockPath, 'Filename', newSignalDataFile);
load("fileName.mat");
T = readtable('sample_data.xlsx','ReadRowNames',true);

Products

Release

R2023a

Asked:

on 31 Jul 2023

Answered:

on 26 Sep 2024

Community Treasure Hunt

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

Start Hunting!