Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

matlab comunication over internet

Status
Not open for further replies.

aliraza786

Full Member level 4
Full Member level 4
Joined
Nov 10, 2009
Messages
210
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,298
Location
Lahore, Pakistan, Pakistan
Activity points
2,914
hello i wana make an application in matlab which can comunicate over the internet with another computer. like i wana controle my room fan from my office through computer like i press one button on my keyboard from my computer the data sent over the internet recived on the remote computer then that data is sent to the serial port of that computer and recived by my circuit and hence my required task complete... any help will be highly appreciated. thnks
 

aliraza786,

I think it's a better solution to send a command to your circuit using your web browser. Run a http server on your computer and connect to it using your web browser. Make a http form to capture the speed and send to a file, then that file will be able to be opened by matlab and send the value to your board. Another suggestion, use SSH to connect to your computer and build a program in C or in Python, or compile your matlab script, to configure your fan controller.

Hope I have been helpful.
 
aliraza786,

I think it's a better solution to send a command to your circuit using your web browser. Run a http server on your computer and connect to it using your web browser. Make a http form to capture the speed and send to a file, then that file will be able to be opened by matlab and send the value to your board. Another suggestion, use SSH to connect to your computer and build a program in C or in Python, or compile your matlab script, to configure your fan controller.

Hope I have been helpful.
thnku so much you are realy very helpful kindly give me more info that how can i use my web browser to send info to my circuit board from my office.?

---------- Post added at 18:33 ---------- Previous post was at 18:00 ----------

i have made webserver on my computer now tell me how can i connect to remote comupter (at home ) from my office computer and how can i comunicate with the serial posrt.?

---------- Post added at 19:01 ---------- Previous post was at 18:33 ----------

https://www.instructables.com/id/Make-Your-Computer-Into-A-Server-in-10-Minutes-fr/#step1

the first line of this instructable shows that webserver can be used for controlling robots and home automation.
 

With that you have an apache server, you are able to store web pages in your computer. Build an web page with forms and record the information on a file. I think you can use javascript or Python for that. Good luck!
 
There are two toolboxes in matlab that may help you. The first one is TCP/UDP/IP Toolbox, which has all the necessary commands in order to send and receive data via internet and the second one is Instrument Control Toolbox, which is for connecting instruments (such as oscilloscopes, frequency generators etc) in matlab, but as stated in Mathworks' site: "For remote communication with other computers and devices from MATLAB, the toolbox provides built-in support for TCP/IP, UDP, I2C, and Bluetooth serial protocols".

I've used Simulink in the past in order to exchange data between two computers and I think it's the easiest way if you have some familiarity with Matlab. In Simulink you use state machines in order to run your code. The general idea is that when you run your program you will enter a state in which you will do all the necessary initializations and wait there. You will leave this state whenever you press a key and in the following states you will do all the data transactions with the other computer.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top