How to write a matlab algorithm?

4 views (last 30 days)
Ryan
Ryan on 28 May 2014
Commented: Image Analyst on 21 Mar 2015
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 Comments
Ankita Juneja
Ankita Juneja on 21 Mar 2015
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 on 21 Mar 2015
Look into using an arduino. Search this forum for examples.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 2 Jun 2014
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.

More Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!