Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while running LabView and Matlab on the same card

I am trying to output a sine wave through an AO channel (using Matlab function analogoutput) on a NI DAQ card and have it read on an AI channel on the same DAQ card through a LabView executable. The LabView executable also outputs data on a different (than the Matlab controlled channel) AO channel. I understand that the multiple applications cannot do the same function (e.g. input or output) on the same DAQ card. What I want to confirm is whether the error that I am getting is a direct result of this conflict. Here is the error message:

 

Error using daq.analogoutput_nidaqmx_1_5/start Two or more properties that drive a line are set to the same terminal. Check the settings of properties ending in 'DriveLine'.

 

When I used the object inspector to view the properties of the analog output object, I noticed the following values for the relevant properties:

 

ExternalClockDriveLine : None

ExternalTriggerDriveLine: None

 

Thanks!

Anand

0 Kudos
Message 1 of 4
(3,313 Views)

Hi Anaud,

 

Which DAQ card are you using and how is your code setup in LabVIEW?

MJ
Application Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,286 Views)

Hello MJ,

                             I am using the PCI 6259 DAQ board. The code in LabView generates a digital pulse on p0.0 in response to a prespecified input. This pulse is jumpered to USER1 on the spring terminal. USER1 BNC connector is jumpered to the PFI0 connector. The channel ao0 is triggered by PFI0 and plays a wav file containing white noise. 

 

Hope that makes it clearer.

 

Thanks!

Anand

0 Kudos
Message 3 of 4
(3,283 Views)

Hi Anaud,

 

Are you getting a error code along with the error message?

 

It seems like the output funtion is not being terminated properly which would cause the card resources to lock up and become unacessible.

MJ
Application Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,262 Views)