MCC PCI-DAS on 64-bit Matlab Simulink real-time

3 次查看(过去 30 天)
In the past we have successfully used Measurement Computing PCI-DAS 1001/2, PCI-DAS 1200 and PCI-QUAD boards with Matlab xPC Target for real-time acquisition for custom robotic applications. The drivers for Measurement Computing boards were supported only until Matlab 2015b, since this was the last version of Matlab that was 32 bit. After that measurement computing boards (at least the ones that we have) are no longer supported. On one of our older industrial PCs have died and the new one does not run 32 bit version of xPC Target. So the next step would be to try to compile 32 bit drivers on a 64 bit version of Matlab.
Has anybody tried to compile drivers for Measurement Computing boards on 64 bit Matlab and used them in Simulink real-time (which is basically just renamed xPC Target)?
I am trying to port model from Matlab 2014a xPC Target to Matlab 2019b Simulink real-time.

回答(2 个)

Dimitri MANKOV
Dimitri MANKOV 2024-10-3
Hi Janez,
I'm afraid that's rather unlikely because of the efforts that would be required to adapt the driver blocks. Please also note that support for custom target hardware has been removed in Simulink Real-Time in R2018a. Starting from that release, only Speedgoat target machines are supported. Speedgoat provide various I/O modules and corresponding driver blocks, which are fully compatible with the latest MATLAB releases.
For more information, have a look at www.speedgoat.com and at the Release Notes for Simulink Real-Time.
I hope this is helpful!
Dimitri

Janez Podobnik
Janez Podobnik 2024-10-4
I managed to compile the source c s-functions for PCI-DAS 1001/2 and PCI-QUAD boards into mex64. I just took the source c files from version Matlab 2014a and compiled them on Matlab 2019b using mex command. Reading of registers works for both boards, but I cannot write into registers and change the outputs of PCI-DAS 1001/2 board.
Must be something with permissions for writing into registers. I guess in version 2014a permissions are not required or are set as a default and in version 2019b this has changed. Just a guess, I do not actually have a good idea where to go next. Any ideas?
I also remember that couple of years ago there were threads discussing various topics related to xpc target, but when I search now, they are gone. Were older post archived or erased from Matlab forums?

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by