How to read address locations using s-functions?

We are using Single Board Computer(SBC) of some 3rd party. We have installed MATLAB (R2010a) on that board. We want to read the data from address locations of SBC using S-functions. Please let me know the procedure..
SBC Configuration: Its configuration is same as normal desktop PC. (Intel I7, 8 GB RAM, 250 GB HDD)
We have to use *S-functions* to read address locations..

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 6 月 20 日

0 投票

You can write standard ANSI C-code in S-functions, so you'll need to ask the vendor for a C/C++ API to access those locations, and simply use that API in your S-function. Essentially, if you are able to do this from a C/C++ application outside of MATLAB, it should be the same methodology in a MEX-function.

5 件のコメント

Ravi
Ravi 2013 年 6 月 21 日
i am new to s-functions n i am not able to understand the functionality.... so can u better explain my problem....
Kaustubha Govind
Kaustubha Govind 2013 年 6 月 21 日
Ravi: Did you mean that you did not understand my answer? If yes, please explain which part you found confusing.
Ravi
Ravi 2013 年 6 月 24 日
Kaustubha: i need a sample code or relevent example link for my project.... out_d_adc1=(pds0+ADC_D_01) such kind of coding im using... so i need an example code or link...
Thanks in advance....
Kaustubha Govind
Kaustubha Govind 2013 年 6 月 24 日
Ravi: Sorry, I don't have sample code. You probably need to talk to the SBC vendor first about the API to access the memory locations, because that is different for different boards. I'd recommend that you first try to write generic C/C++ code that works in an executable outside of MATLAB.
Ravi
Ravi 2013 年 6 月 25 日
Kaustubha: ok outside MATLAB it is working... i will try using s-fun...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by