I am writing a code to control a dc motor using the pwm output in arduino UNO. I have written a labview program to write some variables and read the analog input directly using LINX command in labview. I want to hold the void loop program until the custom command is executed because it takes more time to execute the custom command.
Atleast I need to reference the variables inside the custom command in the Void loop(). How to do this. Pls explain.
I have attached ino in a single zip file for better understanding.
Atleast I need to reference the variables inside the custom command in the Void loop(). How to do this. Pls explain.
What variables in the function do you want to access?
The ONLY way to do so is to copy them, when the function is called, to global variables, and have loop(), or other functions, access the global variables.