From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can cDAQ 9361 and NI 9361 perform order analysis?

Solved!
Go to solution

Hey Fancy Folk,

 

Background:

I am using a cDAQ 9174 with modules NI 9220 and NI 9361.  The NI 9361 will be hooked up to an encoder and I wanted to use the A channel from the counter as a clock for the NI 9220.  I am trying to perform some order analysis with the cDAQ hardware.  I’m familiar with PCI with a RTSI cable and PXI so I assumed that there was going to be a back plane to pass the counter signal to the analog module.  I wrote a quick program to test my idea and it returns error -89136 stating that there is no routing available (see image below). 

Matt_AM_0-1669066588663.png

 

After some googling, it makes sense that I’m seeing that error.  From my understanding (and a very high level overview) the cDAQ chassis is the one controlling the sampling once all the tasks are started. 

 

What I’ve tried:

I figured that if the chassis was doing the sampling, I could route the CTR A signal to the chassis’ ai sample clock.  When I tried this, I was getting the same -89136 error.  At this point, I am viewing each NI card as a signal conditioning module that converts whatever signal I want to read into one that the cDAQ device can read.

I was looking into syncing multiple chassis together, my logic being that I could try and physically route CTR A to the external clock on the chassis the same way syncing chassis together would work.  However, it looks like only the 8 and 14 slot chassis have external clocks and the cDAQ 9174 is a 4 slot, thus no external clock.  

 

Question:

Is there any way I can use the cDAQ 9174 and NI 9361 together to perform order analysis?

 

Thanks,

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 1 of 8
(1,118 Views)

Hey Fancy Folk,

 

Forgot to add this in the previous post, I am currently simulating the cDAQ hardware and I don’t physically have it yet.  I add this because I will be referencing faux chassis and cards in this post and faux just means that its simulated.

 

I was looking through the cDAQ 9174’s device routes in NI MAX and it appears that there is a direct route between the chassis’ CTR0A and the ai sample clock, see image below.  My logic is that the chassis’ CTR0A will become the NI 9361’s CTRA via the task created to read the counter.  Therefore, if I link the chassis’ CTR0A to the ai sample clock, then I should be able to sample the NI 9220’s analog signal based on the encoder which would allow me to do order analysis. EDIT: The main difference between the original post and this is that I am not using the NI 9361 as my source terminal, but the chassis' CTR0A channel as the input terminal for the DAQmx Connect Vi.

Matt_AM_1-1669129544517.png

 

I wrote a quick VI to pull the CTR0A terminal and route it to ai sample clock but it is still erroring out with a -89136 saying routing isn’t available, see image below. 

Matt_AM_2-1669129544522.png

 

Can someone shed light as to why I can’t route the chassis’ CTR0A to the chassis’ ai sample clock?

 

Thanks,

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 2 of 8
(1,063 Views)

Simulated DAQ is limited in features, especially the triggers and any signals outside of a DAQ card domain.

 

If your issue is about a simulated device, there is no point in discussing why it does not work as it is "simulated" and not "emulated", it is not perfect, it is what it is.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 8
(1,053 Views)

Santhosh,

 

I understand that simulation does not mean a direct representation of the physical hardware.  In my experience, PXI simulated devices and PCI with RTSI simulated devices allow you to route signals that are directly connected in NI MAX.  I am assuming that the cDAQ architecture is the same if the routing is available.

 

Let's assume that I have the physical hardware here, can I route the the chassis' CTR0A to the chassis' ai sample clock?

 

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 4 of 8
(1,050 Views)

Looks like you misinterpreted the routing table, the one you pointed out is sampleclock->ctr0A and not the other way around.

santo_13_0-1669135990327.png

 

CTR0A cannot be a source for anything, it can only be a destination.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 5 of 8
(1,025 Views)

I haven't used the 9361 myself, but seem to recall that isn't a "pure win" module.  It gives you lots more counters, but I think it's somewhat limited in its ability to share timing signals with other modules in the chassis.   Sorry, no details, just a sorta vague memory.   For example, I think I recall that you can't pass signals through to the chassis counters, you have to use the ones in the module.

 

Consequently, you may end up finding that a very simple DIO module will be easier to work with b/c it may provide a lot more "routeability".  Unless you need more counters than the 4 in the chassis, the 9361 may not be the best choice after all.

 

Caveat: this is all hearsay.  Trying to help, but definitely listen to second opinions.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 6 of 8
(1,016 Views)

According to the PXI 6251’s datasheet I have on hand, the source for the counters appear to be A.  I am assuming that all counter sources will become counter A's regardless of the card.  I say this because there is a direct link between counter 0 source and the ai sampling clock.

Matt_AM_0-1669138420450.png

 

According to my Vi to pull out the correct terminal, this doesn’t present an error when i use the DAQmx Connect Terminal Vi.

Matt_AM_1-1669138420455.png

 

I assumed that LabVIEW would have interpreted the A line and source to be the same terminal, but I was wrong in that assumption.  I'll pass the info along and report back if this solves the problem.

 

Thanks all for your input, it is much appreciated! 

 

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 7 of 8
(1,012 Views)
Solution
Accepted by topic author Matt_AM

Bad news fancy folk,

 

ends up that the NI 9361 can't access the chassis' on board counters, since it's the only module with build in counters itself. https://www.ni.com/en-us/support/documentation/supplemental/18/cdaq-module-support-for-accessing-on-... the note at the bottom of the page explicitly says the above statement.  

 

That being said, I think that if we used a different counter card, that this theory could work.

  

Matt

Attention new LV users, NI has transitioned from being able to purchase LV out right to a subscription based model. Just a warning because LV now has a yearly subscription associated with it.
0 Kudos
Message 8 of 8
(958 Views)