Calling C functions in Matlab for National Instruments

조회 수: 2 (최근 30일)
Cordelia David
Cordelia David 2019년 5월 17일
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!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by