LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating two channels with two "daqmx create channel.vi"

Hey guys,

 

I'm perform some piezo measurements and my program has one channel for the input (signal that excites the piezo) and one channel por the output (piezo's response).

 

Since the amplitude of the piezo's reponse varies a lot, my program adjusts the range of the acquisition changing the "minimum value" and "maximum value" properties in the " daqmx create channel.vi". Such an adjustment makes no sense in the input channel once the excitation has constant amplitude.

 

That is why I need to use two "create channel.vi". I could create the two channels with a single VI but if I did so, I would not be able to adjust the "maximum/minumum value" of only one of them.

 

The problem is: Labview always returns the error 50103: The specified resource is reserved.

 

Below, we have a screenshot of this part.

 

I tried also to add one "daqmx timing.vi" and one "start task.vi" for each of the "create channel.vi" and synchronize everything via error cluster but it returned the same problem.

 

The program itself is also attached but I don't think it will be useful.

 

Please, help me guys!

 

Regards,

Lucas

 

 

 

Download All
0 Kudos
Message 1 of 5
(3,151 Views)

I'm tending to think that this is impossible, since I need to create two tasks and there is only one AD coverter. The resources will always be reserved. What you guys think?

0 Kudos
Message 2 of 5
(3,127 Views)

Try wiring the task out from your first subVI to the task in of the second subVI where you create channels.

0 Kudos
Message 3 of 5
(3,113 Views)

Does not work. Already had tried but if I posted the pictures of all the combinations I tried, we would have an album.

 

Thank you Ravens Fan.

0 Kudos
Message 4 of 5
(3,104 Views)

Try it like this:

MulTask.PNG

EDIT:  OOP, I got the Mins and Maxs reversed.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 5
(3,092 Views)