Calling C functions in Matlab for National Instruments
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre National Instruments Frame Grabbers 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!