Calling C functions in Matlab for National Instruments

1 visualización (últimos 30 días)
Cordelia David
Cordelia David el 17 de Mayo de 2019
I'm trying to call C functions in Matlab from Installed National Instruments programs. I took a look at calling external C/C++ function but I'm still really confused with how to call these in Matlab.
I'm trying to call Serial Read and Serial Write so I can communicate with my frame grabber over Camera Link with Serial commands. I have the below functions in C to call:
rval imgSessionSerialWrite(SESSION_ID sid, const void* buffer, uInt32* bufSize, uInt32 timeout);
rval imgSessionSerialRead(SESSION_ID sid, void* buffer, uInt32* bufSize, uInt32 timeout);
rval imgSessionSerialReadBytes(SESSION_ID sid, void* buffer, uInt32* bufSize, uInt32 timeout);
rval imgSessionSerialFlush(SESSION_ID sid);
and I think I need to call imaq.dll somehow but I am really unsure. Can anyone help me with this?
Thank you in advance!

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by