04-18-2018 05:56 AM
Hi,
I have BK9117 power supply.
I am trying to communicate with the power supply using RS485.
I can able to control the power supply using GPIB.
When I use RS485 , using NI MAX on the VISA test panel When i send the command *IDN?\n and read it back I get following error
Read Operation
Error
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I am using the USB-RS485-WE from FTDI.
I connected the Yellow (DATA-) to pin 1 of the BK9117 RS485 which is B-
I connected the Orange(DATA+) to pin 5 of the BK9117 RS485 which is A+
The configuration setting of the serial port in the BK9117 power supply and NI VISA Test Panel is same and I have verified it. The settings are as follows
Baud rate - 9600
Data Bit - 8
Stop Bit - 1
Parity - none
Looking at the view attribute section of the NI VISA Test Panel I found Is Port Connected is invalid property value.
Searing for VI_ATTR_ASRL_CONNECTED in google I found the following
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L7PSAU
So if i need to communicate with my device is that I need to use the USB-485 developed by NI and not any third party devices ?
04-18-2018 08:26 AM
Hi,
Its because the command doesn'T exsist. Please check the driver protocol and try using the some register information (Read register or Holding register).