Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

want to send data through labVIEW to arduino using visa write and the process and take steps using arduino. A

Solved!
Go to solution

@Jerson_Jose wrote:

Hi,

 

how do I send a Boolean value to an Arduino digital port using VISA Write if it only accepts strings? The Boolean value will open/close the valve connected to the digital port of Arduino. 

 

Thank you.


Use Format String to put the boolean into an ASCII representation of some kind.  Most commonly, I see "%d" for the format which will turn the Boolean into a "0" or "1".



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 21 of 21
(551 Views)