Hi. I have a question about multiple camera support by Linux SDK.
- Question
Can I control multiple ASI cameras under thread (pthread) programing using Linux SDK ?
- Environment:
Linux SDK v1.14.1227 / x64
UBUNTU 16.04 amd64 / gcc
ASI358MC and ASI294MC
- main flow of the viewer program:
ASI_OpenCamera();
ASI_InitCamera();
initialize gain, exposure time, etc
ASIStartVideoCapture();
while (1)
{
ASIGetVideoData();
Display_Frame();
}
- description
The above viewer programs work fine for my 385MC and 294MC,
if the programs were executed as separate processes.
But if I execute above flow using pthread functions for each camera,
ASIGetVideoData() won't return.
Is this a supposed behavior of Linux ASI SDK?
Do I have to use fork() system call instead of pthread?
P.S.
Even if I put mutex lock/unlock before and after ASIGetVideoData(),
the problem still occurs.
Thanks
Seemezoo