Create Bus Data for Models with Root-Level Bus Inputs
- Downloads:
- Views:
- Rating:

A common task in Simulink is to test a certain component of a larger model. With large-scale modeling, such componentization is often accomplished through the use of model reference. These large models also often use bus signals to organize large amounts of signals in the model. The situation at hand is the desire to unit test one of these components in an open-loop sense, driving that component with data from another simulation or from real world (non-simulated) data. Often this data is simply a matrix of data, columns of variables, rows of data. Making this data work with root-level bus inputs in a Simulink model is sometimes a challenge.
The root cause of this challenge has to do with an understanding of Bus Objects. Assume there is a root-level inport which is associated with a bus object "INPUT_BUS." In Simulink, and in code generated by RTW-EC, a bus object is a data type, analagous to a struct definition in C. So the issue is that the root level inport is expecting data of type INPUT_BUS. Unfortunately, the data you're getting extrenally and importing into Matlab is often a matrix of doubles of size mxn. As such, this data needs to be converted from the double precision matrix into type INPUT_BUS.
One way to accomplish this is to manipulate the data in Matlab to create a Simulink.TsArray object comprised of Simulink.TimeSeries objects that corresponds with the bus object INPUT_BUS. This is probably the cleanest way, as this is how Simulink understands data in buses defined by bus objects. The best example of this is if you log a bus signal using signal logging, the data in the workspace would be a Simulink.TsArray. This function takes the double precision matrix data and packs it into a Simulink.TsArray based on the definition of the type INPUT_BUS (including sizes and data types). The resulting TsArray is then suitable to drive a simulation of that component without the need for altering the inport in the model or creating a test harness.
This script is dependent on the functions CreateTsArray.m, CreateTsArray.p, CreateTimeSeries.m, and CreateTimeSeries.p available in the followin Matlab Central Post:
http://www.mathworks.com/matlabcentral/fileexchange/15852-example-creating-timeseries-and-tsarray-inputs-for-simulink-bus-signal-input-data
Free download from Shareware Connection - A common task in Simulink is to test a certain component of a larger model.
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 25-03-2013 | Rating: 0 | Title: Create Bus Data for Models with Root-Level Bus Inputs
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/25616/3/CreateTsArrayFromBusObject.zip
AutoSize - In Simulink, it is often the case where a user wants to connect multiple blocks to another block, particularly in case of mux, demux, and bus creator blocks
CreateMatrixFromModelData - This is a recursive function takes any of the following data objects commonly associated with data logging in Simulink
SinkAutoConnect - Unlike SISO block in Simulink, blocks that have a single inport and no outport (Scope, Display, To File, To Workspace)
AutoSizeOnConnect - In many cases, Simulink™ users have multiple blocks that they wish to connect to a block, particularly mux, demux, and bus creator blocks
AutoConnect - Unlike SISO block in Simulink, blocks that have multiple inports and/or outports, or no outport, do not autoconnect if dragged over a signal line in a model
123WebMessenger
Voice Audio Processing
Fractal dimension
Yahoo Messenger
PlaySMS
PID Tuning Using Genetic Algorithm
Continuous Sound and Vibration Analysis
Shock Response Spectrum
Grey prediction algorithm for mobile user localization
GSM Traffic Channel Simulator
OFDM LSE Channel Estimation
Wiener filter for Noise Reduction and speech enhancement
Solutions for Digital and Analog Communication Systems, 7Ed by Leon Couch
Using S-Parameters in MATLAB & Simulink
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Dfig Simulink Model
Dfig Model Matlab Simulink
Model Simulink Wind Turbine
Nokia Common Component
Java Calendar Task Component
Navicat Data Modeler - Navicat Data Modeler is a powerful and easy-to-use database design tool for creating and manipulating data models.
EMS IB/FB Data Export - EMS IB/FB Data Export is a powerful program to export your data quickly from InterBase/FireBird databases to any of 15 available formats, including MS Excel, MS Word, HTML, TXT, and more.
Oracle SQL Developer Data Modeler - Oracle SQL Developer Data Modeler is a data modeling and design tool used to increase developer productivity by providing the means to develop logical, multi-dimensional, user defined data types, relational and physical data models.
PLT Import for AutoCAD - PLT Import for AutoCAD is a HPGL Plot (.plt) file import plug-in for AutoCAD®. This plug-in gives AutoCAD the ability to import geometric data from ASCII and Binary PLT files.
HPGL Import for AutoCAD - HPGL Import for AutoCAD is a plug-in for AutoCAD 2000, 2000i, 2002 and 2004. This plug-in gives AutoCAD the ability to import geometric data from HPGL Plot (PLT) files.
Shareware Connection periodically updates pricing and software information of 'Create Bus Data for Models with Root-Level Bus Inputs' from company source 'Mike Anthony' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'Create Bus Data for Models with Root-Level Bus Inputs' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Create Bus Data for Models with Root-Level Bus Inputs.
Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...
SlimCleaner - Nearly all PC users need to use various utilities to enhance performance of their laptop or desktop from time to time. Windows inbuilt utilities can serve the purpose but when you can find more capable third party apps at low or zero cost, why ...
RawTherapee - There are so many image editors out there but when it comes to powerful and versatile RAW file editors, the choices are somewhat limited. With Adobe switching to Cloud-based subscriptions for most of its apps, semiprofessional users including ...
Style Jukebox - No matter if you use a computer for personal needs or work in a networked setup, listening to music is commonplace. It is required for relaxation amidst work and nearly every user indulges in it. For music playback on PC, the WMP is not the only ...
Norton Identity Safe - Symantec has been one of the most popular and major players in computer security solution for years. Its cutting edge system security products usually come with data security features. However, with its Identity Safe, the company has given users ...
DriveHQ Online Backup Enterprise Edition - For individual users as well as organizations, taking backup of data is vital nowadays. You really cannot count on the PC hard drive solely to store your data forever in a secure manner, as it is! Backup software is a prerequisite and choosing ...
PC DeCrapifier - There is hardly any computer user who does not want to keep the PC running at top speed. However, unnecessary software and bloatware can reduce the speed and performance of your PC. Such Apps often come pre installed with laptops and desktops. ...
Groovy Media Player - There is hardly any PC user who does not listen to music while working on PC or at leisure time. For media playback on Windows PC, there are so many apps. You can opt for default WMP that comes with the OS. However, there are several other third ...
Roboscan Internet Security Free - Owing to incessant onslaught of various web based and other malware, it is not possible to keep your PC secured unless you use a capable system security suite. As a matter of fact, it is better to use feature- rich Internet security software than ...
Privatefirewall - Everything in life has two sides to it and same can be said about technological innovations. It is quite hard to carry out most activities without resorting to the web these days. Yet the internet itself is also the reservoir of malicious ...
