LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1433 PCIe camera attributes in LabView

Hi!

 

I'm using a Bonito CL 400B -200fps camera with the 1433 NI frame grabber. I have it all set up and working on MAX and I have some code written in LabView and am using example code but I keep getting that the camera attribute is invalid. On MAX it's img0 and when I use this for the set camera attribute icon in LabView it doesn't read it. Any help would be greatly appreciated!!

 

I've attached the code I'm using. 

 

Thanks!

-Maria

0 Kudos
Message 1 of 7
(4,517 Views)

Hi Maria,

 

What error specifically are you seeing?  Do you have an error number or a screenshot?  Is it happening for every attribute you set or only some of them?

Regards,
Kelly B.

National Instruments
0 Kudos
Message 2 of 7
(4,487 Views)

Hi Kelly!

 

I'm getting Error 1074396962 occurred at IMAQ Se Camera Atribute; the requested camera attribute is invalid. It's happening any time I use the Set Camera Atribute; so for all of them.  I know that the interface is correct because I checked it on MAX and it's all working on MAX. I also had a question about the IMAQ Enumberate cameras VI. It says it's used for USB cameras so is there a version for PCIe cameras? I just don' t know how to get the camera attached with the code so I can get the pictures from it. 

 

Thank you!

-Maria

0 Kudos
Message 3 of 7
(4,477 Views)

Hi Maria,

 

I took a look at the help for that VI, but I didn't see any reference to it only being for USB devices.  What version of LabVIEW and what version of the IMAQ driver are you using?

 

The error you're seeing often occurs when either the name of the camera attribute is incorrect or the attribute being set is not an option.  If you attempt to set each of those camera attributes independently, which ones produce an error?

 

Are you able to interact with the camera in other ways in LabVIEW?  For example, can you snap or grab an image, or use the IMAQ Get Camera Attribute VI?

Regards,
Kelly B.

National Instruments
0 Kudos
Message 4 of 7
(4,455 Views)

Hi Kelly!

 

I have the 2013 version of LabVIEW and the 2015 version of IMAQ. I updated my code to include the IMAQ Configure Trigger VI and it ran but now I'm geting errors saying "The requested trigger line is invalid.  Please verify that this trigger line exists and is properly connected to your device." I verified that it was all working on MAX, so I don't know what I have done wrong. Here is the picture of what I have: error NI.PNG

0 Kudos
Message 5 of 7
(4,420 Views)

Hi MMWITHRO,

 

The error you're seeing now indicates that the requested trigger line is invalid.  Do you have a trigger connected to the camera, and do you mean that the trigger was working in NI MAX?

 

Are you able to perform a snap or grab with no additional code?  It would be helpful to start from the simplest scenario and build in additional configuration slowly, so you can isolate problems and resolve them one at a time.

 

This link has a list of many of the NI IMAQ Error Codes.  It may be a helpful resource for you as you develop this application.  http://zone.ni.com/reference/en-XX/help/370161G-01/imaqfr/error_codes/

Regards,
Kelly B.

National Instruments
0 Kudos
Message 6 of 7
(4,396 Views)

Kelly,

 

Thank you so much for your help! I was able to get images from the AVI example code on Labview so there must just be something wrong with how I wired everything. I'll tak a look at the error codes and keep working on it.

 

-Maria

0 Kudos
Message 7 of 7
(4,375 Views)