Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure a 1394 camera for compiling into an exe?

I have attached a 1394 camera to my development station w/IMAQ Vision module and have developed a program.  I configured the camera parameters in MAX.  One of my individuals I work with has LabVIEW and Application Builder.  I would like to e-mail him my program and have him compile into an exe.  However, I'm concerned that the camera parameters I set in MAX will not migrate.  How should I proceed?
 
FYI - I tried to export the settings file in MAX but the camera did not appear in a list that I could export.  The camera was detected and worked properly in MAX.

Thanks,

Michael
0 Kudos
Message 1 of 4
(3,742 Views)
I have two suggestions for you:

1) You can use Ni Vision functions : writeattribute/readattribute in your code to set camera parameters.

2) you can send to your friend the file CAM0.IID (the file name depends on the interface name) from the folder C:\Programmi\National Instruments\NI-IMAQdx\Data (adjust the path depending on the drive letter and the driver you used - maybe NI-IMAQ for IEEE instead of NI IMAQdx). It should be copied in the same dir of the destination pc. I haven't tried it, but it should work.

Bye

Message Edited by simonerom on 06-15-2007 05:34 AM

--
Simone
0 Kudos
Message 2 of 4
(3,740 Views)

Hi guys

It's not enough to migrate the IID file - that's just the camera identification. The settings themselves are stored in the ICD files, so you have to transfer those ones. The corresponding ICD for a given IID is written somewhere in the body of the IID file.

Vladimir


View my profile on LinkedIn
0 Kudos
Message 3 of 4
(3,711 Views)
Vladimir,

You are correct. To deploy the settings for an application, you will need:
  1. the sample application
  2. the interface file (eg cam0.iid)
  3. the camera file (eg Basler A601 (#xxxxxxxxxx).icd)
As an alternative, you may choose to write your application such that the settings are stored in the application. In this manner you only need to deploy the sample application. The interface file and camera file will be generated with default values the first time you run your application with your customer camera.

Hope this helps,

JohannS


Message Edited by JohannS on 06-18-2007 01:58 PM

0 Kudos
Message 4 of 4
(3,703 Views)