Multiple camera support by Linux SDK

any question related to our SDK and driver

Moderators: yang, Support@ZWO

Post Reply
seemezoo
Posts: 2
Joined: Sun May 17, 2020 2:24 am

Multiple camera support by Linux SDK

Post by seemezoo » Wed Jul 08, 2020 1:57 pm

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

Tech@ZWO
Posts: 132
Joined: Mon Nov 26, 2018 9:59 am

Re: Multiple camera support by Linux SDK

Post by Tech@ZWO » Thu Jul 23, 2020 10:32 am

Hi
Thanks for feedback
Our SDK development engineers will optimize it

Post Reply