04-08-2025 03:54 AM
Hi everyone,
My project is about logging voltage sensor data into a table. So, each time the push button is pressed, the voltage data should be inserted into the table. However, there's an error in the VI I created: the date and time keep getting added to the table continuously, even when the push button is not pressed.
Is there anyone who can help me to fix the VI that I made?
Here, I’m attaching a screenshot of the VI and the resulting table.
Thankyou 🙂
Solved! Go to Solution.
04-08-2025 04:26 AM - edited 04-08-2025 04:27 AM
Hi Anesh,
@Anesh4.0 wrote:
However, there's an error in the VI I created: the date and time keep getting added to the table continuously, even when the push button is not pressed.
Is there anyone who can help me to fix the VI that I made?
There is more than one error in your VI!
Which kind of help do you expect when all we get are two images? We cannot edit/debug/run images in LabVIEW!
On your code image:
04-08-2025 05:10 AM
I'm working on a project to measure voltage using a 25V voltage sensor. I’ve already set up the circuit with an Arduino Nano, the voltage sensor, an HC-05 for Bluetooth, and a pushbutton. The idea is, every time I press the button, the sensor reads the voltage and sends the data over Bluetooth, and it gets saved into a table.
But when I tried to create the VI in LabVIEW, I ran into an error like I mentioned earlier.
Sorry if I made some mistakes in my previous post—I'm still new to LabVIEW and this community. This is actually my first time doing a project with LabVIEW.
I really hope you can help me out!
04-08-2025 05:49 AM - edited 04-08-2025 05:50 AM
Hi Anesh,
@Anesh4.0 wrote:
I’ve already set up the circuit with an Arduino Nano, the voltage sensor, an HC-05 for Bluetooth, and a pushbutton. The idea is, every time I press the button, the sensor reads the voltage and sends the data over Bluetooth, and it gets saved into a table.
Ok, that pushbutton is a piece of hardware!?
In your code you read the COM port in each iteration and you store that data in the table - even when you don't receive anything. YOUR code is doing what YOU have programmed to do!
Again: implement error handling and store data only when you receive a valid message…
On your VI:
I mainly use LV2019, so please downconvert the VI before attaching. (File->Save for previous)
04-08-2025 06:09 AM
Yes, it is a hardware pushbutton.
Here I attach my VI. Thank you for being willing to help me, Gerd. Your help will means a lot to me."
04-08-2025 06:35 AM