12-20-2023 06:09 AM
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.
12-20-2023 12:01 PM
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.
12-21-2023 04:00 AM