03-02-2008 07:28 AM
03-03-2008 05:58 PM
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.
03-04-2008 06:55 AM
03-05-2008 06:06 PM
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.
03-06-2008 12:04 AM
03-06-2008 12:47 AM
03-10-2008 08:25 PM
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.