07-27-2021 04:41 AM
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++):
Solved! Go to Solution.
07-28-2021 12:59 AM
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. 😁