LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Best Practice For INIT and CLOSE

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?

0 Kudos
Message 1 of 4
(4,108 Views)

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.

0 Kudos
Message 2 of 4
(3,390 Views)

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.

0 Kudos
Message 3 of 4
(3,390 Views)

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

0 Kudos
Message 4 of 4
(3,390 Views)