Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to set the On Board Clock in an ICD file

Hi I am trying to set the on-board clcok on the IMAQ-1424, but adding the command line below has absolutely no effect.
OnBoardClock (25)

The questions I have are:
1. Does this need to be in a certain point in the ICD file?
2. Does the PC need to be rebooted for the effect to take place?
3. Are there only certain clock speeds that are allowed?
4. Is there any logic that stops the clock speed from being set to any value? If there is what is it?
5. What would stop the clock speed from changing?

Many Thanks in advance.

Andy.
0 Kudos
Message 1 of 2
(3,126 Views)
Hi Andy. Why are you trying to set the onboard clock? Which camera are you using? There are most likely specific parameters that are allowed in this case, and they are probably fractions of some known timebase.

If you're trying to set a camera's pixel clock, then I suggest using the Action(Clock) token.

The Atmel-Grenoble TH78CH15AC camera file uses this token to output a particular pulse train on the Clock output line of a 1424. Here's the camera file section below:

Attribute (Master Clock) {
Value (List) {
Name (Internal) {
Action (Serial) {
Command (C=1\r)
Response (>OK)
}
}

Name (External) {
Action (Serial) {
Command (C=0\r)

Response (>OK)
}

Attribute (Frequency) {
Value (Integer) {
Min (10)
Max (40)
Increment (1)
Display {
Multiplier (1)
Offset (0)
Precision (1)
Units (MHz)
}

Default (40)
Current (40)
Action (Clock) {
ValueFrequency
}
}
}
}

Default (Internal)
Current (Internal)
}
}
}

I hope this helps. If you have a camera that is not currently supported by National Instruments, I encourage you to contact our Applications Engineers at www.ni.com/ask.

Kyle V
0 Kudos
Message 2 of 2
(3,126 Views)