04-29-2010 02:32 AM
Hello Labview World,
I have a small problem for LBWorld. I make LB program for reading/writing two cameras.My operation sys is Windows XP 32 bit SP2. In addition i use Sickıvp ranger toolkit (user library) to reading and writing process.
My problem is that is if i read only one camera, no problem my code is working but, if i read two cameras same time with same library(its a kind od paralell looping), i see this error: ERROR 1097 (you can see jpeg file)
LBWorld what is the basic problem for this?
It can be our sickivp library,
It can be Labview memory,
IT can be Sickivp library dll, or others...
If you have any idea about this please share me to solve....
Thank you for everything...
Note: I wan to share code but SickIVP library is so big (500 MB),
Kadir Can AYHAN
Computer Eng.
kadir@aser.com.tr
04-29-2010 06:55 AM
04-29-2010 09:05 AM
04-29-2010 03:12 PM
hi all,
There is so much sub vi. in toolkit, i will send exact code as soon as i reduce unnecessary steps. In the other hand in main vi there is simply config.vi, start.vi out of while and a grab.vi in the while loop. I duplicate this VI's and try to reach two cameras but i am getting error named 1097. After that I duplicate the DLL that has functions to control camera and changed all referances for second main vis(so i have 2 main vi's and 2 dll's with true references) but after that labview starst to shut down itself with no error. I know it is a memory problem and there is no way to use same dll for 2 main parts or 2 dll for 2 main parts(parts are same).
Can't i use one dll for two callers at very same time?
thanks in advance.
04-29-2010 03:44 PM
kacco wrote:Can't i use one dll for two callers at very same time?
thanks in advance.
That depends entirely on the DLL. As I noted, please look at the documentation for the DLL as to how you can use it.
04-29-2010 04:05 PM
I have seen Labview shut down on or after a DLL call if the calling convention is set wrong. There are only two possible choices, C and WINAPI. Try switching to the other one to see if this is your problem.
04-29-2010 04:11 PM
tbob wrote:I have seen Labview shut down on or after a DLL call if the calling convention is set wrong. There are only two possible choices, C and WINAPI. Try switching to the other one to see if this is your problem.
That's unlikely to be the problem. The OP noted that he has no problems using it with one camera. It's when he's trying to control 2 cameras that the errors start.
05-06-2010 05:56 AM
thanks a lot for your help,
i haven't solved this but for now i am using 2 cameras succesively. it seems ok but slow. i'll work on that.
05-06-2010 05:59 AM