LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop counter in NI DAQ mx?

Hi,

 

I am a newbie in Labview.. I would like to ask a very simple question:

 

so I am using NI DAQ mx to generate a multiple counter (2 counters).

 

I would like to ask, in the middle of the process I would like to just stop 1 counter while generating another counter.

 

How can I do that? If I use the NI DAQ mx stop VI, it will stop both of the channels. Attached are the code for the generating the counters.

 

Thanks.

0 Kudos
Message 1 of 7
(2,477 Views)

The VI you posted is saved in later version labview than what I have, so I can't see what you are doing there. But, assuming you are using DaqMX acquire data and the counter in the loop. One way of doing what you are trying to achieve is by creating the case structure inside the loop and create a logical controll (push button) to it. In case 'True' both counters are ON, case 'false' turns one counter off.

Hope it helps!

 



------------------------------------------------------------------------------------------------------
Kudos are (always) welcome for the good post. 🙂
0 Kudos
Message 2 of 7
(2,460 Views)

Hi it is still have not solved.. 

 

I have attached the version 8.0 and 9.0.. 

 

Please observe it.. Thanks 😃

0 Kudos
Message 3 of 7
(2,448 Views)

I'm not sure how you have things wired up.  A couple of your VIs are missing, but this should give you an idea.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 7
(2,443 Views)

I didn't see any difference by clicking the button.

 

It did not stop any of the counter.

 

I check both the true and the false, and it is using the same VI, so I am not sure what significance it do.

0 Kudos
Message 5 of 7
(2,441 Views)

Sorry, I posted from home and the DaqMx VIs did not show up.  I see them now.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 6 of 7
(2,431 Views)

So any other suggestion to stop one counter out of the 2 counters?

0 Kudos
Message 7 of 7
(2,398 Views)