Aerospace, Defense, & Government
Academic & Research
Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
You can request repair, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
Dear LabView community,
I am trying to control my Toellner PSU by using the integrated GBIP port with the VISA driver. My program is written in c++.
Initialization and command writing works fine, but when I try to read back the response by using viRead(), the error 0xBFFF0012 (VI_ERROR_INV_RSRC_NAME) occurs.
I find this a little bit strange, because in the viWrite() function, I'm using the exact same resource name.
What I'm doing wrong? Thank you for your suggestions!
output from NI I/O-Trace:
code lines (C++):
Go to Solution.
I found the error:
during the viRead() function call I gave a non existing item of the buffer instead of the buffer itself. So by changing the line to
status = viRead(instr, (ViBuf) buffer, MAX_CNT-1, &retCount);
everything works fine. 😁
What do you need our team of experts to assist you with?
We'll be in touch soon!