LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

89137-occurred at DAQmx Write (Analog 1D Wfm NChan NSamp

Hello

i try to make two analog signas synchronized similar to this guidance
http://zone.ni.com/devzone/cda/epd/p/id/5197

and it work very good but ween i implements an
analog  input  with DAQ assistant it throw  error masseg
why it's happening?
do i have reach limet of my Hardware?
(pci -6229)

throw massage----

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

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

Task Name: _unnamedTask<172>



0 Kudos
Message 1 of 7
(5,123 Views)

Hi eeyc,

The error message that you included in your post means that a resource that the DAQmx Write Function needs, in this case the Reference Clock, is already in use by another task. Can I ask if you are using more than one PCI-6229? If you are only using one card, but trying to perform two analog output tasks, you might get an error similar to this one. This is because you can only have one task of each type running on a single device, for example you can have 1 analog output and 1 analog input, but not two analog outputs at the same time on the same card.

I have some questions that might help me make meaningful suggestions:

1) You said that you are using code similar to that found in the linked example program. Can I ask what modifications you have made and where you are placing down the DAQ assistant? If you attach a screenshot of your code or the code itself, this might help me understand.

2) Also, what are the settings on your DAQ Assistant?

3) What are you expecting/ desiring to do with this application?

4) What hardware are you using?

Regards, Mallori M.

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 2 of 7
(5,103 Views)
Hii
i am using pci 6229 with CB-68LP board

I am try to parse Hardware input and output signals
so i have need to generat signals and read signals at the same time

you can see scrennshot at this website
http://img183.imageshack.us/my.php?image=scrennshotfl5.png

i gust want to make two sinchronized signals and at the same time read analog voltage

eyal




0 Kudos
Message 3 of 7
(5,096 Views)

Hi Eyal,

As I understand the problem, you have one PCI-6229 DAQ Card with a CB-68LP Terminal block that lets you access individual pins of the 6229. You want to acquire and generate signals synchronously using the PCI-6229. You are not using any other hardware. Is my understanding correct?

Assuming that this is your set up, I think there is a better example program in LabVIEW that you can look at and run without error. The example VI Multi-Function-Synch AI-AO.vi will input and output from a DAQ card, and it shares a start trigger between the tasks which synchronizes the data. The error you are currently getting is because the example you are using is for multiple devices, not one. Since you are only using one card, you do not have enough timing engines.

This example can be found by navigating to the Help Menu>> Find Examples>> expanding the Hardware Input and Output folder>>expanding the DAQmx folder>> expanding the Synchronization Folder>> and then looking in the Multi-Function file.

I hope this explanation helps, Mallori M.

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 4 of 7
(5,077 Views)
sorry,i was to clear
i have 2 cards 6229
first card 6229-board CB-68LP
and the second 6229 -board CB-68LP
now i am mor clear
0 Kudos
Message 5 of 7
(5,064 Views)
i have two cards  and the example work perfect
but when i wont to read data i cant it throw error message
this work perfect - http://img142.imageshack.us/my.php?image=scrennshot2no2.png

but this isn't work,you can see (error message at the left side) -http://img183.imageshack.us/my.php?image=scrennshotfl5.png

i am sorry that i haven't been clear
0 Kudos
Message 6 of 7
(5,060 Views)

Hi eyal,

I was able to recreate this error by using the DAQ Assistant inside the while loop for Analog Input like you were. What appears to be happening is that the analog input, which starts before the Analog Output tasks, is reserving the reference clock for its own use. When the first Analog Output task tries to configure itself and export its reference clock to the second card, the resources reserved error is occurring.

I will try and find hardware to test different ways of doing this to see if it can be done without the reference clock.

Regards, Mallori M.

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 7 of 7
(5,022 Views)