Tag Archives: Stateflow

Youtube video demo overview of Matlab Simulink and Stateflow Model with Custom M function

Youtube video demo overview of Matlab Simulink and Stateflow Model with Custom M function

http://www.mathworks.com/help/stateflow/examples/server-queueing-system.html

Learn more about these tools for trading through my FREE newsletter 

 

 

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Tips for best practices and hints for better development in MATLAB Simulink models and Stateflow charts

Tips for best practices and hints for better development in MATLAB Simulink models and Stateflow charts

These are just some of the items but webinars are still the best way to learn

Simulink:

http://blogs.mathworks.com/seth/2013/05/03/comparing-runs-using-simulink-data-inspector/

http://blogs.mathworks.com/seth/2013/04/26/zero-crossing-detection-what-are-your-options/

http://www.mathworks.com/help/stateflow/ug/best-practices-for-using-simulink-functions.html

http://www.mathworks.com/help/physmod/simscape/ug/modeling-best-practices.html

Stateflow:

http://www.mathworks.com/help/stateflow/ug/best-practices-for-using-data-in-stateflow-charts.html

Want to learn more about this? Join my FREE newsletter

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Just posted First Matlab Simulink technical analysis indicator RSI trading model with Stateflow and code generated C source code or even C++

Just posted First Matlab Simulink technical analysis indicator RSI trading model with Stateflow and code generated C source code or even C++

This is nowhere to final but I got it to a point where it can code generate to C or even C++ if wanted! This is a fun process to build models with. I can also say the maintenance on these will be very simple and rapid if you sticl to some sort of rigid template or framework you define. The C code is quite straightforward with no trick but everything comes down to how you chart within Stateflow and how name all the objects. I really like it so I expect some big stuff will come out of it. Next test next week will be trying to implement into a potential live trading environment like Deltix with even HFT potential. It will get exciting for sure.

In my posting, I have included all the Simulink models, supported files, and even C source code but…

This is only available to my QuantLabs.net Premium Members. Sorry but membership has its privileges.

Want to follow my progress? Join my FREE newletter to learn more

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Matlab Simulink and Stateflow gotchas while running simulation with code generation with custom M functions

Matlab Simulink and Stateflow gotchas while running simulation with code generation with M functions

While in Simulink and Stateflow, if you use Matlab M functions it appears all local function variables need to be defined in the workspace. While running the simulation you can get errors like:

    Undefined function or variable ‘m’. The first assignment to a local variable determines its class.

Function ‘rsi’ (#89.382.383), line 17, column 2:

“m”

Launch diagnostic report.
While in SImulink and Stateflow, if you use Matlab M functions it appears all local function variables need to be defined in the workspace. This is needced 
for the Coder during the code generation process. I am sure there is a smarter way but I will dig into it in the near future. 
Hope this helps somewhat so far. 

Also, when using Stateflow transitions for Matlab M functions, you need to define the M function on the transition as explained here:
http://www.mathworks.com/help/stateflow/ug/example-of-a-matlab-function-in-a-stateflow-chart.html

I will post a full set of files with C++ code generated file. Want to know when that happens, join my FREE newsletter 
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Demo video of how to configure and launch debugging session of Matlab Simulink Model and Stateflow chart

Demo video of how to configure and launch debugging session of Matlab Simulink Model and Stateflow chart

I just created a 20 minute video of this for QuantLabs.net Premium Members. I literally did this on the fly which shows how intuitive it is.

Join my Membership to get immediate access

Or join my FREE newsletter to learn some new stuff on Matlab anf Simulink

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

How Matlab Simulink and Stateflow allow you to build trading models rapidly!

Hi there:
I just posted these topics EXCLUSIVELY with PRIVATE videos for my QuantLabs.net Premium Members:

1. Video understanding connection from Matlab Simulink In flow data with Bus data type to your Stateflow chart

2. Understanding conection from Matlab Simulink In flow data with Bus data type to your Stateflow chart

3. How to create visually an algorithm to a custom M function through …

This last one is very powerful where it will save so much time where it will create your potentially complex algo for your Stateflow charts or Simulink models. Once again, this reduces any programming need immensely.

–> GET INSTANT ACCESS TO THIS NOW <–

It does not stop there, I also posted some other important topics on:

a) Youtube video demo of a VERY Cool FREE technical analysis tool in Matlab demo with live Yahoo Finance stock data import

https://quantlabs.net/blog/2013/04/youtube-video-demo-of-a-very-cool-free-technical-analysis-tool-in-matlab-demo-with-live-yahoo-finance-stock-data-import/

b) Youtube video showing how to quickly check to see if your Matlab M function can be code generated to C or C++ with Matlab Coder

https://quantlabs.net/blog/2013/04/youtube-video-showing-hoq-to-quickly-check-to-see-if-your-matlab-m-function-can-be-code-generated-to-c-or-c-with-matlab-coder/

c) Youtube video on demo walkthrough of Matlab debugging RSI function for technical analysis

https://quantlabs.net/blog/2013/05/youtube-video-on-demo-walkthrough-of-matlab-debugging-rsi-function-for-technical-analysis/

As you can tell, I am finding quick ways to build custom trading models and strategies visually thanks to Simulink and Stateflow which are part of Matlab. Pretty cool I think. Once a basic model is built, I will not only provide videos and sample files for my QuantLabs.net Premium Members, I will also provide a number of live webinars to help assist them accomplish the same goals.

So you see the power of the latest updates within Matlab? Not only that, you can see pretty amazing example of a FREE but basic stock market charting system. Cool.

In coming weeks, I will be using the Deltix trading platform to help connect those Simulink trading models through a code generation process to C or C++. I am finding new ways to visually build these models and potentially complex algorithms with with little programming. They can also be built rapidly with very easy maintenance process for any adjustments you want to make. Again, this will be part of the future of this QuantLabs.net Premium Membersship:

–> GET INSTANT ACCESS TO THIS NOW <–

Got questions? Let me know.

Thanks for reading

Bryan

P.S. Here a complete list of benefits in using Matlab with this Membership.

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube video demo of Matlab Stateflow and Simulink with C or C++ HFT trading potential function

Youtube video demo of Matlab Stateflow and Simulink with C or C++ HFT trading potential function

Seriously, this is just the start of the potential

 

 

Like this? Join my FREE Newsletter to learn a tonne more

 

 

 

 

 

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube video on Can you build entire HFT trading system with Matlab Simulink Stateflow with C and C++

Youtube video on Can you build entire HFT trading system with Matlab Simulink Stateflow with C and C++

Like this? Join my FREE newsletter to learn more

 

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Useful documents for Matlab Stateflow event stream processing with FPGA uses in HFT for ultra lowest latency

Useful documents for Matlab Stateflow event stream processing with FPGA uses in HFT for ultra lowest latency

Interested in learning more? Join my FREE newsletter

From my Youtube user so thanks to him:

A bunch of documents relating to Stateflow for event/stream processing:

The main one:
http://www.patentgenius.com/patent/7966161.html
http://www.google.com/patents/US7966161

Others:
http://www.google.com/patents/EP1817700A2?cl=en&dq=%22stateflow%22+event&hl=en&sa=X&ei=pStpUdHGCcip0AG0xYCoDA&ved=0CCkQ6AEwAA

http://www.google.com/patents/US7500209?pg=PA10&dq=%22stateflow%22+event&hl=en&sa=X&ei=pStpUdHGCcip0AG0xYCoDA&ved=0CCwQ6AEwAQ

http://www.google.com/patents/US7925477?pg=PA21&dq=%22stateflow%22+event&hl=en&sa=X&ei=pStpUdHGCcip0AG0xYCoDA&ved=0CEEQ6AEwCA

http://www.google.com/patents/US8266584?dq=%22stateflow%22+event&hl=en&sa=X&ei=oCxpUdXODO-50QG4woDAAQ&ved=0CCkQ6AEwADgU

http://www.google.com/patents/US7433808?pg=PA27&dq=%22stateflow%22+event&hl=en&sa=X&ei=hyxpUfioHsav0AG4zYH4AQ&ved=0CDgQ6AEwBTgK

http://www.google.com/patents/US7640154?pg=PA21&dq=%22stateflow%22+event&hl=en&sa=X&ei=hyxpUfioHsav0AG4zYH4AQ&ved=0CDIQ6AEwAzgK

Stream:
http://www.google.com/patents/US20120291054?dq=%22stateflow%22+%22stream+processing%22&hl=en&sa=X&ei=FSxpUYT3LLOG0QGRz4HQBA&ved=0CCkQ6AEwAA

Info about objects:
http://www.google.com/patents/US8392151?dq=%22stateflow%22+event&hl=en&sa=X&ei=pStpUdHGCcip0AG0xYCoDA&ved=0CD4Q6AEwBw

This is for FPGA event processing:

http://people.inf.ethz.ch/lwoods/publications/Complex-Event-Detection-at-Wire-Speed-with-FPGAs.pdf

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Can MATLAB Stateflow replace the functionality of Streambase real time market data analytics in an HFT system?

Can MATLAB Stateflow replace the functionality of Streambase real time market data analytics in an HFT system?

From another Premium Member regarding his query on Streambase:

Interested to learn more how we apply Matlab? Join our FREE Newsletter for more info!

OR JOIN to be a QuantLabs.net Member now
NOTE: QuantLabs.net Premium Members do refer to this to our project which it is, not mine or QuantLabs.net alone!!

 

 

I haven’t looked at this yet, but it may have relevance to your (“our”) project.

Are you interested in implementing systems to analyze and act on real-time data? If so,  check out the StreamBase blog where we’ve posted the first 3 in a series of best practices for implementing real-time systems, including:

Build Apps So Quickly You Won’t Mind Throwing Some Away

Start Small, Succeed, Then Scale

Plan for Spikes, Not Aggregate Flow

 

Tweet These Best Practices

Will your Twitter followers benefit from reading these best practices?  Tweet them now             

                               

 

 

Subscribe to Future Best Practice Posts

 

We’ll be posting more best practices in the coming weeks so be sure to enter your email address in the box below to be alerted of them, including “Balance Man and Machine” and “Tightly Integrate Business and IT”.

I’ll take a look at it, strictly from a “best practices” standpoint, and see if they offer any useful benchmarks and/or insights.  Of course, our taxes will have to come first………..

 

 

 

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!