LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple counter in ni usb 6341

Solved!
Go to solution

hi

i m working on DAQ usb 6341 and facing a problem. when i use two frequency counter in the same program it stops calculating frequency (frequency counter task hangs). but when i use only one frequency counter it works properly.how can i solve my problem..................?

0 Kudos
Message 1 of 11
(3,996 Views)

Hey nadeem, 

 

I need to know a bit more about your setup to better help you with this issue. What version of LabVIEW are you running? Also, if you could either include your code or a screenshot of your code, that would be great. Thanks!

~kgarrett

 

District Sales Engineer
0 Kudos
Message 2 of 11
(3,986 Views)

hi i m using labview 2009. i have two fuel flow sensers with frequency output. i want to measure the fuel flow.

The problem which i am facing is that when i use single sensor it works fine.But when i use two frwquency inputs from ni usb 6341 it hangs or not works properly.

0 Kudos
Message 3 of 11
(3,976 Views)

Hi nadeemalikpda, 

 

Without seeing your code, I am still not sure what could be going on, though it is unlikely that the counter itself is hanging (unless you are trying to read faster than the specified read rate for the card). If you open LabVIEW and click Help » Find Examples » Hardware Input and Output » DAQmx » Digital Frequency » Meas Dig Frequency-Buffered Cont-High Freq 2 Ctr.vi, two instances of this code should work for your desired function. If you still have issues, please post back. Thanks!

 

~kgarrett

 

District Sales Engineer
0 Kudos
Message 4 of 11
(3,968 Views)

ok thanks 4 ur reply i will upload my code..................

0 Kudos
Message 5 of 11
(3,960 Views)

hi this is my code 

plz reply me early

 

regards

nadeem

0 Kudos
Message 6 of 11
(3,943 Views)

Hey,

 

I have a couple of questions for you. I have down loaded he VI and and trying to reproduce your error. Is there a particular error message associated with the "hanging" of LabVIEW? What type of sensor are you using?

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 7 of 11
(3,930 Views)

no there is no error messege.

i am using two MPU sensors.

There are two high speed inputs as you can see in the program VI.

when one MPU stops the other reading of other Mpu sensor also stops even it is working.

means these two MPU sensors have to work toghter. if any one of the input stops other,s reading in the 

program VI also hangs . 

0 Kudos
Message 8 of 11
(3,924 Views)

Hi nadeemalikpda,

 

I'm getting a little confused here.  What do you mean when you say that one of the MPU's stops?  Are you trying to stop one from reading and let the other tasks continue?  If you will need to place each DAQ Assistant in a different loop.

 

Have a great day,

 

Chris

Applications Engineer
National Instruments
0 Kudos
Message 9 of 11
(3,917 Views)

i mean to say that i have two motors with two Encoders on them. when one motor stops . the reading of other encoder also stops (HANGS).

0 Kudos
Message 10 of 11
(3,912 Views)