LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot get camera attribute FrameInterval

Solved!
Go to solution

I have Labwindows CVI 2015 SP1 and Vision Acquisition version May 2017.

I have a Teledyne DALSA Rad-icon 6K HS camera. I want to set the FrameInterval attribute, but I cannot even get the FrameInterval attribute.  It shows up under NI Max on the Camera Attributes tab under the Detector Control topic as "Frame Interval(us)" and appears to be editable.

 

Is this a problem that National Instruments can assist me with or is this a Teledyne problem?

My code:

// this works and gets 2304
IMAQdxGetAttribute (session, IMAQdxAttributeWidth,
IMAQdxValueTypeU32, &count);
printf("/nWidth is %d",count);

count = 0;

// this works and gets 2304
IMAQdxGetAttribute (session, "Width",
IMAQdxValueTypeU32, &count);
printf("/nWidth is %d",count);

 

// this works and gets "Teledyne Dala"
IMAQdxGetAttribute (session, IMAQdxAttributeVendorName,
IMAQdxValueTypeString, v_name);
printf("/nvendor name is is %s",v_name);

 

// this does not work. I get run time error "attribute not supported by the camera"
IMAQdxGetAttribute (session, IMAQdxAttributeFrameInterval,
IMAQdxValueTypeU32, &interval);
printf("/nFrame Interval is %d",interval);


The xml file
C:\Users\Public\Documents\National Instruments\NI-IMAQdx\Data\XML\TeledyneDALSA_ShadoBoxHS_354cf4b2_1CA48.0000.xml
has the following entry for FrameInterval:

<Integer Name="FrameInterval" NameSpace="Standard">
<ToolTip>Frame Interval (us)</ToolTip>
<Description>Length of frame blanking interval in microseconds;use as alternative to Extended  Exposure</Description>
<DisplayName>Frame Interval (us)</DisplayName>
<Visibility>Beginner</Visibility>
<Streamable>Yes</Streamable>
<pValue>pFrameIntervalReg</pValue>
<Min>13000</Min>
<Max>65535999</Max>
</Integer>

<IntReg Name="pFrameIntervalReg">
<pIsLocked>TLParamsLocked</pIsLocked>
<Address>0x20000280</Address>
<Length>4</Length>
<AccessMode>RW</AccessMode>
<pPort>Device</pPort>
<Sign>Signed</Sign>
<Endianess>LittleEndian</Endianess>
</IntReg>

 

 thanks, Ron

0 Kudos
Message 1 of 3
(2,282 Views)

Hi Ron,

 

If you enumerate the attributes supported by the camera, are you able to find the Frame Interval attribute? 

The call you can use is: IMAQdxEnumerateAttributes (session, cameraAttributes, &attributeCount, NULL); 

 

 

T. Le
Vision Product Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,241 Views)
Solution
Accepted by topic author rbm1024

It appears that I must specify this attribute as shown in the .xml file 

// this does not work. I get run time error "attribute not supported by the camera"
IMAQdxGetAttribute (session, IMAQdxAttributeFrameInterval, IMAQdxValueTypeU32, &interval);

// this works

IMAQdxGetAttribute (session, "FrameInterval", IMAQdxValueTypeU32, &interval);

// as does

IMAQdxSetAttribute(session,"FrameInterval",IMAQdxValueTypeU32, interval);

0 Kudos
Message 3 of 3
(2,228 Views)