How do i import signal names from a excel database( a CAN database) for usage in Simulink simulations

조회 수: 1 (최근 30일)
Hello, I have a database of hundreds of signals and I have the signal name field available in the excel format. I need to selectively use the signals ( signal names) in a SIMULINK simulation - how do I do it? I have tried excel import and data import , but they only import the signal values! not the signal names - in my case I will just need the signal names and then specify any test values across that signal names.
Hope I will get an answer soon.

답변 (1개)

Srinivas
Srinivas 2014년 4월 8일
did you look at 'xlsread'
[num,txt,raw,custom] = xlsread(filename,sheet,xlRange,'',functionHandle)
this should read the signal names
  댓글 수: 3
Vijay Ganti
Vijay Ganti 2014년 4월 9일
Yes. I have been trying different options - like create a mask subsystem out of an constant block - and create a drop down from the "mat" file of signal names.... but no success yet! Will be glad if you could help
Srinivas
Srinivas 2014년 4월 9일
it is still confusing what you are trying to achieve, are you trying to use a script to build your Simulink model. Can you show us a sample of what you did or what you tried so that we get a better picture.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by