Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging VISA write error (Beginner)

I am trying to communicate with a RIGOL DS1054z using Labview 2018. Using NI Max I can successfully send serial commands [found here: https://www.batronix.com/files/Rigol/Oszilloskope/_DS&MSO1000Z/MSO_DS1000Z_ProgrammingGuide_EN.pdf] to the device through the BASIC I/O tab in the VISA test panel, as seen in the attached file named "Scope_NI_MAX.png". The device also appears as a VISA resource on labview, but when I try to write to the serial I am met with the following error:

 

Error -1073807360 occurred at VISA Write in Scope_Test.vi

Possible reason(s):

VISA: (Hex 0xBFFF0000) Unknown system error (miscellaneous error).

 

I first noticed this error when trying to use the RIGOL DS1000 Series Oscilloscope labview drivers found here [RIGOL DS1000 Series Oscilloscope - USB Driver for LabVIEW - National Instruments (ni.com)], and subsequently made a basic VI to try and debug the error (Scope_Test.vi). The error returned by the VI is also shown in Scope_VI_Error.png. In the case of the attached images I am sending the commend *IDN\n to query the ID string of the isntrument, however I have had the same problem with any command I have tried. I am a complete labview beginner so sorry if this is a dumb question and thanks for any help you can provide.

Download All
0 Kudos
Message 1 of 3
(562 Views)

Unknown error can be a pain to track down.  My first step would be to make sure nothing is using the port (MAX, LabVIEW, Putty, etc).  If that doesn't work, try rebooting the computer.  I may even go so far as to reboot the instrument.

 

Also make sure your LabVIEW code has the exact same VISA settings as your MAX terminal.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(552 Views)

And look at the visa examples. Do not forget init serial port.

greetings from the Netherlands
0 Kudos
Message 3 of 3
(528 Views)