02-24-2022 02:03 PM
Im currently working on a project and need help connecting a sensor and creating a VI. I have an Omega FPR135 and NI USB-6001 DAQ. Very new to labview so anything would help.
Solved! Go to Solution.
02-24-2022 02:24 PM
Hi chealv,
@chealy wrote:
I have an Omega FPR135 and NI USB-6001 DAQ. Very new to labview so anything would help.
When you are new to LabVIEW then you should start with those Training resources offered at the top of the LabVIEW board…
Then you should learn the DAQmx basics.
And then you should open one of the example VI coming with LabVIEW+DAQmx to learn how to use the counter input of the NI6001.
Then connect your sensor to this counter input (using appropriate signal conditioning!) and count the pulses coming in…
02-24-2022 02:56 PM - edited 02-24-2022 03:12 PM
@chealy wrote:
Im currently working on a project and need help connecting a sensor and creating a VI. I have an Omega FPR135 and NI USB-6001 DAQ. Very new to labview so anything would help.
Fairly simple. You don't even need an additional power supply the 200mA from the 6001 can drive THAT device
Create a counter task counting positive edges. Read count. Divide count by 243 to get gallons(US).
If you are in England ....Good luck finding a plumber to work with those .75 inch brass fittings on the sensor. 😀
02-24-2022 05:05 PM
Thank you so much for your response. I was able to get the counter working quite easily using the task. Is there any easy way to copy a task to a labview vi? I couldn't get the continuous_counter.vi sample to work.
Not in the UK but also will not be the one working with brass fittings😋
02-24-2022 07:59 PM
@chealy wrote:
Thank you so much for your response. I was able to get the counter working quite easily using the task. Is there any easy way to copy a task to a labview vi? I couldn't get the continuous_counter.vi sample to work.
Not in the UK but also will not be the one working with brass fittings😋
Why, yes there is an easy way!
Save the task you created with the DAQmx Wizard since it sounds like you got it working.
Open a Blank Vi block diagram and place a DAQmx task constant. Right click the constant and>>Select the Task you saved by name.
Right click again and select "Generate Code (Configuration and example)"
Watch everything magically "Poof!" into existence. SMILE and don't tell the boss how easy it was.
03-20-2022 03:00 PM - edited 03-20-2022 03:46 PM
Im having an issue to dividing the count by 243 in labview, does labview round up as soon as it reaches 0.5 gallons? Could I also add a timer that so I can get gallons per minute? Any tips for this step?
03-21-2022 08:22 AM
@chealy wrote:
Im having an issue to dividing the count by 243 in labview, does labview round up as soon as it reaches 0.5 gallons? Could I also add a timer that so I can get gallons per minute? Any tips for this step?
Attach your code.
03-22-2022 01:38 PM
This is the code, I added timer to provide the duration time. Not sure if it works how I think it does.