Tan_godo Posted March 9, 2011 Report Share Posted March 9, 2011 Hello there, I am basically making use of an Analog Input to acquire some pulses using which i want to calculate the number of ticks and further the angle and number of rotaions . If i was using a counter card life would have been easy , but currently dont have one . can anybody suggest easy ways of deriving the ticks first , from the incoming waveform ? Cheers , T Quote Link to comment
crossrulz Posted March 9, 2011 Report Share Posted March 9, 2011 Seems to me like you are going to have to make a counter in software. The brute force way is to throw the input data into a for loop and look for transitions (go above and/or below threshold levels). Quote Link to comment
Neville D Posted March 10, 2011 Report Share Posted March 10, 2011 I am basically making use of an Analog Input to acquire some pulses using which i want to calculate the number of ticks and further the angle and number of rotaions . If i was using a counter card life would have been easy , but currently dont have one . can anybody suggest easy ways of deriving the ticks first , from the incoming waveform ? Cheers , T What hardware are you using? Most NI Multifunction hardware have a couple of counters already built in on the card. N. Quote Link to comment
Tan_godo Posted March 14, 2011 Author Report Share Posted March 14, 2011 Its a CDAQ ........with 2 AI modules ....9178 has 4 built in counters but can be used only with NI 9401 .. trying to make use of some examples ..............to basically measure the rising transitions or just give the num,ber of high pulses on a continous incoming pulse waveform . Any direct examples available ? Quote Link to comment
jgcode Posted March 14, 2011 Report Share Posted March 14, 2011 ...can be used only with NI 9401 .. That is not entirely correct - it is any hardware timed DIO Module. Also the cDAQ-9178 has two BNC connectors in which you should be able to access counters etc... Quote Link to comment
Tan_godo Posted March 14, 2011 Author Report Share Posted March 14, 2011 (edited) hi , Ok ...its PWM measurement / encoder pulses that i want to measure ... in the data sheet they have mentioned hardware timed Digital IO such as NI 9401 OR 9402 . could you tell me how to make use of the BNC connectors.....for pulse measurement ? The datasheet does not give details. Cheers, T Edited March 14, 2011 by Tan_godo Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.