フィルターのクリア

How do use fopen properly. Everytime I try I recieve an error.

7 ビュー (過去 30 日間)
Phillip Addison
Phillip Addison 2012 年 6 月 18 日
??? Error using ==> icinterface.fopen at 83
Connection refused: connect
Error in ==> theprogram at 8 fopen (t);
I am connecting a sourcemeter instrument to matlab to measure current by changing the voltage but everytime I try to connect to it I recieve this error message. Could someone please explain how to use fopen properly please?

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 18 日
That is a correct way to use fopen() itself.
However, you are attempting to form a TCP connection and whatever is at the destination address is not listening on that particular port. You need to check that you have the correct IP address, and check the port, and check that you have a route to that network. (If the instrument's IP address is not part of the same IP network as your regular connection, and you are not using a dedicated ethernet card to connect to the instrument, then you will need to have a router in between you and the instrument.)

その他の回答 (1 件)

Richard
Richard 2012 年 6 月 18 日
Its hard to say without an example, which I realise is not easy in this case. I suggest to start with the help page.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by