Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you set up the Master Clock0 or 1 in PCI-1422?

How do you set up the Master Clock0 or 1 in PCI-1422?

 

Thanks!

 

Bahadir

0 Kudos
Message 1 of 7
(4,499 Views)

Hi Bahadir

 

Most camera files will not allow you to change the Master Clock, this is visible however under the Camera Attributes it will just be grayed out. The reasoning for this is that the Camera is designed to work off a specific frequency and changing this may have negative repercussions. You may be able to change this in the code itself with the IMAQ set Camera Attributes. If you need help finding the attribute please let me know what Camera you are using? 


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 2 of 7
(4,475 Views)

Hi Eric

Thanks for your reply.

I have an unsupported camera and a working camera file generated for PCI-1424(written by some else). I want to get the same camera working under PCI-1422. The camera needs a 25MHz clock(which was generated by an external source in the old system), and I want to use the Master Clock0 for that. I opened the old camera file written for PCI-1424, modified it for PCI-1422 and added the same code in the following thread:

http://forums.ni.com/ni/board/message?board.id=200&message.id=1516&query.id=119356#M1516

but I did not observe any activity at the Master Clock0 pin.

Any help will be appreciated.

Thanks again!

0 Kudos
Message 3 of 7
(4,470 Views)

Hi Bahadir

 

The Master Clock outputs on the PCI-1422 boards are not accessible using the NI-IMAQ API. They are only accessible through the camera file. The text file linked in the other discussion thread should cover what you need to change in your camera file. What are you using to measure whether the master clock is active or not? When using this code there are two commands that set the output frequency, ValueFrequency and FloatValueFrequency. The ValueFrequency command takes the integer value of the attribute and outputs that value in MHz. The FloatValueFrequency takes the value of the display multiplier into account. In the text file linked, the default value of 10 (which will display as 1.0 in MAX), gets multiplied by 0.1 to give an actual frequency of 1.0 MHz.

 

If modifying the file continuous to cause problems you may find it more easy to just generate a new Camera File using theNI Camera File Generator.


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 4 of 7
(4,452 Views)
Hi Eric,

Thanks for the reply!

I am probing the Master Clock with an oscilloscope.

How does the given code tie into (set the right hardware register) for the Master Clock0 or Master Clock1?

Are "Camera Clock" and "Frame Grabber Clock" associated with Master Clocks?

What does Action(Clock){Frequency(0)} or Action(Clock){FloatValueFrequency} do?

Thanks again for all your help.

Bahadir

0 Kudos
Message 5 of 7
(4,437 Views)

Hi Bahadir

 

National Instruments doesn't support editing camera files. I'm not sure where these terms are coming from, once again I would like to stress that you use the NI camera file generator and try pasting the text file at the end. 


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 6 of 7
(4,414 Views)

Hi Eric,

 

Thanks a lot for all your help.

 

I will use an external clock for now, and I will get back to setting the Master Clock some other time.

 

Happy Holidays!

 

Bahadir

0 Kudos
Message 7 of 7
(4,376 Views)