LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -89131 using the NI 9205 analog reference triggering

Hi folks - having trouble with setting up an NI 9205 AI card for analog reference triggering.  I followed the example at

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6WTSA0&l=en-US

 

I don't get an error when running the "Initialize DAQ 2.vi", but later when I run the "DAQmx Start Task.vi" I get error -89131, with the message:

 

An attempt has been made to perform a route when the source and the destination are the same terminal.

In many cases, such as when configuring an external clock or a counter source, you must select a PFI, PXI Trigger, or RTSI line as the source terminal.

Property: SampClk.Src
Property: SampClk.ActiveEdge
Source Device: cDAQ1
Source Terminal: ai/SampleClock

 

Well yes, the Source string for the DAQmx Trigger.vi *IS* the same as the Physical Channel name! I did it that way because that's what the example did (I don't know any better).

 

Anybody got any idea what's wrong here? Much thanks, paul

0 Kudos
Message 1 of 5
(2,757 Views)

Hello? Can I confirm your operation?

 

1st try: Run "Initialize DAQ 2.vi", no error

2nd try: error -89131 returned

Is this right?

 

If so, you don't clear DAQmx task in the VI,

the error may be broken out.

 

Clear the task and try it again.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 5
(2,719 Views)

Emboar - well, I added a Clear Task before the Start Task, and the error goes away. But isn't that going to wipe out what I set up for the task? paul

0 Kudos
Message 3 of 5
(2,682 Views)

Your AI loop is the same task. See the code below:

 

Example.png

 

You were setting up the sample clock twice. That is why you were getting the error. It is unnecessary. Set it up once and that will be all you need to do for the AI task.

Tim
GHSP
0 Kudos
Message 4 of 5
(2,658 Views)

Mucho thanko Tim - will try it tonight when I get home - paul

0 Kudos
Message 5 of 5
(2,645 Views)