Home Forums HTBasic Forum VISA LabVIEW

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9259
    Steve Hopkins
    Participant

      Am I right in assuming that HT BASIC has no direct connection with VISA? Therefore to communicate with some NI cards then I would need to create a LabView DLL in the ‘C’ format and call it from HT BASIC via its DLL interface?

      #9260
      RalphW
      Participant

        The current version of HTBasic now includes a VISA driver: LOAD BIN “VISA;…” (or use Device Setup to configure). There is also an LXI driver that is VISA compliant. You can try out these device drivers by downloading the Trial version of HTBasic.

        #9287
        Jindong Song
        Participant

          Would you please give me a short example to use instrument through visa in HTBasic?

          I connected HP mulitimeter and it was found as ASRL3::INSTR “COM3” in NImax.

          It was connected through USB-serial [CH340 based] and well tested with VISA TEST Pannel in NImax.

          It asked with *IDN? command.

          And I do not know how to use it in HTbasic. I am new guy with HTBasic.

          #9288
          PatB
          Moderator

            Here is a simple program that simply loads the VISA driver for the instrument at ASRL3::INSTR. It outputs *IDN to the instrument and then enters the response and stores it in a string variable. Finally it prints out the returned value in the string variable.

            
             LOAD BIN "VISA;DEV ASRL3::INSTR ISC 7"
            
                  OUTPUT 7;"*IDN?";
                  ENTER 7;S$
                  PRINT "The connected device is: ",S$
                  
                  END
            

            An alternative to loading the driver in code is to use the Device Setup under the tools menu.

            #9291
            Jindong Song
            Participant

              Thank you PatB.

              BR
              JDS

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.
            Scroll to Top
            HTB icon

            Please Sign In