Is it possible to programmat​ically modify camera descriptio​n files?

Hi all,
Basically I'm trying to figure out how to store to file the changes a user made to the .iid and/or .icd values during an app run.
For instance... I have utilities built up that help the user vary the Black and White reference voltages (using an IMAQ 1408) interactively (they can see the results of each new value nearly instantly). The problem is that these changes only last for that program run... meaning that once the app is restarted the values found in the .icd file (I presume) are re-loaded.
I had thought that the .icd file was similar enough in format to the standard configuration file format to make using the read/write config file VIs applicable. However th
ere are subtle differences that cause problems when re-writing the file.
I am also not sure that the values stored in the .icd file are exact matches with those presented under MAX. For instance the key names that seem to be related to the black and white reference voltages don't always reference numerical values that are matches with those displayed in MAX.
Does anyone know of a way to store programmatic changes to IMAQ properties, without having to store all the modified values into a seperate file?

The only way I know to record changes in an ICD file is to use MAX, other than directly editing it as a text file. Any changes you make during the execution of a program will, as you said, revert to the default values the next time you run the program.
To store the changes, the easiest way would probably to have the user use MAX for permanent changes. The MAX interface is relatively easy to use (after a short learning curve). You can get immediate updates after changing values by using the grab button to continuously update the image.
If you don't like the MAX interface, I think you are going to need to store the values in a separate file. You could try to change the contents of the ICD file by using string manipulation, but I don't think it would be worth t
he amount of time it would take to develop the tools.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • How do I programmat​ically modify array element sizes?

    Hi All,
    I have a quick question about modifying the size of array elements. Hopefully someone can help, because I am at a dead end!
    I am logging some intensities from a Fibre Array using a camera. For calibration of the system, I acquire an image from the camera, click points on the image to divide it into areas of interest. I overlay my image with a grid showing the regions of interst - for example a 4x6 array. I then have to select the fibres - or ROIs - I want to log from.
    I have a cluster type-def ( a number and a boolean) to specify the fibre number and to turn logging from that fibre on/off. I overlay an (transparent) array of this typedef over my image to correspond with the regions of interest. So here's my problem - I want to modify the dimensions of the array so each control matches my ROI. I can resize the elements by rightclicking on the elements on the frontpanel, but can't find a way to do it programmatically. The Array Property Node>>Array Element>>Bounds won't 'change to write'...thats the first thing I tried.
    Its really only important that the elements align with my ROIs - so programmatically adding in gaps/spacings would also work for me...but again I can't figure out how to do this! I've attached a screenshot of part of my image with array overlaid to show you all exactly what my problem is.
    Thanks in advance for you help,
    Dave
    PS I am running Labview 8.6 without the vision add on.
    Solved!
    Go to Solution.
    Attachments:
    Array_Overlay.png ‏419 KB

    Here's my cheat (and cheap?) way If you want to get fancy and center the numeric and boolean indicators, you could add spacers on the north and west sides, too.
    Attachments:
    ClusterSpacer.vi ‏13 KB

  • Programmat​ically modify scan engine scaling

    I need to be able to programmatically adjust the scaling factors for my cRIO analog channel.  I manage all
    my I/O from an external spreadsheet that gets compiled and ftp'd to 9
    cRIO targets.  Each cRIO will have different scaling factors.  I
    understand that this is a feature that will be forthcoming but I need
    to be able to do this within the next 2 months.  I already have in
    place a secondary scan engine of my own design that replicates all the
    I/O and includes such niceties as scaling, filtering,  zero offset and
    deadband updating.  Recently I noticed a file on the cRIO called
    'variables.xml' which quite clearly contains all of the I/O variable
    properties.  I am planning on writing a utility vi that can modify this
    xml file.  I believe I would have to call this vi from my cRIO code and
    then reboot to have it redigested into the LOGOS? server or scan
    engine.  I understand that the development engineers loath to support
    this type of activity and I also would not want this to be permanantly
    in my code, but only as a short term solution until the proper API is
    released.  If anyone has a better idea I would love to hear about it.

    sachsm,
    While I definitely don't promote doing what you suggested, I tried it out and it looks like it should theoretically work with a reboot.  I only did this with a straight VI ran from LabVIEW.  The xml file is generated when the scan engine variables are first deployed.  This file is updated on an input-by-input basis based on what was edited in the project explorer.  If the xml file is edited, then the device rebooted (but the project not changed) and you run the VI, the 'updated' scaling will be present.  Once you edit the particular IO in the project then it will override the manual edit.  When these are changed the scaling changes go into effect immediately and the device doesn't need to be rebooted.  Good idea, indeed, not sure if or what the implications may be with this though.  Definitely try at your own risk for this one.
    Regards,
    Jared Boothe
    Staff Hardware Engineer
    National Instruments

  • Is it possible to recover ical data lost in a sync?

    Is it possible to recover ical data lost in a sync?

    Your only bet is to resotre from the Time Machine backup. However when you do this the sync process will promptly delete the calendars again, so you need to work through the slightly convoluted method detailed in this page:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudtm.html

  • Is it possible to programmatically replace a Sub Report in a crystal report

    We create crystal reports via the crystal report designer (not in any IDE) , and attach the reports directly to the database via stored procedures. Each report contains a page header and a page footer with patient demographic data. We distribute these reports to our customers and they may edit the templates and alter the page header and page footers specific to their needs.
    We are looking at using sub reports to build a "model" page header and page footer that would be inserted into each template at design time. What we would like to do is allow the customers to create their own sup reports to contain their custom page header / page footer and then programmatically replace the " model" sub reports with the custom sub reports. Please note that these sub reports would not contain any data access and would not be linked to the main report, rather the main report would assign the data that is displayed in the page header/page footer data to shared variables,  and the sub reports would use the shared variables as their data source to display the data.
    Is it possible to programmatically replace 1 sub report with another ? If so are there any code snippets to review -

    Yes it is. Submit your post to which ever SDK you are using into the Developer forums. But search the posts first and look in our samples. This is relatively easy to do.
    Thank you
    Don

  • Is it possible to automatically trigger a camera when someone arrive in the background hahaha.. Just a wild thoughts you know, like when someone suddenly pop up, the camera will automatically fire. I'm planning to use it in our Horror tunnel this october.

    Is it possible to automatically trigger a camera when someone arrive in the background hahaha.. Just a wild thoughts you know, like when someone suddenly pop up, the camera will automatically fire. I'm planning to use it in our Horror tunnel this october.

    You could try to use a motion sensor - in a do-it-yourself store you can buy motion sensors that turn on the lights when a burglar approaches the property. Connect this sensor to the remote control of your camera instead of to a light.
    Probably you can buy ready-made motion sensitive remote controls, the photographers here will know. You would need this kind of remote control for wildlife photography.

  • Is it possible to plug an external camera into 1/8" a/v jack on my iPhone a

    Is it possible to plug an external camera into 1/8" a/v jack on my iPhone and view/record live video
    I am constantly installing surveillance cameras at various locations; I'd like to be able to use my iPhone as the live view device (as opposed to a larger portable DVD player).
    Is this possible, will the iPhone accept a video signal via the 1/8" jack like the external microphone, or even through the service dock
    In short I want the composite cable to provide a VIDEO IN, and a video out
    If this has already been developed please point me in the right direction. If not, any idea on how to develop the APP/Coding/Hardware, would also be of great help. Thank you in advance for you help.

    I am looking to do the same i have ben looking on the net the last few months but have found nothing it has to be possible if you can play video on a tv you should be able to record. Maybe a developer would be interested in developing a app.

  • It is possible to programmatically disable the "Executing Code Modules in an External Instance of CVI" feature?

    It is possible to programmatically disable the "Executing Code Modules in an External Instance of CVI" feature within a CVI project?
    I know how to do it manually (Configure > Adapters... > Adapter Configuration).
    Thanks in advance,
    --M

    Yes. TestStand 2.0 added the Engine.CVIAdapter_ExecuteStepsInCVI property.

  • Programmat​ically reading controls in a Tab Control

    I can use Property Nodes to read controls on a front panel, but they seem to miss controls inside a Tab Control.
    Is it possible to programmatically read controls in a Tab Control?
    Attached is an example VI illustrating this.
    Attachments:
    Controls Mismatch.vi ‏21 KB

    I didn't open your code.
    A tab control has a property called Pages. This is an array of page references. Wire this property node to a for loop, then use a property node to read the property CtlsOnPage to get an array of references for each element on the page of that tab.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Is it possible to synch ICal in OS10.8 and Google Calendar so friends can view and change it on a PC?

    Is it possible to synch ICal in OS10.8 and Google Calendar so friends can view and change it on a PC?  The friends have no IOS devices, ITunes, or ICloud accounts.  Thanks, if you have performed this miracle!

    There's a non Apple supported hack/methode that may let you share iCal calendars: iCloud Mail settings in Snow Leopard
    OT

  • Is it possible to programmatically start the CAN Bus Monitor?

    Is it possible to programmatically start the CAN Bus Monitor?  I was unable to find the executable, so either I'm not looking in the right place or it's built into NI-CAN or MAX.
    Message Edited by FlamingYawn on 05-24-2007 06:19 PM
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

    Indeed it is.  I found the executable at c:\Program Files\National Instruments\NI-CAN\bin.  It won't run by simply clicking on it, you must call it with the can port (e.g. CAN0) as the first paramenter.
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

  • Is it possible to charge a Canon camera battery pack using a USB port?

    Is it possible to charge a Canon camera battery pack using a USB port?

    bkroczak wrote:
    Either is fine. I looked on ebay and battery pack chargers seem to be available to plug into USB ports. Until now my cameras only took regular batteries. I'm not sure if it will take an awful lot longer than charging at 110V but at least it's possible.
    I'd be surprised if this effort pans out. The only Canon camera I've ever owned that could charge its own battery was a G-5. And I'm pretty sure it didn't do it through a USB port. It had, IIRC, a special charging port. and the charger itself ran on 110VAC.

  • Is it possible to connect an external camera via bluetooth to the Iphone 4 and use it with Facetime, if not.. why?

    Is it possible to connect an external camera via bluetooth to the Iphone 4 and use it with Facetime, if not.. why?

    Ok, in 2015 is it possible now? I would like to use an iPad and Face to share content between a dressmaker in Asia and a customer in the US, and I would like to attach better camera's than the built-in camera's on the devices.
    Any thoughts? Any updates to the original post?
    Thanks,
    James

  • Is it Possible to add a Short Camera Video to a Slideshow?

    Is it possible to include a short camera video into an iPhoto slideshow?
    I have been able to import the video into iPhoto but the program does not appear to allow me to include the video into a slide show.
    My nephew has been able to create a dvd which combined pictures and a short video that was taken directly from his camera using a pc and a program he downloaded for free from the Net. I hope iPhoto has this capability.
    Please Help
    Ron

    Hi Lori
    Thanks for the info.
    It is unfortunate that iPhoto cannot do this because it has been my experience that still picture quality remains much higher when I use a slideshow in iDVD or iPhoto as opposed to video programs such as iMovie and Final Cut Express.
    As an experiment, I imported the same photos into a slide show as well as Final Cut Express - the end result on my TV was that the slide show photos were far sharper.
    I guess thats ilife.
    Ron

  • Is it possible to import iCal from an unbootable drive?

    My G5 will not boot. However, in target mode I have access to all it's files. I have copied all those files onto another portable drive. Is it possible to replace iCal on my second computer with my old iCal file? If so, which file do I replace?
    I hope this is clear. Thank you so much for any help.
    HR

    If you mean the calendar data, rather than the application program, copy folder /Users/your id/Library/Calendars
    AK

Maybe you are looking for