Calling C functions in Matlab for National Instruments

2 views (last 30 days)
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!

Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!