Home
Community
Discussion Forums
Most Active Hardware Boards
Digital I/O
Topic
Digital I/O
Register
·
Login
·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
How to export a clock in PCI 6534
How to export a clock in PCI 6534
AndrewWang
Member
08-02-2006
08:55 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
I have a very simple question.
I am using PCI 6534 and I would like to export the sample clock to an output pin. The code is as following:
.....
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateDOChan(taskHandle,"Dev4/port0/line0:7","",DAQmx_Val_ChanPerLine));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle, NULL,1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));
DAQmxErrChk (DAQmxExportSignal(taskHandle, DAQmx_Val_SampleClock, "/Dev4/pfi2"));
.....
In the last line, I exported the sample clock to pin pfi2. But when I hooked up an oscilloscope to pfi2 (pin 2 on PCI 6534) I observed no clock signal. All I saw was a signal at ground voltage level. What's wrong?
Thanks,
-Andrew
0
Kudos
Message
1
of 4
(3,837 Views)
Reply
Re: How to export a clock in PCI 6534
jcarbonell
NI Employee (retired)
08-03-2006
07:46 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
There is a clock edge for every sample generated. When you start the task, the clock should start pulsing.
0
Kudos
Message
2
of 4
(3,826 Views)
Reply
Re: How to export a clock in PCI 6534
AndrewWang
Member
Author
08-03-2006
09:20 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
But ... that's exactly what I did and I didn't get any signal.
-Andrew
0
Kudos
Message
3
of 4
(3,822 Views)
Reply
Re: How to export a clock in PCI 6534
McKala[DE]
NI Employee (retired)
08-03-2006
01:53 PM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Hello Andrew,
Do you see the same behavior if you export the sample clock to /Dev4/PFI6?
Regards,
Micaela N
National Instruments
0
Kudos
Message
4
of 4
(3,816 Views)
Reply
All Forum Topics
Previous Topic
Next Topic