10-05-2017 03:28 PM
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
Solved! Go to Solution.
10-06-2017 03:53 PM
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);
10-07-2017 11:27 AM
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);