Hi, I am new to Labview and working with a project, where I want to collect data from different types of sensors and handle everything from the front panel.
At this point, I already have set up one sensor (Linear potentiometer), which is chosen at the dropdown panel in the top. (see attached file-Sorry for all the Danish words) (At this moment the other ones are empty)
My program allows me to choose which port from my DAQ the sensor is connected. Thereafter calibrate the sensor and reset to a starting point.
The data to save is distance moved, min and max value for this sensor.
1. The problem is, that I want to log the data. But when I write my data inside a loop to a file. It writes for each iteration. If I move it outside the loop, nothing gets written. How do I solve this, so I can get a continuous log for the collected data?
2. Also, I would like to have a timer going inside my loop, so it is visual for how long time the program has run. This timer shall also be used to show when my value of Min and Max is stored.
Is there a kind soul to explain/show how to solve these problems?
If anyone has some good ideas for my project I am interested to hear your suggestions.
please learn how to use more shift registers and less local variables!
You get two improvements:
1. The problem is,
You did something wrong when you tried to move the Write operation outside of the inner loop…
There is a whole palette with timing functions. All you need is to get the time before the loop and the time inside the loop to calculate their difference…