Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Sapera Camera vi drivers Labview Assistance

Hi All,
 
I am purchased Sapera Drivers for Labview to run my CMOS Photon Focus cameras synschrounously with a trigger (Image_1). I have a slight problem in that when the code calls Select Video Source each time (one for each camera) it doesn't give me the default values I have set it too (Image_2). I have created 3 seperate vi's and saved them under different names so I can change the default from each camera. The code is in Image_3 and Image_4.
 
This doesn't work as when each vi runs it gives me the wrong default values. Can you guide me as to how I would go about doing this. I can't' understand why when the are saved as different vi's and the defaults when I open the vis are the same why it would come up differently when I run the code.
 
 
Regards,
Darren
 
 
 
 
Download All
0 Kudos
Message 1 of 4
(4,582 Views)

Hi Darren,

I believe you are running into this issue because you are trying to change several instances of  the same subVI. LabVIEW only allocates one memory space for this subVI therefore when you try to change it you are essentially only making changes to one subVI, not three separate ones. To work around this, you can make the front panel controls of Select Video Source -- Board, Channel, Serial Number, etc... -- inputs to the subVI. Here are the details to do this: Creating Connector Terminals for SubVIs in LabVIEW

Then make sure the subVI is reentrant so that you are able to make several calls to the same subVI. Below is a link with further information on reentrant VIs:

Differences Between Reentrant VIs (Preallocate), Reentrant VIs (Share Clones), VI Templates, and Dyn...

Does this solve your issue?

--Michelle

National Instruments
0 Kudos
Message 2 of 4
(4,568 Views)
Yes thank you very much!! Smiley Happy
0 Kudos
Message 3 of 4
(4,566 Views)
You are very welcome!
--Michelle

National Instruments
0 Kudos
Message 4 of 4
(4,549 Views)