From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C communication

Hi 

 

I am working in LabView to communicate with a ZSC 31014 chip and am struggling with how to use the VISA read and write functions in LabView.  When using the VISA write function the input is an ASCII string, but what does the function send? If i need to write something in hexadecimal form do I need to convert it then put it in the write buffer?  I have attached a picture of my VI as well as the command syntax sheet for the device.  The first task is to send the command v to the command board and then read a repsonse. 

 

thanks.

0 Kudos
Message 1 of 4
(2,705 Views)

The VISA Write is just sending a 'v' through the UART you specified.

 

Do you have a RS-232 to I2C device?


GCentral
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 2 of 4
(2,688 Views)

The communication board is connected to the computer by USB. the v command returns the current version of the command board. 

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

If you need to specify the string to send in hexadecimal rather than ASCII form, then right-click your string constant (currently containing "v") and select "Hex Display" instead of "Normal Display". Then you can enter the string byte-by-byte as pairs of hexadecimal digits.

0 Kudos
Message 4 of 4
(2,633 Views)