From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-28-2019 07:08 PM - edited 10-28-2019 07:10 PM
Hello,
I am very new to LabVIEW and everything related. UrgetnPlease Help.
I need to read and save loadcell values continuously until the code is stopped. I have written a code that reads the loadcell and plots it in a voltage vs time graph. My code only reads them for 0 to 1.98s and goes back to 0 (check the excel screenshot). I want the sheet to have values from 0s to x second (x being the time at which the code is stopped). For example, if the code runs for 2minutes, I want the excel sheet to have time values from 0 to 2 minutes. I am not sure how long it will be running because this code is written for a tensile testing machine I should be reading the values until the stop button is pressed.
Please refer to the excel data and vi code below.
thank you.
10-28-2019 07:26 PM
Why are you appending the newly captured waveform with an empty waveform with a dt of .3?
Why are you using Express VI's? I recommend using regular DAQmx functions and regular Write to Text File functions.
10-28-2019 07:45 PM
This is the code I meant to share. Sorry about that, it runs every 0.09s.
I am using the VI express because after googling that's what people were using.
10-28-2019 09:53 PM
Actually, if you googled more, you'd see the recommendations are to NOT use Express VI's.
But your Express VI is set up to rename the existing file if it already exists. You should pick Append to File.
But as I said before, get rid of the Express VI's and use real LabVIEW functions.
10-29-2019 02:53 PM
Got it, I will do more research on how to use the DAQmx and see how it goes. Thank you
10-29-2019 08:04 PM
This link (Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications) is a good starting point.