08-05-2013 08:47 AM
Hi all! I am trying to use the Continuous Measurement and Logging (NI-DAQmx) project template that LabVIEW has made to do some measurements. I have gone in and changed the measurements to "strain" instead of the "voltage" default it has. Here is my problem. When the front panel is running and you click on the settings I want to be able to choose the strain configurations as well as the min, max, and channel that it shows. I tried it before, but the code kept falling into an infinite loop and it also wouldn't allow selection of bridge types/configurations... just numbers were allowed to be entered. Also, is there a way to add more than one channel to the measurement to be shown?
Thanks again for the help! I am pretty new to LabVIEW so I'm just starting to get the hang of it!
Brandon Deal
08-06-2013
02:52 PM
- last edited on
04-29-2025
04:08 PM
by
Content Cleaner
Hello Brandon,
Since you're new to LabVIEW you might not be familiar with the debugging tools it has. Here's an overview of what's available:
https://www.ni.com/docs/en-US/bundle/labview/page/debugging-techniques.html
One approach I might suggest is using Highlight Execution to isolate where your code is falling into an infinite loop!
08-07-2013 09:37 AM
Thank you Mason for your reply! I actually was able to use an example code "Strain- Countinuous Input.VI" for my application and get a result! I am having trouble with one thing however. I am looking to have a certain threshold around the input strain we have. Below I have attached the Waveform Graph I have and I have 3 different inputs that are being read in. I want to be able to get the peaks for the first 25 seconds, average those peaks, and then multiply that average to get a +/- threshold boundary for each gauge. I was going to use the VI that is shown in the picture, in the context help box, but I'm unsure if this will work for my application... thoughts? Do I need to rethread this?
Sorry for a late reply, I was at the Texas Day- NI Week and wasn't able to reply!
Thanks again!
Brandon Deal
08-08-2013
06:09 PM
- last edited on
04-29-2025
04:09 PM
by
Content Cleaner
Hi Brandon,
Here's a link that deals with getting information abouot peaks in a waveform:
Perhaps you can add this to your code to get the calculation you want.
Glad you made it out to NI Week, I was there all week so we probably passed by each other!