Alrighty, I'm a total noob to LabView and the like. I'm at the point where I don't even know if what I know is relevant, so pardon if I give way too much information and probably not enough.
I've got:
cDAQ-9174 chassis
9422 module in slot #2
This 9422 module is going to be connected to a flow meter which is going to send a square wave signal. What I need is the frequency of the square wave. Trouble is, I don't have a clue how to get it.
I open a new .vi and use the DAQassist. From there I select Counter Input and then I've tried both Frequency and Edge Count.
Ultimately, either one usually gets me the following error:
Error -200284 occurred at...
Possible reason(s):
Some or all of the samples requested have not yet been acquired.
I guess the one I've researched the most is the Edge Counting. This is continuous samples because I need it to monitor the flow rate in time rather than just counting the edges from time 0 until I stop the VI. So there are various ways of handling this error which include changing the timeout value, something to do with "samples to read" and "sample rate", and then the one it would seem I need to do: Since the continuous buffered one requires an external clock, which is specified on the "Advanced Timing" tab of the DAQassist properties menu I've got a whole host of things to select from. It would seem /ai/SampleClock or /ao/SampleClock is the thing to select, but then multiple webpages keep saying to make sure that external clock is actually "running", or some word along those lines. So I figure, my external clock isn't actually doing anything and that is why the read doesn't acquire the samples. But really I'm just lost. So...
Question 1:
Is what I'm working on the best/right way to go about doing this?
Question 2:
How do I make sure this external clock is doing whatever it is supposed to be doing so that I can have continuous samples for edge counting?
Alright, my ignorance is exposed, please fire away. I've attached the .vi, though I don't think it's going to tell you anything other than I know how to click the mouse button while running LabView.