LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding strain controls to front panel of Continuous Measurement and Logging (NI-DAQmx)

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

Brandon Deal
RDD Intern
0 Kudos
Message 1 of 4
(2,509 Views)

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!

 

 

Mason M
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,483 Views)

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

Brandon Deal
RDD Intern
0 Kudos
Message 3 of 4
(2,471 Views)

Hi Brandon,

 

Here's a link that deals with getting information abouot peaks in a waveform:

 

https://www.ni.com/en/support/documentation/supplemental/06/peak-detection-using-labview-and-measure...

 

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!

 

 

Mason M
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,453 Views)