05-22-2019 01:47 AM
Hi
i have a DC electronic load from bk precision having all programming interface.i have chosen rs232 interface and connected through rs232 available on NI CRIO 9045 for programming.they have given library to initialize device.when i am running that library its throwing some error.please go through error and attached vi snap. how to resolve the error?Is dere any driver?
Solved! Go to Solution.
05-22-2019 03:01 AM
From LabVIEW's help:
Note Not all serial drivers support user-defined buffer sizes so some implementations of VISA might not be able to perform this operation. If an application requires a specific buffer size for performance reasons and the VISA implementation cannot guarantee that size, use some form of handshaking to prevent overflow conditions. |
It seems that cRIO-9045 does not support changing the buffer size. Are you sure you need it? Do you experience overrun problems if you simply drop this setting?
05-22-2019 03:34 AM
use some form of handshaking to prevent overflow conditions.
how to achieve this one?
. Are you sure you need it?Do you experience overrun problems if you simply drop this setting?
i tried without this configuration(i/o buffer set).but i am not getting expected response from device.
05-22-2019 04:18 AM - edited 05-22-2019 04:18 AM
@Risuraj ha scritto:
use some form of handshaking to prevent overflow conditions.
how to achieve this one?
Since you are communicating with an instrument, probably you don't have much choice, unless in the instrument's communication settings you could set Hardware handshake or alike.
. Are you sure you need it?Do you experience overrun problems if you simply drop this setting?
i tried without this configuration(i/o buffer set).but i am not getting expected response from device.
This does not mean the buffer size is the culprit. How much data do you expect? Do you receive a partial response? If you don't get anything, the reason would certainly be something else.
05-22-2019 06:27 AM
Hi
Since you are communicating with an instrument, probably you don't have much choice, unless in the instrument's communication settings you could set Hardware handshake or alike
ya i have three option in instrument
none,CTS/RTS,XON/XOFF
How much data do you expect?
47 bytes(instrument information)
05-22-2019 07:24 AM
You don't need hardware handshake (aka RTS/CTS) for 47 bytes. Should you need get much more bytes, enable CTS/RTS both on the instruments and in VISA.
Disable or drop Set buffer size and try to understand what else is going wrong. Attach your vi for more advices.
05-22-2019 11:23 PM
You don't need hardware handshake (aka RTS/CTS) for 47 bytes
when my instrument is connected through usb to my pc that time its working fine(for same Vi), i am able to read 47bytes information of instruments.but when instrument(rs 232) port is connected to crio 9045 rs232 port i am getting error am not able to read instrument 47 bytes information.i attached vi and connection diagram.i set instrument and visa both in RTS/CTS handshake mode.is there any other modification needed in vi??
05-23-2019 10:25 AM
I can't open your vi because I only have LabVIEW 2017. Would you save it for an earlier version?
Did you check that cRIO's port is working? Are you able to receive the command from a computer?
Also, I guess that the cable you use with the computer is not the same. Did you double check it?
05-23-2019 11:31 AM
@Risuraj wrote:
You don't need hardware handshake (aka RTS/CTS) for 47 bytes
when my instrument is connected through usb to my pc that time its working fine(for same Vi), i am able to read 47bytes information of instruments.but when instrument(rs 232) port is connected to crio 9045 rs232 port i am getting error am not able to read instrument 47 bytes information.i attached vi and connection diagram.i set instrument and visa both in RTS/CTS handshake mode.is there any other modification needed in vi??
I would go even further and say that you rarely, if ever need anything other than default flow control. Enabling hardware handshaking may cause more problems than it solves because some serial cables don't have all the pins connected.
It sounds like you are making this needlessly complicated.
06-05-2019 06:04 AM
Would you explain in detail how you solved the problem? It may be useful for other users.