LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linx + Arduino Mega with labview

Hi, I am doing pulse oximeter project. To do this, I am using arduino mega 2560 for read and write purpose in Pulse oximeter probe. I am measuring Oxygen saturation level of the patient using this setup. I have got output too. But only one thing I need to solve. When I run the labview code Arduino mega takes few seconds to start the process. This is ok at the start of the project.

But here is the real problem arise. I am supposed to alert the doctors and nurses when patient's finger is misaligned or not placed inside the probe. I have used two button dialogue to alert them via prompting a sub panel. Two buttons are 'STOP' and 'CONTINUE' . When user press stop, program gets stopped. When user press continue, program retry to measure oxygen saturation level. But due to the time delay of Arduino to start the process as in the very first start of the program, that alert panel being prompted two or three times after the patient has placed their finger after the first time warning. Why this delay happens? Is there any way to resolve this scenario?

 

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 1 of 3
(3,673 Views)

You should post your code, so we can look for any inconvenience in there. Please attach either a screenshot of your code or the VI.

 

Good luck.

0 Kudos
Message 2 of 3
(3,499 Views)

The delay may be caused by the Arduino restarting when the serial port is opened in your LabVIEW program.
Opening the serial port changes the state of the DTR line, which causes the Arduino to reboot and run the boot loader.
The bootloader causes a delay of several seconds before your Arduino code starts running.
So you only want to open the serial port once when your LabVIEW program starts running, and not close and re-open the port every time you want to communicate with the Arduino.

0 Kudos
Message 3 of 3
(3,487 Views)