Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

input & output simultaneously: resource reserved?

I am acquiring analog data, then trying to output a DC voltage of 5V at a specific time. I get the error that the resource is reserved. I'm guessing the DAC can't be used to input and output on the same device at the same time? Below is a picture of my program. Everything is in a while loop. Once I hit two peaks detected (provided they're time apart is greater than 250ms but less than 5000ms), the output voltage should fire. However, I get the error. Any tips on what I'm missing? Thanks a lot.
0 Kudos
Message 1 of 2
(6,315 Views)

Hi Ktread

Thank you for using our discussion forums.
 
It is possible to configure one input task and one output task at the same time, as they each have independent timing.  You are getting the described error because you are using both the new DAQmx driver for your acquisition, and the Traditional DAQ driver for you generation on the same device.  This is not possible.  The easiest way to solve this issue is to replace the generation VI that you are using to update the output with either a DAQ assistant such as the one you are using for your acquisition, or replace it with DAQmx code.  There are helpful example programs that you can use in our example finder.  They can be found at Help>>Find examples, and then from the Example Finder browse to Hardware Input and  Output>>DAQmx, and choose the desired example. 

Chris_K

 

0 Kudos
Message 2 of 2
(6,296 Views)