LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count edges and quadrature encoder

I think the problem (I am not absolutely sure about this, as I would not have done this myself) lies in mixing the DAQ mx with traditional analogue one point input.
 
Is there any reason that youre not using the DAQ assistant?
0 Kudos
Message 21 of 27
(1,930 Views)

This is what I would have done..... I think Smiley Happy

 

0 Kudos
Message 22 of 27
(1,924 Views)
Quoting from NI's FAQs about NI-DAQmx...
 
Q: Can I use Traditional NI-DAQ (Legacy) and NI-DAQmx at the same time?

A: You can use Traditional NI-DAQ (Legacy) and NI-DAQmx at the same time if you have two DAQ devices and one of them is using Traditional NI-DAQ (Legacy) and the other NI-DAQmx.
If you only have one DAQ device, you can still use both Traditional NI-DAQ (Legacy) and NI-DAQmx but only in sequence – not at the same time. You need to reset your device to switch between Traditional NI-DAQ (Legacy) and the NI-DAQmx driver as part of the sequence.
 
...heres the link to the whole page: NI-DAQmx FAQs
 
Mark.
Message 23 of 27
(1,894 Views)
Thanks that's a good description of what's happening and an excellent response.
0 Kudos
Message 24 of 27
(1,891 Views)
well, I think I will try and write the VI to use DAQmx for the analog inputs and the counters.
0 Kudos
Message 25 of 27
(1,875 Views)
I wrote the following program and now it takes counts and the analog input voltage simultaneously, but with the millisecond timer it looks like I am only getting a sampling rate of 200 points per second.( about every 5 milliseconds) Is there a way I can use a buffer to increase my sampling rate to 1000 points per second with the following hardware: PCI-MIO-16E-4 card and a SCB-68 interface board?
0 Kudos
Message 26 of 27
(1,836 Views)
If you click on the DAQMx VI you can change it from one sample to multiple samples.....

But I think you will run out of memory very quickly with the data being sent into the array for storage.

You need to make some decision about how long or how much data you are going to store.

Message Edité par Conseils le 02-14-2006 09:06 PM

0 Kudos
Message 27 of 27
(1,831 Views)