11-18-2012 01:55 PM
I am wondering if anyone has been using the INIT and CLOSE to reset the arduino during the main VI's operation? Say you had your VI operating, then momentarly killed what ever input and outputs you had running to the Arduino, then CLOSED it and INITed it again a reset would be performed I believe. Is anyone doing this during VI operation?
11-18-2012 04:56 PM
What do you mean by "momentarily killed what ever input and outputs you had running"?
In a general sense, there should be nothing preventing you from closing and then reinitializing. I've not needed to do it. Perhaps once you answer my question above, we will be able to give a better answer.
11-19-2012 07:12 AM
What I mean by "momentarily killed what ever input and outputs you had running" is purposly stopping what ever inputs and outputs the VI was running to the Arduino, then basically resetting it via the INIT and CLOSE. i.e. doing this on purpose, litterly stopping the IO for a moment, making a reset, then restarting the IO.
11-19-2012 02:50 PM
Thinker_007,
You can certainly use the Init / Close VIs to reset the Arduino, just keep in mind any configuration you've done will be lost when you execute the close VI.
The Arduino resets due to the VISA Open and VISA Close VI's toggleing the DTR line on the serial port. The Arduino IDE uses the DTR line to reset the Arduino so that you can interrut the bootlaoder when programming the board without having to press the reset button (this is 'new' on the duemilanove and later I think).
-Sam K
LIFA Developer