Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

BK Precision

I need to have simple control of a B&K Precision DC Power supply (model 1786B). I only need to be able to set a voltage level and enable/disable the output.
The instrument uses a proprietary cable from RS 232 to USB and shows up in MAX as COM3. so far so good.
9600 baud, 8 databits, 1 stop bit , no parity,
All commands are 26 bytes HEX, I can not get any sign of life out of this thing - is there a trick to formatting a long string of HEX?
Does anyone have an example of something similar?
TIA
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 3
(3,658 Views)
Is your string control set for hex display? Unless you do this, you won't be sending the correct characters. Right click on the control to change it. Another way is to have a U8 numeric array set for hex display (right click and select Format & Precision) with your values and use the Byte Array to String function.
0 Kudos
Message 2 of 3
(3,655 Views)
actually I tried it from within MAX
I'll draw up some VISA code and set the string control for HEX and see if it helps.
thanx for the quick response, I'll keep you posted
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 3
(3,649 Views)