Function seting DMX values on specific channel(s)

Function seting DMX values on specific channel(s)
Updated 7 Nov 2012

View License

The function allows to set intensity to 50 on channel 3. See line 85 of testdmx to change channel numbers and intensity.

Note that this function requires the ENTTEC Open DMX USB device (might work with the pro as well?)
How to use:

1) First download FTDxx.dll and place it in this folder


2) then start Matlab and type


- testdmx - test the laser only using DMX code
- FTD2XX.H - this H file has been modified from the original since the original could not be imported under Matlab. Note that I might have made error in converting the types and there are still warnings when importing the DLL.
- D2XX_Programmer's_Guide(FT_000071).pdf - program guide (took me some time to find it so I am including it)

Note: under Windows XP, I was able to make the program work with Matlab 2009a but not 2009b or later. The problem was due to the DLL import. I suspect that the type casting is more strongly enforced in 2009b and later which is why it did not work (I had to change all the data types in the original .H file to make it Matlab compatible).

Tip: while debugging, be sure to close the device before restarting the

program using calllib('FTD2XX', 'FT_Close', handle); Otherwise, you will have to restart Matlab

Copyright A. Delorme - Institute of Noetic Sciences 2012 (arnodelorme at
Distributed using the BSD license

Arnaud Delorme, Aug 21st 2012

Cite As

Arnaud Delorme (2024). Function seting DMX values on specific channel(s) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Periodic Waveform Generation in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!


Version Published Release Notes