ni.com is currently experiencing slowness/issues due to ongoing maintenance.

Support teams are actively working on the soonest resolution.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

What do these commands exactly do generated by NI Camera File Generator?

Hi,
 
I'm using NI Camera File Generator 2.0.2 to generate a camera file for Atmel SM2 CL 4010 line scan camera. I have a couple of questions:
 
1.   Tap (0) {                                                         
         Position (Adjacent)                                    
         Start (Left, Top)
      }
      Tap (2) {
         Position (Adjacent)
         Start (Left, Top)
 
 What does the tap direction mean? When I change it, it goes from Top-->Bottom. Does "Top" means the first pixel come in first, "Bottom" means last pixel come in first?
 
2.  Pattern {
      Action (PG) {
         Line (0) {
            Start (Low)
         }
         Line (1) {
            Start (Low)
         }
         .
         .
         .
         Line (7) {
            Start (High)
         }
         Clock (0x78)
         RepeatSource (Fixed, 10)
      }
 
What's the clock? What does the value (0x78) represent? and what does RepeatSource command exactly do? I found if I set different value for RepeatSource, I got different results.
 
Thanks for any help and suggestion.
 
Yinsheng
0 Kudos
Message 1 of 2
(2,777 Views)

Hi,

There is actually a camera file already created for your camera.  You can download it here http://sine.ni.com/apps/utf8/nipc.product?pid=6645

But it looks like you have the tap position figured out, but here is a short explination of the other functions you asked about.

The RepeatSource function should only be used in line scan cameras.  It repeats the generation of lines at a particular rate.  The rate is specified by the second parameter.  The unit is clocks.  RepeatSource sets a minimum period for the overall pattern generation cycle.  For example RepeatSource (Fixed, 1000) if no pattern generation lines have a pattern length of over 1000 timebase units, the pattern will repeat every 1000 units.  If a pattern generation line has a longer pattern, the PG line determines the repeat rate. 

 

The Clock function is a key to indicate that instead of using the incoming pixel clock from the camera as the timebase for the pattern generation, we will be using the 50 MHz crystal oscillator on the board.  It is recommended to always use this setting (or its hex equivalent : Clock (0x78)) rather than the pixel clock.  This will guarantee consistency and often times makes calculations easier.

 

I hope this helps.  Keep me posted.

Have a great day

 

GG

0 Kudos
Message 2 of 2
(2,742 Views)