How to validate Acquisition Window settings via C API?

Hi,
I am controlling a Basler CameraLink camers connected to an NI PCIe-1429 framegrabber. I'm acquiring frames, settings ROIs etc just fine via the NI-IMAQ C API. However, I need to set the Acquisition Window programmatically and it appears the API does not validate the attributes I send it. Nor does there seem to be a straightforward way of validating this programmatically.
Here's what I do:
I use imgSetAttribute2() to define IMG_ATTR_ACQWINDOW_LEFT/TOP/WIDTH & HEIGHT.
It doesn't seem to matter what numbers I pass this function. If the values are valid (i.e. does not exceed the max resolution of the camera) all is well. If I use values, say width, that exceeds the camera resolution no error occurs.
When I use imgGetAttribute() on these attributes, I can retrieve also invalid values as set.
When I attempt to do anything else, like setting an ROI, it of course fails with the error:
"The requested acquisition window is invalid."
Now, I do see in MAX that it is capable of reading the max resolution of the camera (under the Acquisition Parameters tab).
So, my question is:
How can I programmatically read the maximum image size through NI-IMAQ? How does MAX do it? 
Thanks,
Per

Hi Peka,
I know that MAX accesses the properties of a camera through the camera files. The camera files are located in a folder similar to:
C:\Users\Public\Documents\National Instruments\NI-IMAQ\Data
You should be able to see certain attributes of your camera in these files.
Paolo F.
National Instruments
Applications Engineer

Similar Messages

  • How to screen capture windows 7 via parallels using 27" iMac

    How to screen capture windows 7 via parallels using 27" iMac

    Just like you would with a Mac. Command shift 3 captures the whole screen to yourMac desktop and command shift 4 will capture a selection to the Mac desktop.

  • How many licenses for Windows 7 via both Boot Camp and either VMware Fusion or Parallels on the same MacBook?

    This concerns a white MacBook running OS X 10.5.8 Leopard.
    If I install Windows 7 on my MacBook with Boot Camp, and then use either VMware Fusion or Parallels to access that Boot Camp partition, will I need to buy two Windows licenses from Microsoft?
    I had not anticipated this, but when calling VMware and Parallels to check out the tech support services of the two companies, the person at VMware mentioned that I would need two licenses.  When I called Parallels, I then asked the person at that company whether two Windows licenses would be needed.  That person told me that only one license would be necessary.
    I then called Microsoft.  The representative there told me that my question could not be answered by Microsoft because that company does not provide support for users installing Windows on Apple computers.
    After that, I called Apple.  The Apple representative was not familiar with this type of issue.  She mentioned the possibility that the VMware Fusion and Parallels products might be different, and that that might be why using the former would involve two licenses and using the latter would involve only one license.
    Has anyone had experience with installing Windows 7 via Boot Camp, and then accessing that Windows 7 installation from VMware Fusion or Parallels?  If so, did you have to buy two Windows licenses?

    One license. You may have to re-register Windows online when you start it up in Parallels because Windows sees that it is now running on new hardware (virtualized) and thinks it has been installed on a new computer. If the online re-registration does not work, just call the registration number and go through the automated registration process. Once re-registered then use Windows from Parallels. If you are also installing MS Office in Windows you will need to go through the same process again for registering Office.
    The process is automated, simple, and free. You have made the process more complicated than it is by calling Apple, Parallels, and Microsoft when there is an automated MS registration number to call.

  • How to call business rules scripts via Java API

    Hi
    I have a problem. I have some scripts (business rules in essbase) that can be seen thru Administration Services Console under Business Rules folder. How can I execute these script using Provider Services (via Java API to EssBase interface)?

    hi
    i look too java api sample for "HBR Lounch"
    you can try found example in EAS folder
    C:\Hyperion\AdminServices\AppServer\InstalledApps\Tomcat\5.0.28\eas\webapps\hbrlauncher\MC_LaunchWindow.jsp
    please back, if you will have resolution :)

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • Windows 8.1 to 8.1 enterprise upgrade; How to keep Keep Windows settings, personal files, and applications?

    Hi,
    I am doing an upgrade for a customer from windows 8.1 to 8.1 enterprise via ISO,
    according to Microsoft TMB, you can save settings, personal files, and applications doing the upgrade, see http://technet.microsoft.com/en-us/library/jj203353.aspx#EightOne
    However, when I am trying to upgrade from 8.1 (same language, same architecture),
    I only get two options:
    1. Keep personal files.
    2. Nothing.
    (see screenshot).
    Why is that? what am I doing wrong?

    Yes. Please see:
    Add features: FAQ
    Windows 8.1 Pro Pack
    Carey Frisch

  • How do I install Windows 8 via ISO onto a modified MBP 2010 without an optical drive?

    I have a modified 2010 MBP without an optical drive. I'm trying to install Windows 8 through bootcamp by creating a USB disk, but Startup Disk does not recognize this USB. How do I install my Win 8 ISO? Thanks in advance

    I can kind of help you here. First you will need to find out if your computer can install Windows 8. The following computers can install Windows 8
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (15-inch and 17-inch, Mid 2010 or newer)
    MacBook Pro (13-inch and 15-inch with retina display, Mid 2012 or newer)
    Mac Pro (Early 2009 or newer)
    Mac Mini (Mid 2011 or newer)
    iMac (27-inch, Mid 2010 or newer)
    iMac (21.5-inch, Mid 2011 or newer)
    Your computer MUST have Boot Camp 5 running on Mac OS X 10.8.3 Mountain Lion or later other wise Windows 8 will not work.
    If you don't have one of those computers it won't allow you to install Windows 8. You can try getting a Windows 8 install disc and an external optical drive that supports Mac OS X. I reccomend the Soniq Slim DVD-RW Drive becuase it works with almost every disc including install discs. But before trying to use an install disc with an external optical drive make sure you go into boot camp assistant and remove the partition that you made for Windows. If this didn't help you go to Apple's Boot Camp FAQ for Windows 8. The link is below.
    http://support.apple.com/kb/HT5628?viewlocale=en_US&locale=en_US
    Hope this helped!

  • Validating Data... How to validate before you submit via sendData()

    I can validate the data fine, but how would I check to see if it is valid before I send the data to the server?
    I want to validateData() then sendData()
             private function sendData(e:Event=null):void {
                  author = new VOAuthor();
                  author.contactName = name_lb.text;
                  author.email = company_lb.text;
                  author.phone = phone_lb.text;
                  author.company = company_lb.text;
                  author.comments = comments_lb.text;
                  contactDB.submitQuote(author);
             private function validateData():void {
                    //(string must be two characters or longer)
                    nameValidator = new StringValidator();
                    nameValidator.source = name_lb;
                    nameValidator.property = "text";
                    nameValidator.minLength = 4;
                    // Phone validator
                    phoneValidator = new PhoneNumberValidator();
                    phoneValidator.source = phone_lb;
                    phoneValidator.property = "text";
                    // Email validator
                    emailValidator = new EmailValidator();   
                    emailValidator.source = email_lb;
                    emailValidator.property = "text";

    use validate property which returns validationresultevent:
    nameValidator = new StringValidator();
    nameValidator.source = name_lb;
    nameValidator.property = "text";
    nameValidator.minLength = 4;
    var r:ValidationResultEvent = nameValidator.validate();
    if(r.type == ValidationResultEvent.INVALID)
    Alert.show(r.message);
    // invalid.

  • How is it possible to install Windows 7 via USB-Stick on a 2009 iMac with a broken DVD-Drive?

    Hello,
    i have a 2009 iMac and Windows 7 64bit in my Boot Camp.
    Windows is now slow and needs to be reinstalled.
    The problem is the DVD-Drive in my iMac is broken, so i can't use my Windows-install-DVD.
    How can i reinstall Windows 7 via USB-Stick on a 2009 iMac with a broken DVD-Drive?

    F3Spirit wrote:
    Thank you,
    I try this.
    Also check this one out
    But i think you would be far better served by installing Windows in a virtual machine.

  • The print window settings dialog box will not come up

    When attempting to print a website, I need to select the option to print as laid out on the screen as described in this how-to: https://support.mozilla.org/en-US/kb/how-print-websites#w_print-window-settings.
    However, I have attempted to get this dialog box to come up on 4 different machines that all have Firefox 32 installed and updated. The operating systems of the 4 machines were 2 Windows 7 64bit, 1 Fedora 20 64bit, and Windows 8.1 64bit.
    It appears that using the print button launches the print preview screen. Pressing CTRL+P does not open this page either. Is this something I need to change in about:config? I already reset all the printing settings and reset firefox on these machine to see if that was the issue.
    Please let me know how to correct this behavior.

    On Windows 7 and Windows 8.1 systems, it does not come up. I did try disabling the pop-up blocker, but it just won't load the dialog box. It is driving me a bit crazy.
    And Office 365 does put the email out to a new window, but it still has frames :(. Microsoft's support forum advised setting IE and other browsers to print as displayed. The issue is I can't seem to figure out how to get that dialog box to come up. I have tried disabling the native dialog box in about:config, but didn't have any success with that either

  • Print window settings

    How to make Print window settings have big icon for printer selection because its to small for touch screen monitor

    Double tap to zoom the browser

  • How to copy the International settings from current user to default user/welcome screen on Windows 8.1/ Server 2012R2 via PS script?

    Hi,
    I have to script the international settings in virtual machines which are Win Server 2012R2 or Win 8/8.1.
    For the current user, it's quite easy.
    new-WinUserLanguageList nl-BE
    set-WinUserLanguageList nl-BE
    Set-WinSystemLocale nl-BE
    set-Culture nl-BE
    But how can I copy these settings to the Default user/Welcome screen? I cannot find a solution for that. Even on the site of Microsoft,
    http://technet.microsoft.com/en-us/library/hh852115.aspx all CMDlets are only for the current user.
    Maybe I'm looking with the wrong keywords, but... With Powershell v4 it should be possible, isn't it?
    Thanks for looking together and hopefully we can find an answer.
    Kind reg,
    Dirk

    Questions like this would best be answered in the deployment forum.
    The default lock screen tracks the current user.  The system lock screen tracks the local system admin account.
    There is a SYSTEM profile which, I believe, can be set via registry.
    http://social.technet.microsoft.com/Forums/windows/en-US/20d36ce4-c948-4c68-a415-dda9e0665159/setting-default-ui-in-windows-8-or-81-using-dism-online-setuilangenus-gives-error?forum=w8itproinstall
    ¯\_(ツ)_/¯

  • RDS 2012 R2 - How do I lockdown access to Local Computer Management and Windows Backup via Group Policy

    Greetings all,
    I am needing assistance in how to lockdown access to Local Computer Management and Windows Backup via Group Policy for users that access RDS service. I have followed this awesome guide - h t t p://w w w.it.ltsoy.com/windows/lock-down-remote-desktop-services-server-2012/
      - but it is missing two important resources that I would like to lock down.Currently, I have successfully locked down Control Panel for users via Group Policy, but I cannot find any group policy or guide on how to restrict user access
    to Computer Management (different to Server Manager). When using Win-X shortcut to open the 'Administrator's shortcuts' near the windows icon, I have locked down everything except Computer Management. Computer Management gives direct access to Disk Management,
    Shares etc, which are locked down for users. But Windows Server Backup is still accessible. Can someone please guide me on how to restrict access to both Computer Management and Windows Server Backup.
    Thanks in advance.
    Terry.

    Prevent running of Windows Server Backup
    Computer Configuration\Policies\Windows Settings\Security Settings\File System
    Right click on File System - Add File - Drill down to \System32\wbadmin.msc
    On the Database Security ACL that pops up - Remove Creator Owner, Remove Users and check Adminstrators have Full Access.
    On the Object window - choose Propagate inheritable permissions to all... (Default)

  • I installed windows 7 via bootcamo itself!... the installation nd stuff went all well!... :) but now my macbook it luncking only windows 7 automaticaly when ever i switch it on! plzz tell me how to switch which back to os x mavericks....

    i installed windows 7 via bootcamo itself!... the installation nd stuff went all well!... but now my macbook it luncking only windows 7 automaticaly when ever i switch it on! plzz tell me how to switch which back to os x mavericks....
    plzz help me with it....

    plzz help me out with this
    my enthernet is connected well and good!....
    but it is not allowing me to use the internet !...
    it is saying "no data found"....
    plzz i need ur help on connecting to internet!...
    m using 13inch macbook pro!...
    mavricks!....
    i tried using System Preferences > Network > Ethernet > ( assist me) > ( diagnostics )
    but wouldnt fix it!....
    the results were ;-ethernet is green
    network settings is green
    but ISP,internet and server are in red!....

  • How can I validate an email password via the BIS site

    I have received a message asking me to validate the password for an MSN email account I access through a work Curve 8520. I have done this before without any problem but now my BB says there is a problem connecting to the server so I can't access my email accounts to validate. Email is still coming through on other accounts. I tried to use the PC and access through the Blackberry Internet Server page but can't find anywhere there to access email account settings (all the guides say email settings are on the left hand pane of the page but not on any page I have found?

    Hey idilks,
    Welcome to the forums. 
    Have a look at this article, it should help you with your issue. 
    How to re-validate your Windows Live Hotmail, MSN, and Bell Sympatico email integrations
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • How to install windows 10 with windows 7 product key

    I read it in a website that Microsoft will provide windows 7 users with free windows 10 for the first year. I bought a laptop (Branded) with pre installed windows 7 a couple of years back, but after some days i formatted my laptop completely and inst

  • Moving itunes library from G4 with dead monitor to G5

    My 17 month old G4 imac's monitor died (apparently a common problem that Apple won't acknowledge)and they wanted $875 to fix it. Instead I got a G5. When set it up I did the file transfer thing by connecting the two boxes. I can see my old Itunes lib

  • Table entries

    Hi, I have created a new table ZTSD_T001W which is a copy of T001W table.In this table I have created entries through SM30.Here in SM30 for one field VTBFI  i want to create a blank value as a default value.How can I do that? Regards, Hema

  • Making JTextPanel transparent

    Hi, I am trying to put a JTextPanel that is transparent. using setOpaque(false) does not work for me. Gray background is still displayed instead of the background color image of the panel in which I have put the JTextPanel. The transparent JTextField

  • Why my motion4 templates doesn't run in mavericks?

    after i installed mavericks on my imac, i see this error on my screen after running motion 4 templates. Process:         Motion [636] Path:            /Applications/Motion.app/Contents/MacOS/Motion Identifier:      com.apple.motion Version:         4