Problem reading analog data from DT9816 with Data Acquisition Toolbox Functions
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a problem reading data from the AD conversor DT9816.
I'm using "read(d,numscans)" function from Data Acquisition to capture analog chanel voltage. The main problem is that with single capture, it works. But, when I try to capture more measurements (more than 1 numscan) it shows the following error:
"Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element."
I tried o asign with index as a vector, but neither worked. I attach the code. Lines that do not work are commented onthe code.
I'm using 2021a and I read somewhere that maybe has legacy problems, as DT9816 is kind of old.
4 comentarios
chrisw23
el 8 de Nov. de 2022
Editada: chrisw23
el 8 de Nov. de 2022
Ah sry I didn't realized that vendor.
They provide Win10/11 driver that should be .net compatible and easy to import.
After the installation off the universal driver, it will be accessible via the GAC
C:\WINDOWS\assembly\GAC_MSIL\MccDaq\<version>\MccDaq.dll
asm = NET.addAssembly("MccDaq")
myDaq1 = MccDaq.MccBoard(0); % index 0 assumes that the first device is the DT9816s
..as a starting point
Respuestas (0)
Ver también
Categorías
Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


