Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Routing sample clock to PFI7 line with DQAQmx

Hi..
I have been using a 6036E DAQ Card  and I need to routing some internal timing signals to PFI lines, for instance sample clock to PFI7.
I searched on the site and I read some statements and applied  the advice given  but they did not work.
I will be so thankful anyone who help..
 
 
0 Kudos
Message 1 of 12
(5,027 Views)
Hi ifo,

You can connect the sample clock to PFI7 using the DAQmx Connect Terminals VI (See attached picture).

When you are doing this please ensure that you disconnect the terminals when you have completed your task.

Hope this helps!
Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 12
(5,006 Views)
Sorry... forgot to attach the image
Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
Message 3 of 12
(5,005 Views)
Thanks  Abhinav T for your help :..
 
It s ok now..
0 Kudos
Message 4 of 12
(4,990 Views)

Hi ifo-

Those two methods should perform similarly and the available routes across the two methods should be identical.  Can you please elaborate on how it did not work for you before?  Did you receive an error, or did you just not see the signal output on the pin you specified?

Thanks-

Tom W
National Instruments
0 Kudos
Message 5 of 12
(4,982 Views)

Hi

The attached code  I used five years ago using PCI 6251 to perform undersampling. I tried to use this code on NI DAQCard-6036E, but got errors. The error  is' The device does not support operation from Ctr1 to PFI0. I don't have any PCI boards anymore. I only have NI DAQCard-6036E, and I want to use the attached code for one of my applications.

I checked the specification of  NI DAQCard-6036E, and found that this card has two counter functions and multiple AI channels and two AO channels.  I am wondering  where the problem is. I am also bit rusty with my Labview programming now. I have not used Labview in past 4 years. I would appreciate if you can just modify that attach code for

NI DAQCard-6036E if  possible. I would appreciate it.

Should you have any questions, please let me know.

Regards,

AM

 

0 Kudos
Message 6 of 12
(4,392 Views)

Hi AM,

 

M Series hardware supports that route and E Series does not. How Can I Know What Internal Routes are Available on My Device? tells you how to view which routes are supported.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 7 of 12
(4,383 Views)

 I want to use my old code that was written for PCI 6052. I get error' Device does not support...' . What I understand that DAQ 6036E does not support routing clock sample from CTR1 to PFI0 or PFI1--PFI5.  I made changed using the link you sent me but still get the same error.

If there is another way to route the sample clock that is generated by counting down the master clock, please let me know. I would be highly appreciative if you can modify that code  for DAQ6036E , if possible.

Regards,

AM

0 Kudos
Message 8 of 12
(4,365 Views)

> The attached code  I used five years ago using PCI 6251 to perform undersampling.

> I want to use my old code that was written for PCI 6052.

Which device were you using before? PCI-6251 or PCI-6052E?

The PCI-6251 is a newer design than the DAQCard-6036E, so it supports more features, like the ability to route most timing signals to any PFI terminal. The DAQCard-6036E and PCI-6052E can only route certain timing signals to specific PFI terminals.

If you want to export the AO sample clock to a PFI terminal on E Series, you have to export it to PFI5, because that's the only PFI terminal that E Series supports routing the AO sample clock to.

But there's more going on here. When I run your program with a simulated device, I get the following error from the AI task:

Error -89136

Specified route cannot be satisfied, because the hardware does not support it.

Property: SampClk.Src
Property: SampClk.ActiveEdge
Source Device: Dev1
Source Terminal: Ctr1Out

In the "Device Routes" table, Ctr1Out doesn't show up in the list of sources at all. So that's not going to work. But Ctr0InternalOutput can be routed to ai/SampleClock directly. Try using that instead.

What's the difference? Ctr0Out is the terminal on the I/O connector. Ctr0InternalOutput is a terminal inside the DAQ-STC ASIC. You can route from Ctr0InternalOutput or RTSI0..6 to Ctr0Out. However, the same is not true of Ctr1Out: you can only route from Ctr1InternalOutput to Ctr1Out.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 9 of 12
(4,351 Views)

Hi Brad!

Let me explain you little more what I really want to do.

I have two Ctr outputs that are obatiend from the master clock or  from AO sample clock by counting down. I have two divisor 25 and 4 . The out of the counter that is divided by 4 is something  Iwant to use as a carrier siganl and will feed an ultrasonic sensor. The output of other counter that is otianed by dividing 25 is the one that  Iwant to use as a sampling clock. It does not matter whetehr I do it internally or externally. As far as I can get an ouput from the counter and sample the received signal that is fed into the AI channel.

My requirements are :

AO channel=160kHz

AO sample clock=PFI5 ( I used PFI0 for PCI 6251)

 

Counter for carrier generation ( can be any one the counter)=(divided by 4 to get 40 kHz carrier signal)

Counter for sample clock=6.4kHz

AI Channel= Feed  40KHz FM singal.

 

I tried with all these settings on DAQ6036E but could not perform the operation and did not get any explicit error and the code was in running mode indefintly. What I figured that DAQ603E perhaps does not suppoet the sampling rate I am interested in. Then I just changed my sample rate to something a few thousand and then ran it and it apprearently worked but gave me some junk results.

I hope you will have some understanding of what I trying to do with this DAQmx. If I can use DAQ6036E then I would be really pleased and looking forward to do that.

Regards,

AM

 

 

 

 

0 Kudos
Message 10 of 12
(4,348 Views)