Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I connect a firewire Camera in Grab and Save to AVI

I have a Basler scA640-70fc camera that I am tiring to connect and get an image with in the Grab and Save to AVI VI.

I can get an image when I test with Measurement and automation explorer with no problem, But I can not connect the camera in the Grab and Save to AVI VI

Within the Measurement program the camera is labeled as Cam5 basler scA640-70fc, I have tried to input this into the but still can not view the camera and get an error of 1074397145 NI-IMAG no interface found. I have tried several different combination of name and description with no success.

 

I am running Labview 8.6 and Vision Ver 4.3 I have tried using the Vision Acquisition but I can not save this file using this vi.

 

Any help would be greatly Appreciated

 

Richard

0 Kudos
Message 1 of 12
(4,499 Views)

Hello,

 

If you are using a firewire camera, that uses the IMAQdx driver. I believe that the Grab and Save to AVI uses the IMAQ driver which interfaces with framgrabber boards. This link has the same example written for IMAQdx:

http://decibel.ni.com/content/docs/DOC-3587

 

-Zach

Message 2 of 12
(4,488 Views)

This did the trick thank You.

 

I am adding it to a existing VI with a timer for the amount of capture, is it possible to just create this within my existing VI or do I have to make a separate While loop for it.

 

Here is the VI I am going to add it to.

 

I am not sure how to add the enable to start the recording of the AVI file and stop it after 10 second.

 

I will keep tiring.

 

Thank You

 

Richard

0 Kudos
Message 3 of 12
(4,460 Views)

Is there a way to not have the VI begin capturing video until I press a button or select to start capturing?

 

When I added this to the Original VI I can only get one to run, What I am tiring to due is have the VI displaying data from the system and not start taking data or Video until I press the Capture button.

 

I can not find where to control the Video VI from starting when I start the main VI

 

I am not sure where to go from here.

 

Richard

 

0 Kudos
Message 4 of 12
(4,454 Views)

Hello,

 

With what you have now, I think you would be best served to place this within another loop in your same VI. Right now, once your reach your acquisition loop, the outer loop cannot continue executing until the acquisition loop has finished. You could move your initialization code for the acquisition outside of the main loop and then place teh Grab within the loop. Once you do that, you would then have to control starting or stopping the acquisition based on your time requirements.

 

-Zach

Message 5 of 12
(4,438 Views)

Thank you I will try taht now.

I need to finish this today my run is today and I am still working on it.

 

Richard

 

0 Kudos
Message 6 of 12
(4,433 Views)

I have moved the Timer into the AVI loop and moved it outside the main loop, The Data VI runs first but I can not get the AVI or the Write to File to run now.

Here is what I have tried

 

Thank You

 

Richard

 

0 Kudos
Message 7 of 12
(4,432 Views)

Hello,

 

By connecting the top loop to the bottom loop with wires, you have made the bottom loop dependent on the top one. This means that the bottom loop cannot run until the top loop has finished.

 

-Zach

0 Kudos
Message 8 of 12
(4,429 Views)

How can I not connect the loops together and still beable to let the Main data vi run to display the data and then capture the AVI and Data, I have tried moving the write to Measuement file into the outer loop (AVI) but still only the main loops runs. Do I have to have two capture buttons for each loop? One for Data and one for AVI?

 

When I run this VI I need to see the Main VI display and then press the Capture button to save my 10 secs of data.

 

 I can not find any thing in the examples of doing any thing like this.

Richard

0 Kudos
Message 9 of 12
(4,418 Views)

Hello,

 

It looks as though you have already started to make use of the local variables. Likewise, you can use local variables to exchange information between two parallel loops by linking them to a single button. You could also use property nodes, notifiers (if you only want the most recent value to be read) or queues (if you need to make sure nothing is lost).

 

-Zach

0 Kudos
Message 10 of 12
(4,388 Views)