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

Auto-detection of LXI instruments on Linux

$
0
0

Using Linux version: Linux Suse 42.3
VISA version 17.0

Problem: LXI instruments, connected by Ethernet, are not discovered in programs such as NI-VISA Configuration and VISA Interactive Control.
For instance, Keysight 34461A, MDNS is turned on. But, I can establish a connection using IP-address of device manually. Why LXI devices are not discovered?


Control DC power supply via RS232 interface labview

$
0
0

Hi guys, I am a new user of labview and I really need your help.

I connected my Agilent E3631A Power Supply to my PC using the serial rs232 port, but I have some problems:

1) Using the "NI drivers finders" I downloaded the correct driver, but when I "scan for instruments", it gives me "No connected instrument detected" (See Image1)

2) I clicked on the driver file and I opened the example file that should let to command power supply voltage, but it gave me an error "Time expired before operation completed" (See Image2)

3) I am almost sure that the rs232 port works. I tested it on MAX and I set power supply with the same values of "Baund rate, Parity ..."(See Image3).

Furthermore I tried to connect another instrument using RS232 port and labview recognise it.

 

Any suggestions?

Thank you a lot for your advises

 

C Problem: Adressing a GPIB Instrument at GPIB Address + 1

$
0
0

I'm trying to write an iGPIB nstrument driver in C.

I have a Driver Template and get the input

 ViSession   VISAResourceName

 

So the instrument I want to control is an RF-Amplifier, which is internal two amplifiers, one from 9kHz to 400MHz, the second from 200MHz to 1GHz.

The output is routed into a second Amplifier on a different GPIB address, and in this Amplifier is the RF switch matrix which i have to switch for routing the Output of Amplifier 1 to the right output of Amplifier 2.

Amplifier 2 has the GPIB address of Amplifier 1 plus 1 (e.g. Amplifier 1 address 7, Amplifier 2 address 8).

How can I extract the GPIB address out of the VISAresourceName and set it to GPIB adddress +1?

 

GPIB Keithley2700 4-wire and 2-wire resistance measurement

$
0
0

I am trying to use Keithley2700 do 4-wire and 2-wire continuous resistance measurement based on channel assignment, then output measured data. I attached the VIs  and error messages I get.

I am able to do 4-wire or 2-wire continuous resistance measurement separately. When I try to switch between 4-wire and 2-wire, it doesn't work. Anything I need to set here?

The Forloop is the top VI, the .csv file is the channel assignment. 

Any suggestion and help are appreciated.Thanks.

 

serial communication through RTI1104

$
0
0

Hello,

I am new to dSPACE and serial communication. I am currently working on project using dSPACE (RTI1104). For this project, I need to create serial communication through dSPACE RS232 port to dc power supply (keysight E3633A).  Right now I am unable to generate communication between these devices. Can anyone help me in that? Thanks for your help in advance.

PXI-8432/2 Odd behaviour in MAX

$
0
0

 

I have a PXI-8432/2 in a couple test stations. The problem I see occasionally is the assigned serial ports on the card either don't match device manager or are in conflict with another serial port! (Conflict as in multiple hardware devices have taken the same serial port # according to windows..) . 

This seems to occur when DUT's that enumerate as virtual com ports are connected/disconnected to the test station. 

 

 

Here is a example of the board not fully enumerating: 

image.pngMAX View

- Windows Device Manager shows different VCP 

image.pngWindows Device Manager

 

When this problem occurs then I usually have to play with device manager until eventually it get's sorted out. Maybe reboot a couple times. 

 

VISA version is 18.0. 

 

Anybody else seeing this? Any other ideas on resolution to make this card more stable? 

 

Auto range / Voltage limit

$
0
0

Hello,

I've been using an example LabVIEW program such as Sweep and Acquirement to attain a simple I-V measurement. I am aware that 4-wire setup has a hard-limit on voltage of 21V without an interlock, and I only try to sweep up to 20V. However, somehow the voltage gets capped at the level less than 20V--somewhere 16V to 17V depending on a sample (I source voltage and measure current).

 

I instead tried the manual setting on the touchscreen. I changed the range from auto to 200V, and when I source 20V, the sourcemeter correctly puts 20V to the sample and displays a reasonable amount of current reading. Therefore, I assume the premature voltage cap that happens on LabVIEW implementation comes from the voltage range set as auto. However, I am still very confused as to why this is so. Why does it get capped below the hard voltage limit when the range is in auto mode? And, what kind of modification do I need in LabVIEW program to avoid this issue?

Incorrect PID/VID for USB-GPIB-HS

$
0
0

Relevant info from ni488.inf:

 

%UsbHSDesc%       =  USB_INTERFACE,USB\VID_3923&PID_709B

 

While info from 'unknown device' in device manager shows the following:

USB\VID_04B4&PID_8613\6&39BBC440&0&2

 

There is therefore a mismatch between the PID and VID values expected in the driver inf and those that are presented by the hardware.  As such, the hardware is not recognized and I am unable to install the driver.

 

I have managed to successfully hack the .inf file by changing the expected PID and VID values and install the driver, however this leaves me with an unsigned driver issue making the USB-GPIB-HS invisible to all NI Programs (NI-MAX, Interactive Control). 

 

Anyone dealt with this?  I'm running on Windows 10.  NI says this device is still supported and it is still present in the driver inf... just with the wrong identifiers.

 

 - Shaun


Using one GPIB-USB-HS controller on multiple computers

$
0
0

Hello, 

 

Is it possible to control instruments through a GPIB-USB-HS instrument control device on two separate computers at the same time using a usb splitter cable? 

 

Thanks! 

NI VISA USB RAW Bulk - In Read Timeout Error

$
0
0

Hi All,

I am working on NI-VISA to communicate with RAW USB.  I am trying to communicate an Instrument via USB RAW Bulk transfer through endpoints. This is not a NI Hardware/Instrument, it is a third party Instrument. I am not using multiple endpoints; I have fixed endpoints for Bulk-in (0x82) and Bulk-out (0x01).

I believe (I am not conclusive),  I have written the data through Bulk-out endpoint to my Instrument, as the return count terminal exactly shows the number of bytes that I am writing. I also want to know is there any other way to confirm the data been written into the Instrument.
The problem is that when I am trying to read the data from the Instrument, the NI-VISA Read function times out after 2000ms which is the default setting for the timeout. For your reference, I am attaching the different trials that I 
have tried for achieving the same. I am unable to read the data.
If someone can help me out of this will be appreciable. I went through few 
forums, I understood many have faced this issue. But, I haven't found any solution for the post.
Kindly forward me any support if you have worked on this issue before. Thanks in advance.

Keithley 2182A for long duration voltage reading

$
0
0

Hi,

 

I wanted to make noise measurements of a system with a Keithley 2182A by doing a voltage acquisition for a given time and then doing the analysis.

For that I need to read voltages with the 2182A for a set amount of time and each readings need to be made at a constant time interval.

 

Does anyone know how I could do this ?

Read serial data from simple multimeter: instrument assistant succeeds, MAX not

$
0
0

Hi, I try to read data from a simple multimeter with USB interface. When I use the Instrument assistant the data gets correctly displayed during the 'read and parse' step (see attached screenshot 1), but neither the finished VI created by the assistant nor the visa test panel succeeds to read the data (screenshots attached). The error is always: "The resource is valid, but VISA cannot surrently access it." (Even though NI-trace shows a viClose as last command of the assistant.)

Could someone please help me? The multimeter has a very simple serial interface: it does not 'listen' to anything. It just sends the data 2 times per A/D cycle to the serial interface as soon as the function is hardware activated. I use a FI2803MT, but, if I understood well, many other multimeters send their data the same way. I did not suceed to mimick the instr assisant commands to get the data.

Thanks a lot for your help

 

 

Separate the ground of a 3-Phase Back-to-Back Inverter Research Board converter

$
0
0

I am working out a 1 phase Multilevel Cascaded converter using a 3-Phase Back-to-Back Inverter Research Board converter. But I cannot use a single board to design this. Because both the inverter on board has common ground. So is there any way I can separate both the converters ground. 

 

This is very important to me. The alternative is I have to use two separate board to design this which is a lot more cost. So I am definitely looking for a positive answer. 

 

Thank you in advance. 

XNET pallete or examples not available in LabView (2014)

$
0
0

Hey All,

 

Im trying to test some XNET controls to read CAN signals (NI-9862) but I cant seem to find any XNET palletes or examples for anything related to XNET in labView. I can see my 9862 device as well as the drivers for XNET. I have both NI-XNET 14.5 and NI-XNET Runtime 18.0 (which can be seen in MAX).

 

Could this be an incompatibility with the versions of XNET Im using and labView (2014, 32-bit on 64-bit machine)?

GPIB seems to be maxing out current?

$
0
0

I am running a National Instruments GPIB-USB-HS+ on some software that we use in our lab. All it does is read the voltage/current/power in from a Magtrol 6530 and display it on a VI. In the software what I'm doing is measuring fan air flow and power to get fan air and power curves. So I have an instrument panel on my VI that reads out all of the data and then I click a button to take a point, which records all of the data at that moment in time and saves it to a table/array, then when I have taken all the points that I need I click process and it outputs that table/array to an Excel data sheet template.

 

The issue I'm having is that it seems like the GPIB or the software has a max limit and I can't figure out why. My Magtrol is reading everything out correctly, but in the software my display will only read in the current and power if the current is under 4.5a - if it is over that then the current and power read 0, even though the Magtrol is reading out the correct values no matter how high they are. The voltage reads out consistently in the software no matter how high any of the power readings are.

 

Any idea what could be the issue?


Any way to communicate with two serial port on one pc?

$
0
0

Hello guys, 

 

Now I set the platform to measure the magnetic field, so I have a 3 axis motor system and a probe. Now I already controlled the motor to write and read data on labview, the rest thing is to let the probe to write and read some data on every motor axis position. So is it OK for labview to communicate with 2 serial port?

 

Thanks

Getting a Time out error on HP 54120A connected via a Agilent 82357B GPIB/USB

$
0
0

I have a HP 54120A connected by a Agilent 82357B GPIB/USB to my laptop running windows 10 64 bit. I have agilent visa and NI visa and NI Device Drivers 2018.05. I have done the following
[https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9t6SAC]

i. Enabling the NI-VISA Passport for Tulip
ii. Enabled Keysight GPIB cards for 488 programs.

However, I have the following issues
I. Timeout when sending commands to 54120A over GPIB
a. In Keysight IO LIbraries Suite, I get the following results in Keysight Interactive IO

* Connected to: GPIB0::7::INSTR
-> *IDN?
<- HEWLETT-PACKARD,54120A,0,2731

-> *CLS
! VI_ERROR_TMO: A timeout occurred
Visa ErrorCode: 0xBFFF0015 (-1073807339)
! Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

-> *OPC?
<- 1

-> *TST?
<- 0

-> *RST
! VI_ERROR_TMO: A timeout occurred
Visa ErrorCode: 0xBFFF0015 (-1073807339)
! Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

b. I get similar results in NI Visa Test Panel

That is, I can not send certain commands to the 54120A [I get a time out error]. I increased the time out to 20 seconds, tried changing the termination character from the default \n to the other options. But there is no change in the results.

I found the following discussion which refers to a similar problem:
https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/hp-54120a/m-p/2532044/highlight/false#M60626
but was unable to follow it, because there seems to be no menu named
HPIB>>Mode=Addressed
I found a menu item named "HPIB" in Utility menu, with options Address:Talk and Talk/Listen,and EOI. The caption on the screen says HP-IB Address=7. But there is nothing like Mode=Addressed anywhere.

II. Unable to acquire data from the 54120A in Labview.
In Labview Project [Aginent 54129.lvlib: acquire and display data.vi, i get the following error out [-1073807346]
error -1073807346 occurred at VISA Write in Agilent 54120.lvlib:acquire and display data.vi

Possible reason(s):

VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.


Please help me resolve these issues

Sagar Kapadia

Telnet connection from Win 10 to Win NT

$
0
0

Hi users,

 

I want to connect Win NT to Win 10 via Telnet. I have a ethernet cable and it ist possible to ping, but it doesn't work by LabVIEW. 

 

Some Details:

First PC: Laptop with Win 10 and LabVIEW 2017 and Internet toolkit

Second PC: Win NT; There is included a robot control; The Win NT communicates with a OPC Client and a OPC Server to the robot control.

 

Finally I want to send and read with LabVIEW the robot coordinates to and from the robot control. 

 

My first question is if it is in general possible to do this and my second question is, how i can creat a telnet connection between this two hardwares?

 

Thanks for all your comments and if you ned some more informations, you are very welcome!

 

Best Regards 

Daniel

Locking for an old ISA ICS 488.2-PC2a legacy card support/drivers for Labview 2014 Home Bundle running under WinXP.

$
0
0

Dear community,

 

I know that I'm using an outdated system with an outdated ISA card... but I'm a hobbieist and I'm not working as a professional.

 

I've purchsed Labview2014 HomeBundle version and the installation worked so far including "registration".

 

Now I like to use my old ICS ISA Bus 488.2-PC2 card.

So I'm looking for the latest and old  legacy driver that supports my Labview version running under Win XP using the old card.

I'm not able to find anything myself.

 

Would be great if someone is able to help me here.

 

Many thanks from Berlin (Germany)

Torsten

Setting up a GPIB communication with Keithley 220 and HP 34401A

$
0
0

Hi everyone,

 

I am using GPIB-USB-HS to connect both Keithley 220 Current Source and HP 34401A Multimeter and send commands via LabVIEW. I am using an existing old LabVIEW code, but I keep running into the problem (Error 7, file not found) when I send the command through GPIB Write Function, "INP:IMP:AUTO ON" (which sets the multimeter in high impedance).

 

And so, I am climbing down to the low level subVIs. However, it looks like I can't even run this simple voltage reader VI. There is simply no output string when I run the program, and so I assume I am not communicating with 34401A

Screen Shot 2018-06-21 at 3.47.00 PM.pngIn order to figure out whether the devices are connected to the computer via usb cable, I ran NI MAX program, and I GPIB-USB-HS "GPIB1" is visible under Devices and Interfaces.

 

What am I missing? One of my confusions is how to set GPIB address of two devices. Do I set them with the same address? I am confused then how, when sending a GPIB Write command, we can select one of the two devices (220 and 34401A). 

Viewing all 5564 articles
Browse latest View live


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