12-12-2008 02:53 PM
How do you set up the Master Clock0 or 1 in PCI-1422?
Thanks!
Bahadir
12-15-2008
10:38 AM
- last edited on
04-22-2025
10:52 PM
by
Content Cleaner
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?
12-15-2008 12:23 PM
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!
12-16-2008
12:05 PM
- last edited on
04-22-2025
10:52 PM
by
Content Cleaner
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.
12-17-2008 08:19 AM
12-18-2008 05:25 PM
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.
12-23-2008 10:45 AM
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