07-27-2023 02:30 PM
Hi all,
I want to connect a BK precision 1688B to my work laptop, be able to read, set and store voltage and current values for an automated test with Labview. I am currently able to connect, read and control the power supply with the manufacturer software. Initially had issues with this because I installed the wrong device driver, but the SW runs flawlessly after I corrected the driver version.
Labview Version: 2023 Q1
NI-VISA version: 2023 Q3
Connecting the power supply with LabView:
I followed connection and setup instructions of these two articles; Set Up Communication with Serial Instruments in LabVIEW using NI-VISA and Set Up Communication With USB Instrument
updated my VISA version to be compatible with my LabView version, set all the device communication settings according to the power supply manual , opened the "Visa Test Panel" and send several commands in the Input/Output tab. Tried: VOLT010[CR], GETD[CR] and GETS[CR] but received this error message back: "(Hex 0xBFFF0015) Timeout expired before operation completed" .
Nevertheless I tried all the VI's of these threads: Recording benchtop power supply output via LabVIEW and Control BK Precision 1687b power supply through VISA ,because I saw that someone had the same issue that me but fixed by correcting the wiring. When I tried them, I got this error: "Error -1073807339 Timeout Expired Before Operation Completed"
My physical connection is a USB AB from the power supply to a USB to my laptop.
Do I need to get a different way to connect the power supply to my PC, say a DAQ? Do I need another driver different from the NI VISA?
I understand something is faulty with my connection but I really don't know where to keep looking. I am pretty new at LabView and analog I/O and serial communication. Could you be so kind to let me know if there is anything I might be missing?
Any help is really appreciated
08-01-2023 07:14 AM
Hi
Maybe I can help you if you send a vi in which you tried the following:
VOLT010[CR], GETD[CR] and GETS[CR]
In LabVIEW a string is not interpreted anymore but send to your device as is.
So including the [CR] and not Character 13 from the ASCII table.
If you want to see what you type enable one of the other diplay modes for a string by right clicking the string and e.g. select
And instead of VOLT010[CR], GETD[CR] and GETS[CR]
type VOLT010\r, GETD\r and GETS\r