From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-10-2014 09:39 AM - edited 03-10-2014 09:42 AM
Hi Everyone,
Is there any way to Programmatically select a camera ICD and assign/load it to an interface from LabView?
Background: I have a test station that is used with a number of different Camera types (all with their own specific .icd file) and I'd like the end user to be able to simply select the camera they are working with from a drop down menu in the labview test application and not have to navigate through MAX to set up the camera.
Is this possible?
Thanks,
Peter
Solved! Go to Solution.
03-11-2014 10:40 AM
Hi nemi,
There is no built-in way to programmatically select a camera icd file, but it is possible to do this by parsing through the iid file and modifying the text. This document has more information on how to do this.
Good luck with your application!
03-11-2014 10:51 AM
Thanks. Looks like a workable solution. Does it take effect imidiatly? (close vision comms, change icd file, open new comms to new camera)
03-11-2014 07:02 PM
You will need to deconfigure grab, read the new file, and then re-configure grab again. The deconfigure vi is in the advanced tab.
03-11-2014 09:06 PM
What kind of camera is this? More specifically, are you using IMAQ or IMAQdx?
03-19-2014 09:53 AM
IMAQ cameralink cameras on a PCI 1428.
I may also need to do somethign similar in the future with GigE cameras in IMAQdx but there is IMAQdx enumaration vi and direct access to the properties making the GigE a bit more plug+play so I hope I don't have to.