Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Drive a Control Line High or Low in the Camera File

Primary Software: Driver Software>>NI-IMAQ
Primary Software Version: 3.5.1
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Image Acquisition (IMAQ)>>Digital Image Devices>>PCI-1428, Image Acquisition (IMAQ)>>Digital Image Devices>>PXI-1424, Image Acquisition (IMAQ)>>Digital Image Devices>>PCI-1427, Image Acquisition (IMAQ)>>Digital Image Devices>>PCI-1422, Image Acquisition (IMAQ)>>Digital Image Devices>>PXI-1428, Image Acquisition (IMAQ)>>Digital Image Devices>>PCI-1424, Image Acquisition (IMAQ)>>Digital Image Devices>>PXI-1422, Image Acquisition (IMAQ)>>Digital Image Devices>>PCIe-1429, Image Acquisition (IMAQ)>>Digital Image Devices>>PCIe-1430, Image Acquisition (IMAQ)>>Digital Image Devices>>PCIe-1427, Image Acquisition (IMAQ)>>Digital Image Devices>>PCI-1426

Problem:
I have an NI Frame Grabber, like the PCI-1422, and I am making my own camera file. I would like to know how to toggle the polarity of the control lines on my image acquisition board. I do not want to just toggle the line or send a pulse, but rather set it high or low. How can I drive my control lines either high or low through my camera file?

Solution:
This is fairly simple to set up. All you need to do is set up an Attribute in your camera file to handle this. Follow these steps to be able to drive your control lines in your camera file:
  1. Open the Camera File Generator and open your camera file (or create a new one).
  2. Select the Camera Control tab.
  3. Click on Add to add a new camera Attribute to the tree.
  4. When the Add Attribute window pops up, give the new Attribute a name. You can call it whatever you would like. For example, you can call it "Control Level" or "Drive Control Lines".
  5. Select List as the Attribute Type.
  6. Click on the Add button in the List Values section.
  7. Add List Values of "High" and "Low" and then click OK.
  8. Highlight the "High" value that you just added that shows up in the tree. Click on the Pulse Generation tab on the right hand side under the Actions section.
  9. Click on the Add button on the Pulse Generation tab.
  10. When the Add Pulse Generation Action window comes up, select the Control Line that you want to control under the Pulse Settings section. Then select Start High as the Initial Polarity, and then select OK.
  11. Repeat steps 8-10, but this time highlight the "Low" value in the tree and select Start Low as the Initial Polarity.
  12. Save your camera file.
By setting up this Attribute in your camera file, it will force the Control Line that you choose to be driven either high or low depending on which attribute you set. You can change these Attributes in the Measurement and Automation Explorer or in your program.

Related Links:
KnowledgeBase 3X8MT3HB: IMAQ Boards that Support Routing to the Camera Control (CC) Lines
KnowledgeBase 3X90KAHB: How Can I Control the Camera Control Lines Without External Signals?

Attachments:





Report Date: 05/11/2007
Last Updated: 05/11/2007
Document ID: 49A982HB

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit