Error occurred while executing callback for any function ( 'info' for example)

1 回表示 (過去 30 日間)
Sabin Donos
Sabin Donos 2014 年 1 月 16 日
コメント済み: Sabin Donos 2014 年 1 月 17 日
Hi, I Need a listener for csv file changes in a specified directory so i use the following code:
fileObj = System.IO.FileSystemWatcher(fx_path); fileObj.Filter = '*.csv'; fileObj.EnableRaisingEvents = true; addlistener(fileObj,'Changed',@candle_pattern_live);
candle_pattern_live is a function with no inputs or outputs but i still get the following error message: Warning: Error occurred while executing callback: Error using candle_pattern_live Too many input arguments.
The same error occurs if i change candle_pattern_live with a trivial function with no inputs like "info" or "ver". Any thoughts on this issue?
Thanks, Cristi
  2 件のコメント
Image Analyst
Image Analyst 2014 年 1 月 16 日
Can you attach your m-file?
Sabin Donos
Sabin Donos 2014 年 1 月 17 日
Sure.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by