Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-232CT-A in S MODE with labview 8.6 and windows XP

Hey!

 

I'm trying to use a GPIB-232CT-A in S MODE to comunicate with a device using Labview 8.6 in Windows XP.

 

I can already communicate via Hyperterminal and the instrument gives me its ID correctly.

 

Afterwards, I tried to use the following http://zone.ni.com/devzone/cda/epd/p/id/5236 program it gives me the error:

 

Error - 1073807339 even when I try to increase the visa timeout using the function "VISA Set Timeout"

 

I'm sure that the gpib adress, baud rate, parity, etc are correct because I could already communicate with hyperterminal.

 

Any ideas of what is happening?

 

Thanks

 


0 Kudos
Message 1 of 12
(4,350 Views)

Being able to change the VISA Timeout has nothing to do with whether the baud rate etc is configured correctly.

 

You have another problem.

 

Did you install NI-VISA?????

 

 

 

 

0 Kudos
Message 2 of 12
(4,349 Views)

yeah, I know. I was just adding more information.. 😉

 

yes, I do have NI VISA and it works properly with other istruments

0 Kudos
Message 3 of 12
(4,346 Views)

Can you communicate with the instrument through MAX's VISA Test Panel?

0 Kudos
Message 4 of 12
(4,344 Views)

how do I do that?

0 Kudos
Message 5 of 12
(4,341 Views)

ok, I have done it but I have no idea what I'm looking for in the report. any hints?

0 Kudos
Message 6 of 12
(4,340 Views)

Here it is:

 

MAX Summary

  •  My System
    •  Data Neighborhood
      •  CAN Channels
      •  FieldPoint Items (untitled)
    •  Devices and Interfaces
      •  NI-DAQmx Devices
      •  PXI System (Unidentified)
      •  Serial & Parallel
    •  Historical Data
      •  Citadel 5 Universe
    •  Scales
    •  Software
      •  DIAdem 11.0
      •  FieldPoint 6.0.4
        •  LabVIEW Interface
      •  IVI Compliance Package 4.4
      •  LabVIEW 8.6.1
        •  Adaptive Filter Toolkit
        •  ADI_Blackfin
        •  Advanced Signal Processing Toolkit
        •  Analog Modulation
        •  Control Design and Simulation Module
        •  Database Connectivity Toolkit
        •  Datalogging and Supervisory Control
        •  Digital Filter Design
        •  Digital Modulation
        •  DSP
        •  FPGA
        •  Internet Toolkit
        •  LabVIEW Mobile Module
        •  PID Control Toolkit
        •  Real-Time
        •  Real-Time Execution Trace Toolkit - LabVIEW Support
        •  Report Generation Toolkit For Microsoft Office
        •  Simulation Interface Toolkit
        •  Sound and Vibration Measurement Suite
        •  Spectral Measurements
        •  Statechart Module
        •  SV Toolkit
        •  System Identification Toolkit
        •  VI Analyzer Toolkit
      •  LabVIEW Run-Time 6.1
      •  LabVIEW Run-Time 7.0
      •  LabVIEW Run-Time 7.1
      •  LabVIEW Run-Time 8.0.1
      •  LabVIEW Run-Time 8.2.1
      •  LabVIEW Run-Time 8.5.1
      •  LabVIEW Run-Time 8.6.1
      •  LabWindows/CVI 9.0 9.0
        •  Real-Time
        •  Signal Processing Toolkit
      •  LabWindows/CVI Run-Time 9.1
      •  LabWindows/CVI Shared Add-Ons
        •  PID Toolkit
        •  Spectral Measurements
        •  SQL Toolkit
      •  Measurement & Automation Explorer 4.5
      •  Measurement Studio for VS2003 8.1.2
        •  Visual Studio .NET 2003 Integration
      •  Measurement Studio for VS2005
        •  Core
        •  DotNET
          •  Common
0 Kudos
Message 7 of 12
(4,337 Views)
  •  Motion Assistant 2.3
  •  NI LabVIEW SignalExpress 3.0
  •  NI Script Editor 1.3.1
  •  NI SoftMotion 2.2
  •  NI Sound and Vibration Assistant 7.0
  •  NI Spy 2.6
  •  NI Vision 8.6
    •  Image Processing and Machine Vision
    •  Services
  •  NI-488.2 2.60
  •  NI-CAN 2.6.1
  •  NI-DAQmx 8.8
  •  NI-DAQmx Base 3.2
  •  NI-DCPower 1.2.2
  •  NI-DMM 2.9
    •  DMM Soft Front Panel
  •  NI-DNET 1.6.2
  •  NI-FGEN 2.6
    •  FGEN Soft Front Panel
  •  NI-HSDIO 1.5.4
  •  NI-HWS 1.4.6
  •  NI-IMAQ 4.1
  •  NI-IMAQ for 1394 2.0.5
  •  NI-IMAQ I/O 2.2
  •  NI-IMAQdx 3.2
  •  NI-Motion 7.7
  •  NI-PAL 2.5.3
  •  NI-RFSA 2.1
  •  NI-RFSG 1.4
  • NI-RIO 3.1
    •  CompactRIO
    •  C Series Module Software
    •  R Series Intelligent DAQ
  •  NI-SCOPE 3.5
    •  SCOPE Soft Front Panel
  •  NI-Serial 3.4
  •  NI-SWITCH 3.8
    •  Soft Front Panel
  •  NI-TClk 1.7
  •  NI-USI 1.6
  • NI-VISA 4.6.2
    •  NiVisaServer.exe
    •  NIvisaic.exe
  •  NI-VISA Runtime 4.6.2
  •  Traditional NI-DAQ 7.4.4
    • IVI Drivers
      •  Advanced
        •  Instrument Driver Software Modules
          •  KESCPI
          •  NI-DCPower
          •  NI-FGEN
          •  NIDMM
          •  niRFSA
          •  niRFSG
          •  niScope
          •  niSwitch
        •  Simulation Driver Software Modules
          •  nisACPwr
          •  nisCounter
          •  nisDCPwr
          •  nisDigitizer
          •  nisDmm
          •  nisDownconverter
          •  nisFgen
          •  nisPwrMeter
          •  nisRFSigGen
          •  nisScope
          •  nisSpecAn
          •  nisSwtch
          •  nisUpconverter
        •  Simulation Driver Sessions
          •  nisACPwr
          •  nisCounter
          •  nisDCPwr
          •  nisDigitizer
          •  nisDmm
          •  nisDownconverter
          •  nisFgen
          •  nisPwrMeter
          •  nisRFSigGen
          •  nisScope
          •  nisSpecAn
          •  nisSwtch
          •  nisUpconverter
      •  Driver Sessions
        •  KESCPI_COM1
        •  KESCPI_GPIB0_16
        •  ni5401
        •  ni5402
        •  ni5404
        •  ni5406
        •  ni5411
        •  ni5412
        •  ni5421
        •  ni5422
        •  ni5431
        •  ni5441
        •  ni5442
        •  ni5450
        •  niDCPower
        •  niFgen
        •  niScope
      •  Logical Names
        •  KESCPIExampleInstr
  •  NI-CAN Channel Configuration

 

0 Kudos
Message 8 of 12
(4,336 Views)

There was never a mention of getting a report in MAX. What WAS suggested was using a VISA test panel. You can right click on the com resource in MAX, just click on the resource and in the right hand panel, click the "Open VISA Test Panel", or go to Tools>NI-VISA>VISA Interactive Control.

 

I suspect that since it works in Hyperterminal, you are not sending the correct (or any) termination character. This needs to be a carriage return or line feed. In the test panel, that is equivalent of adding a \r or \n at the end of the command.

0 Kudos
Message 9 of 12
(4,333 Views)

ok, sorry I'm new at this. 

 

I've done the read and write test in MAX using \r in the end of each test. The TALK/LISTEN LEDs turn on and off and that wasn't happening in the my labview program, so there's some progress there :). However,  when I try to read, it is still giving the same error: -1073807339.

0 Kudos
Message 10 of 12
(4,324 Views)