09-25-2006 03:25 PM
09-29-2006
05:12 PM
- last edited on
07-10-2025
09:46 AM
by
Content Cleaner
Hey wwg,
There are ways to do everything you asked but you will need to manually edit the camera file to do so. You will need to upgrade to the newest version of Vision Acquisition Software since a few features we'll need are fairly recent.
Open up the camera file you've created in notepad. Find the section labeled:
Pattern {
Action (PG) {
Line (0) {
Start (Low)
}
Clock (0x78)
}
}
The above portion of the camera file is almost certainly not the same as yours but rather demonstrates the section we'll need to modify.
1) There is a way to change the length of patterns generated by the 1422 and it can certainly match the 10s exposure you will need. A pattern is defined by a number of clock cycles. We support patterns of up to 2^32 clock cycles. Here is an example of using control line 0 to generate a pattern for 20 clock cycles high and 10 clock cycles low.
Line (0) {
Start (High)
20, 10
}
Note: A pattern does not need to be symetrical. If all you need is 20 cycles high and low afterwards then the pattern could just be:
Line (0) {
Start (High)
20
}
2) You can change the pattern generation clock frequency using the Clock() attribute. There are three clocks you can choose from:
50Mhz - Clock(0x78)
100khz - Clock(0x48)
pixel clock - Clock(0x18)
Remember that your pattern is measured in clock cycles in the camera file so you will need to convert the length of time needed into cycles of the timebase you select.
3) There is a way to specify the control line level when snap and grab are inactive. This is a new camera file attribute called the Idle state. Idle state (the inactive time after IMAQ Init but before and after you Snap or Grab) defaults to tristate which is why you are seeing an indeterminate state when snap and grab are inactive. Here's how it will look in the camera file.
Line (0) {
Idle (Low)
Start (High)
20
}
Note: Ordering is slightly sensitive and I suggest putting your pattern cycles last in this section.
Please let me know if this solves your issue or you have any further questions.
Regards,
Ryan F.
Message Edited by RyanF on 09-29-2006 05:18 PM