Try to control DMX using ENTTEC and USB

16 ビュー (過去 30 日間)
Farhad Abed
Farhad Abed 2019 年 4 月 16 日
回答済み: Bart Krekelberg 2023 年 9 月 11 日
Hello,
I'm trying to control some LED light sources with MATLAB and through DMX connection. I use a device "ENTTEC" that Converts USB to DMX. I tried to use the package provided here:
There are not enough explanations of how to install the .dll package. I downloaded "FTDxx.dll" library and and installed MinGW add-on as they are required. I still get a long list of errors while using "loadlibrary" command.
[notfound,warnings] = loadlibrary('FTD2XX.dll', 'FTD2XX.h');
Does Matworks provied and solution for controlling through DMX conncection?
I use windows 10 64bit and R2018b.
Thanks,
Farhad
  1 件のコメント
Kritika Vashishtha
Kritika Vashishtha 2020 年 3 月 17 日
I am trying to achive the same connection. Did you find solution to this.

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

回答 (2 件)

Simon
Simon 2022 年 7 月 25 日
Hi everyone,
i was looking for a USB-DMX-Interface to replace my homebrew Serial to DMX Converter, so i went with the Enttec Open DMX USB Interface.
However, when using it in Matlab i was facing the same issues you are probably struggling with.
The issue is, that the code provided on File Exchange:
was written for Matlab prior to 2014. From 2014b on the 32-bit support for precompiled DLL was discontinued by Mathwork as far as i know.
So, here is what you need to do:
  • Download the 64-Bit FTDI DLL from here: https://ftdichip.com/drivers/d2xx-drivers/
  • Unpack the DLL, which is now named 'ftd2xx64.dll' to your working directory
  • In the test_dmx.m file provided on File Exchange replace all occurences of 'FTD2xx' by 'ftd2xx64'
This did the trick for me and it is working fine. Tested on Windows 10 with Matlab R2022a. Hope this helps.

Bart Krekelberg
Bart Krekelberg 2023 年 9 月 11 日
If someone is running into this same problem, please try code I wrote to talk to the DMX USB Pro widget via the COM Port (underneath, it uses the FTDI drivers, but you won't have to bother with loadlibrary ).
The code is on github and was tested on Matlab R2023a, with an Enttec DMX USB Pro connected (via DMX cable) to a waveform lighting dimmer: klabhub/dmxUsbPro: A Matlab interface for the Enttec DMX512 USB Pro device. (github.com)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by