Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all 5696 articles
Browse latest View live

Can't control RS232 and GPIB devices at the same time with labview.

$
0
0

Hi all,

 

I have a temperature controller that has an RS232 connection to my computer and a source meter that has a GPIB to USB connection to my computer.

I have VIs that allow me to control each device seperately. But when I made a VI to control them together I can communicate with the GPIB device but not with the RS232 device. I think the VISA GPIB and VISA RS232 are having a problem running similtaneously.

 

Do you know of anything I can try to fix this problem?

 

Thanks for your help.


Agilent MSO8104a resolution

$
0
0

I am trying to acquire thousands of waveforms from an Agilent MSO8104a using the driver examples provided. Currently I am acquiring continuous waveform data from the scope over lan, but the data I am getting is limited to 8 bit resolution which simply is not enough to capture the waveforms I am collecting. The waveforms range in amplitude from ~-10mV to ~-5V and I have used a DC offset to utilise the maximum range of the ADC, however when I capture a wavefrom on the scope manually I get far superior resolution in both time and voltage.

 

Is there a way I can increse the resoltion that LabVIEW is retrieving from the scope?

How do I determine the VISA include directory and library directory (for an installer script, Windows)?

$
0
0

I'm trying to improve the installer script for a package that builds against NI-VISA (on Windows). Is there any officially recommended way (e.g. config file, registry key) to find the include directory (for visa.h) and the library directory (for visa32.dll for example)?

(Other than brute-force searching the file system or asking the user to provide the path...)

Can I add function code 20 to Modbus Library?

$
0
0

Hello Everyone,

 

I am trying to read the bulk memory of PLC using modbus Library. I have set-up a modbus TCP/IP driver using labview and read 125 registers from holding register. But when I added the function code 20 to the cluster input of MB Ethernet Master Query Read Input Register(Poly) function palette. The function indicates error. How can I add the Read file Record to Modbus Master Query? The mapping for PLC references to Modbus is 6yxxxx.

 

Best Regards,

 

Sophia

 

VISA 0xBFFF0011 (insufficient location information or resource not present) with ICS Electronics 8065 LAN to GPIB gateway

$
0
0

Hi, this problem has me pretty much completely stumped. Any ideas or guidance is very welcome.

 

My hardware:

ICS Electronics model 8065 LAN GPIB gateway (pdf spec sheet)

connected to:

ICS Electronics model 4863B GPIB/IEEE488 Bus interface (pdf spec sheet).

 

My software version:

Labview Version 2012 SP1

Measurement & Automation Explorer Version 5.4.0f0

NI-VISA Version 5.3

 

Problem description:

When I try to connect to the VXI-11 interface of the 8065 from NI-MAX, I get the error:

Error opening resource: 
TCPIP0::172.21.2.160::gpib0,4::INSTR

VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 Steps to reproduce:

  1.  In  NI Measurement & Automation Explorer -> Devices and Interfaces -> Network Devices, choose "Add Network Device", "VISA TCP/IP Resource"
  2.  Choose "Manual Entry of LAN Instrument"
  3.  Enter IP Address (172.21.2.160) and LAN Device name (gpib0,4)
  4.  Press "Validate" and immediately get the above error.

Troubleshooting steps taken

Pinging the instrument:

Successful

 

Connecting to instrument with telnet to port 111

Successful

 

Connecting with 3rd party VXI-11 utility

Using "ICS Electronics VXI-11 Keyboard" Can successfully connect and run "*idn?"

 

Connecting from another computer:

From a different computer, running LabVIEW 6.1 with MAX v3.1.1, if I follow the exact same steps as above, I can connect and talk to the device (e.g. write "*IDN?\n" to the device and read response with the VISA Basic I/O utility).

 

Running wireshark

I can't see any packets sent or received to the device's IP address using wireshark, which I find odd.

 

Nothing in the buffer

$
0
0

Hi all,

 

I'm struggling to make a VI to work with Omega controller. I have CN745 connecting with a computer via RS485 and using RS455-to-USB converter. I created a VI as in the attached picture. My problem is that I don't receive anything in the buffer. Any ideas what might go wrong in my VI? An interesting thing is that with the same physical setup (i.e. wiring, converter), I get to work using Visual Basic 6. I tried to look for example VI, but there is no direct example. So I adapted it from the ones that are close to my controller protocol (different Omega controllers may use different communication protocols)

 

Eventually, I will have this VI in a loop to monitor temperature for every few minutes. I also will add a write temperature setpoint VI in there.

Max and LabView cannot communicate with serial device

$
0
0

I am trying to connect a Mettler- Toledo  JL- 6001 balance to my computer as an input for a LabView Program through a  RS-232 to USB line.

 

In MAX, I sometimes (but not always) get the error message that   "The resource is working properly but VISA cannot currently access it".

 

Under the General tab for this port I get the message" VISA returned this device when finding resources, and MAX was able to use VISA to parse the resource name.  The resource was busy, so MAX could not successfully open a VISA session to the device."

 

 

 

In LabView, the program runs but I get all zeros as the output which is definitely not correct.

 

 

I have tried disabling and then enabling the port. I have tried making sure no other program is using the device, and restarting the computer.

 

 

 

 

I am not sure I have the correct driver installed for this scale (MTT driver), (they make a lot of balances and a few drivers and wasn't sure which one to use). I don't know if this makes a difference in MAX.

 

 

Any tips for how to get the balance and MAX to communicate? Also I know almost nothing about digital/serial data transfer so a very dumbed down answer would be greatly appreciated.

 

 

 

 

Thanks in advance,

 

 

Joanna R Murphy

 

 

GPIB Connection Problem: First Post Please Help!

$
0
0

Hi everybody, this is my first post so any help would be greatly appreciated.

 

I am using a potentionstat made by Princeton Applied Research, Model 273A, and a program called Research Electrochemistry Software that helps me do voltammetry. However, when I run the program, I encounter an error that says "gpib_error_check 49508," so I assume that there is a problem with the GPIB connection. I have checked multiple times to make sure all the cables are connected correctly, so I don't think that's the issue. When I open NI-488.2 and I select my instrument (Instrument0), the value says "Instrument did not respond," so I'm guessing this is the problem. Moreover, when I try to communicate with the instrument by querying "*IDN?", the output is iberr = EABO, which means that there is a timeout condition because the I/O operation has been cancelled. We have tried reconnecting cables and restarting the machines, everything short of reinstalling the program because doing so would be difficult. Any suggestions?

 

Thanks,

Ben


wiseCustomCalla1.7EEDDDA1_408B_11D3_9AE0_006097741583.dll

$
0
0

Hi,

I am having troubles in installing NI 488.2 (I will install later the software of the GPIB USB adapter) .

I keep getting the error message about missing or damaged dll "wiseCustomCalla1.7EEDDDA1_408B_11D3_9AE0_006097741583.dll".

I couldn't find any download link of this dll.

I would appreciate your help

Thanks,

Leonid

Agilent 33500B - "Too much data" when loading

$
0
0

Hi,

 

I am controlling an Agilent 33522B using VISA and am having some trouble trying to load a 1MSa arbitrary waveform. When I try and load any more than 70KSa I get the following errors:

" -223: Too much data
-101: Invalid character...
...Repeat -101: Invlaid character x 15...
-350: Queue overflow"

I am loading the data down in Definite length binary block format. 

A second bug I am seeing is that although I am loading 70KSa (140KB) to the instrument, it displays the arbitrary waveform as being 140KSa long. Is there some setup element where I have to configure that each sample is two bytes long? From reading Agilent's documentation I believed that the device can accept samples only in I16 or Double forms?

If you have any solutions or similar experiences please let me know as soon as possible.

Thanks,
Darragh

DB25 RS232 Connector

$
0
0

Hi,

 

I hoping there could be someone who might have experience with this and could offer some advice.

 

I have a very old piece of equipment (Schaffner NSG 1003) here which I'm hoping to write some LabVIEW drivers for.

I have the old manual for the piece of equipment here and it gives the following pinout for the the remote connector (RS232 25 Pin Female Connector)

 

Pin               Signal

1                  Ground

2                  RX

3                  Tx

4                  CTS

5                  RTS   (Pin 4 and 5 are shorted to each other)

6                  DTR

7                  Signal Ground

8                  Ground

18                +12V

20                DSR   (Pin 6,8, and 20 are shorted to each other)

25                -12V

 

I have tried making a few cables (null modem, straight through etc) but none have yet to work.

I wish to make a cable which uses a DB25 Male connector on the equipment end and a standard DB9 connector on the computer end.

 

Does anyone have any experience with this pinout and what pins are needed for successful communications?

 

Also the manual does not state if a termination character is needed.

I assuming one is needed and I'm guessing it is either a LF or CR.

If anyone has any experience with this machine or ideas in general I would really appreciate their input.

 

Thanks,

Patrick

 

Missing scaling box for "all" outputs

$
0
0

I setup MAX and scaled all my outputs and everything has been working fine for months.  Yesterday I added another fieldpoint module, set it up, and the program was running normally.  I stopped the program, changed my sample, started the program again...and suddenly my program was returning very weird (non-physical) data.  I traced it back to improper scaling (MAX was reporting correct raw values), but when I tried to fix the problem, I no longer have access to the settings box I used to do the initial scaling!  (see attached image)

 

I was able to workaround this problem by polling each channel individually (with a loss in latency now from polling the serial module an extra 5 times...) but I'm really curious as to how/why this occurred.  Any ideas?

 

Thanks,

Randall

Problem setting VI_ATTR_SUPPRESS_END_EN Attribute for my TCPIP MBSession

$
0
0

Hello,

 

im using the NI-VISA for c#.

I have to set the VI_ATTR_SUPPRESS_END_EN Attribute to false in order to get my query with an instrument working.
I have already checked it with MAX and its working perfectly. In MAX there is a checkbox on the VISA test panel to change this property.

Unfortunately i can't find a "VI_ATTR_SUPPRESS_END_EN" property of my TCPIP MBSession Object in my Visual Studio - C#.
There are lots of properties but this one is missing!!! :-(

Why is it missing? What else can i do to set this attribute?
Thanks in advance!

VISA connection Labview-Tektronics 3000 scope via ethernet

$
0
0

Hello,

 

I want to connect a Tektronics 3052B scope to Labview 2011 using a ethernet connection. Unfortunately, it does not work. Perhaps someone here can help me.

 

Step1: Connect scope and computer via an ethernet (crossover) cable. I use a fixed IP adress. I'm able to ping the scope and view it in the internet explorer. The connection is thus working.

 

Step2: Use NI Measurement and Automation Explorer to connect the Instrument. I followed this description http://www.tek.com/support/faqs/how-do-i-connect-my-oscilloscope-ethernet-connection-ni-visa but unfortunately, my NIMax does not find my scope. I tried to find it automatically, to enter the IP adress directly - nothing works.

 

I've installed Labview 2011 and NI-VISA5.1

 

Best regards, Tina

Using Chroma A615003 with 6160x

$
0
0

I am trying to use the Chroma 61604 in conjunction with a Chroma 615003 AC transformer to acheive 480Vac. I cannot figure out how to enable the A615003 programatically. The 61604 user manual only lists low, high ,and auto ranges. I need to enable 600V range, which I can do manually, on the 61604. When I manally go to 600V range, the A615003 is enabled automatically. Does anyone here have experience with this? 

 

Thanks!


What is the C# equivalent to the ibonl C function?

$
0
0

In the NI-488.2 documentation there is a function "ibonl" to set a board or device online or offline, I want to perform the same task in a C# application, on a per device basis.

SCPI Command to make S Param measurement - Agilent N5227 A

$
0
0

I am using VISA to control Agilent N5227A over LAN. What is the command to make a new S Parameter measurement? Is it the same as reading & saving? (CALC:DATA&colon;SNP:PORTs: SAVE <num><filename>)? 

 

Thak you

Unexpected Error in NI MAX

$
0
0

Hello,

 

i sometimes receive these errors in MAX (Measurement and Automation Explorer):

 

The niGPIBsys.dll plug-in caused an exception in the CmxSysExpertManager::InitializeExpert function in the NIMax process.
See these files for details:
C:\ProgramData\National Instruments\MAX\Logs\20130715_132347-NIMax-00001B7C.log
C:\ProgramData\National Instruments\MAX\Logs\20130715_132347-NIMax-00001B7C.dmp

 

OR

 

The niGPIBsys.dll plug-in caused an exception in the CmxSysExpertManager::FinalizeExpert function in the NIMax process.
See these files for details:
C:\ProgramData\National Instruments\MAX\Logs\20130718_105523-NIMax-000017A4.log
C:\ProgramData\National Instruments\MAX\Logs\20130718_105523-NIMax-000017A4.dmp

After PC restart this works fine and I dont get error messages in MAX.

I use Labview 2011 SP1 and Windows 7.

Hardware from NI: PCIe-6259

The folder "ProgramData" does not exist, so I cannot find the files listed above.

 

This is a new installation of LabView 2011 on a new computer, but settings in MAX are imported from old PC and the PCIe-6259 card was also taken from the old PC.

I installed all critical updates via the NI update service for NI 488.2, NI serial etc., but it did not help. I also removed entire MAX database and imported in again, but no progress.

What should I do? Thank you for any ideas.

Petr

Problem getting Matlab to recognize the NI-VISA Adaptor on Mac OS X 10.8.4

$
0
0

Running Matlab R2013a, Instrument Control Toolbox ver 3.3 on a Macbook Pro Mountain Lion 10.8.4.

 

I have installed NI-VISA 5.3 and am having trouble getting the VISA adaptor recognized. Running the usual commands:

 

>> visainfo = instrhwinfo('visa');
>> visainfo

visainfo =

InstalledAdaptors: {1x0 cell}
JarFileVersion: 'Version 3.3'

 

Shows that Matlab isn't seeing the adaptor. Any pointers as to what I did wrong or what I'm missing? I intend to use the Instrument Control Toolbox via TCPIP and USB to a few instruments.

 

How do I access administrator privileges for 488.2 in Windows 7?

$
0
0

All my attempts at changing Programs Folders security settings in Windows 7 has not allowed me to gain access to settings on my GPIB card. I have administrator privileges on my laptop but cannot change my GPIB card primary address.

Viewing all 5696 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>