How to edit Harness editor input values for a (:,40) array of 40 values in signal editor?

5 views (last 30 days)
Hi everyone,
I'm trying to input my test values into the InputScenario for one of my signals. This signal is an array of 40 values, and I want to input both the time values and the corresponding array data as my test set.
However, I keep encountering compatibility issues when I try to use the Author Signal Editor with the time set as time=[0;] and the corresponding array [1..40 times;].
I’ve also attempted the following:
  • Using the data table directly.
  • Deleting the default table to input my data, but doing so causes my MATLAB session to hang, requiring a force quit.
  • Using the "Select Waveform" and "Delete" options from the signal editor’s taskbar, but this also causes the application to hang.
Could anyone suggest a more efficient way to input this data without causing these issues?
Thanks in advance for your help!

Answers (1)

Altaïr
Altaïr on 27 Mar 2025
Hey @Shriya,
Indeed, one way to create input signals from expressions and variables is by using the Signal Editor. When selecting "Author Signal" in the Signal Editor, the Author and Insert dialog window will appear.
By clicking the "Show Examples >>" button, examples can be viewed. For instance, a simple 1x40 double array in the MATLAB workspace, named dataInp, can be created with the command:
dataInp = 1:40;
Assuming this array represents a uniformly sampled signal with corresponding time values starting from 0 to 1, the input in the Time and Data fields would be set accordingly.
After clicking the Insert Signal button, double-clicking the eye icon () allows viewing of the inserted signal. This signal can now be used for testing. More information on the Author and Insert dialog can be found here:
Alternatively, external data files can be used directly in the test case without the Signal Editor. For this approach, the following page might be helpful:
If additional help is needed, sharing screenshots of the inputs in the "Author and Insert" dialog and detailing any errors encountered would be beneficial. Further clarification on the phrase "encountering compatibility issues" would also be appreciated.

Community Treasure Hunt

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

Start Hunting!