How to write a matlab algorithm?

Hi... I'm required to write an script that will control LEDs on LabJack device to stop slowly not suddenly. Is there an algorithm that i can plug in to help me make that happen?
Thanks

2 件のコメント

Ankita Juneja
Ankita Juneja 2015 年 3 月 21 日
Hello, I am new to Labjack and MATLAB. I also need a code to turn LED on/off based on a condition. Do you think you can share the code with me. I would really appreciate that. Thanks!!
Image Analyst
Image Analyst 2015 年 3 月 21 日
Look into using an arduino. Search this forum for examples.

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

 採用された回答

Image Analyst
Image Analyst 2014 年 6 月 2 日

0 投票

Probably a simple for loop with code in there to turn the toggle the state of the LED and a pause(1) to slow it down should do the trick.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInstrument Control Toolbox Supported Hardware についてさらに検索

質問済み:

2014 年 5 月 28 日

コメント済み:

2015 年 3 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by