LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generat two signals at the same time and reading voltage

Hii

i have try to generate two signals at the same time and read voltage from another port on the board(not have to be at the same time), i have not alot of expriens in labview
and i based my code of example(http://zone.ni.com/devzone/cda/epd/p/id/5197) from yours site and try to suit to my needs
now my problem is when i generat the 2 signals(that work perfect) i canot read voltage from another port on my CB-68LP
i can not find the problem  and make it over i hope there is away to figer out and fix it.

i have two cards 6229, and two CB-68LP board.
labview 8.5.


my code is look like this - http://img142.imageshack.us/my.php?image=scrennshot2no2.png
(this works perfect).
and this is my code after suit to my need - http://img183.imageshack.us/my.php?image=scrennshotfl5.png,there is  error exception at  the right side.

the exception-
Possible reason(s):

Specified route cannot be satisfied, because it requires resources that are currently in use by another route.

Property: RefClk.Src
Source Device: Dev1
Source Terminal: 10MHzRefClock

Required Resources in Use by
Task Name: _unnamedTask<0>
Source Device: Dev1
Source Terminal: None
Destination Device: Dev1
Destination Terminal: RefClock

Task Name: _unnamedTask<1>



eyal

0 Kudos
Message 1 of 7
(3,741 Views)
hi

try to attach your vi

when you use images use insert function because it's not  very practical to make url copy/past 

best regards


CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 2 of 7
(3,729 Views)
my file is here
http://www.megaupload.com/?d=UC8PK0JK

thanks for the help and the good will

eyal

0 Kudos
Message 3 of 7
(3,714 Views)
What are you doing ?

you don't need to use such a service.

for vi simply attach vi with following function attach files... and browse your disk...

for img use site like imageshack or similar

http://img296.imageshack.us/my.php?image=expmzs9.jpg 

or attach too !


Best regards








Message Edité par tinnitus le 03-10-2008 10:40 AM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 7
(3,708 Views)
Hello,

The cause of this error is more thoroughly described in the KnowledgeBase Article linked below.  What it means is that you are routing a signal through a subsystem which means the subsystem is no longer available for it's intended use.  In this case, I believe your DAQ Assistant is using the 10MHzRefClock when it is trying to be  routed elsewhere in the AO tasks.

Why Do I Get Error 89137 "Specified route cannot be satisfied..." When Routing PFI Lines Over RTSI?
http://digital.ni.com/public.nsf/allkb/A7A4024278353BF7862570230072C6E1?OpenDocument

If tight synchronization between the AO tasks is not important, I would just have each device use it's own onboard sample clock and just share the AI start trigger.  In the LabVIEW example finder, open Hardware Input and Output»DAQmx»Synchronization»Multi-Function»Multi-Function-Synch AI-AO.vi.  Use this as a template to get the AI and AO working on one device, then add in the second AO device.

Let me know if this helps.


Regards,
John Bongaarts
0 Kudos
Message 5 of 7
(3,693 Views)
sorry...
The AO tasks is very important they will be synchronize ,it is very importent the two tasks will start at the same time
and after it run at synchronize mode i will need to make reading of voltage

i gust try to make simulation of machin (i give that machin AO and reading from it voltage that all)
first of all i make the two signals(synchronize signals).
and after it i will need to reading voltage.

i can make two signals synchronize together.
i can make reading voltage
but i can't make two signals synchronize together with reading voltage
it throw to me this error message.

i am looking for away to figer this out.

thank's for any help 
eyal


0 Kudos
Message 6 of 7
(3,675 Views)
Hello eyal,

Looking more closely at your application, you wouldn't need two devices to achieve your goal.  You can run a single analog output task with 2 channels.  Then they would be synchronized already. 

Use the example program found in the LabVIEW Example Finder under Hardware Input and Output»DAQmx»Synchronization»Multi-Function»Multi-Function-Synch AI-AO.vi.  Change the DAQmx Write to Analog 1D Wfm NChan NSamp.  Then, build an array from your signal creation VIs and wire the resulting array into the DAQmx Write.  The analog input will start in sync with the analog output as well.  Let me know if this will work for your application.
Regards,
John Bongaarts
0 Kudos
Message 7 of 7
(3,651 Views)