LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Modifying LIFA Base

Hello everyone..I'm doing a final year project about measuring body temperature and heart rate. Using LIFA I managed to create block diagram for both, and it is working only if I upload original LIFA_Base. The temperature will show reading and the LED for heart rate started to blink based on my pulse but heart rate reading is wrong. To correct the heart rate reading, I need to add coding for heart rate into LIFA_Base, BUT after I add the code, Lab View show 5002 error.  I attached screenshoots of my coding...What is the problem? Can u guys help me please

Download All
0 Kudos
Message 1 of 3
(3,401 Views)

You are preventing the normal operation of LIFA.  You can't run code that prevents the main loop to run quickly and you can't print messages to the serial bus in the main loop.  You have to do it in such a way that allows the main loop to run unobstructed and you have to send information back to LabVIEW back via the LIFA architecture.

Message 2 of 3
(3,025 Views)

Thanks for the answer Nathan_B. So thats mean i cant use this code as it prevent the loop to run quickly right..I have others idea.

1. Is there a way to measure time interval between blink of the LED using labview?

2. Using VISA, is there a way to make coding for temperature run specific time with block diagram of temperature and coding for HR run specific time with HR block diagram. I'm trying to do this using delay and wait function but the block diagram still mix up both of the reading..

Thanks

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