LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

disable a daq

hi to all,

i have 2 daqs in the same application,

how i can disable a daq when the 2nd start to read data?

0 Kudos
Message 1 of 15
(6,545 Views)

Could you specifiy your problem a little more accurate?

Thanks,

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 2 of 15
(4,512 Views)

in my vi i have a daq and a jump button which call another vi which contain the second daq

when i run the the first vi and i press on jump button ,an error occur :

                                     "Error -50103 occured at DAQmx control task.vi

                                        possible reason : 

                                       the specified resource is reserved.the operation could not be completed as specified "

how i can disable the first daqmx before pressing the jump button?

0 Kudos
Message 3 of 15
(4,512 Views)

If you can post your VI or a Snippet of your code, ( if it is possible ) that would be useful.

Anyway, if you want to prevent the user to press your "jump" button, use Disabled property of the control. (Right Click - Create - Property Node - Disabled ). Set Disabled & Grayed out value to the Disabled property so the button can not be pressed. If you want to enable this control again, just set the Enabled value to the same property.

I hope it helps,

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 4 of 15
(4,512 Views)

old stabilometre.vi is the main vi ,

in the part "reeducation" when i press stabiliser button which is jump button,it must call stabiliser.vi

Download All
0 Kudos
Message 5 of 15
(4,512 Views)

Your JumpButton is an XControl.

Please post it with all subvis.

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 6 of 15
(4,512 Views)

I think the problem could be the following:

  • Your top level diagram has a DAQ call. I would suggest to use DAQmx StopTask.vi and DAQmx Clear Task when it is done. Do the same when your stabilizer.vi DAQ Call finished.
  • In the stabilizer.vi the Loop never ends. If you want to use this VI as a SubVI, take care of stopping the loop.
---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 7 of 15
(4,512 Views)

i don't understand

where i would put  DAQmx Clear task  and DAQmx Stop task in old stabilometre.vi?

0 Kudos
Message 8 of 15
(4,512 Views)

If your Stabiliser.vi is a dialog - type subvi, Use STOP button to finish the execution of the Stabiliser.vi. I hope this helps!

Result.png

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 9 of 15
(4,512 Views)

stabiliser.vi is not a sub vi

0 Kudos
Message 10 of 15
(4,512 Views)