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

Agilent 34461A controlled with Labview

$
0
0

Hi,

 

I need some support from the you in regards to a problem that i have when I'm trying to communicate with an Agilent 34461A using labview.

I am using the examples from labview and when i run the application the DMM goes into remote state but everything freezes.

Even if i try to abort the execution is not doing anything. 

I think I have everything installed and I also did a firmware update to 2.17 version on the agilent which is the latest.

I have downloaded the Keysight benchVue just to validate the cable and USB port and with this is working fine.

Please see attached screenshots from MAX with all the SW, Labview with the diagram and from BenchVue wit hthe measurement taken.

 

What else should I try to acquire data from the DMM?

 

Thank you!

 

 


gpib-enet/100 cannot obtain IP

$
0
0

Hi, 

We bought a new gpib-enet/1000 convertor, however, it cannot obtain ip automatically.

It can be seen the mac addr connected to our Ethernet port, but the status is inactive.

We pressed the CFG Reset switch with about 30sec, and released, the RDY LED keeps on steady red

What's the problem?

C# coding

$
0
0

Hi,

I am trying to implement a driver from labview to C#.

Can anyone please help me in this matter.

 

regards

Deutschland

Need a download link for ni-488.2 16.0

$
0
0

Hi everyone,

          I am using a GPIB to connect my signal generator, but after I install NI-VISA it still shows error on NIMAX. My OS system is windows 10, and the labview is 2013, so the compatibility for NI-488.2 to fit this OS system and labview is pretty narrow for me. Do you guys have download link for this ni-488.2 16.0?

Thank you. 

Serial Connection for EFD Ultimus V (RS232)

$
0
0

Could anyone explain how to control the functions via serial port in Labview? I know there is an Ultimus V 2009 driver download on the NI website. Could anyone walk me through getting started?

Opening virtual GPIB connection using Python

$
0
0

I am trying to write a Python script to send SPCI commands to a Tektronix TTR506A Vector Network Analyzer. I have reviewed the programmer's manual for the device, as well as installed tekVISA and PyVisa. Using the tekVISA software, I can see that the VISA address for the device is 'GPIB8::1::INSTR', and the manual states that it is a virtual GPIB connection. I am trying to send a *IDN? command just to verify that the connection works, but I can't even seem to figure that out. The code I have so far is:

 

import visa

rm = visa.ResourceManager()

rm.list_resources()

inst = rm.open_resource('GPIB8::1::INSTR')

 

After the third line, a few instruments pop up, but not the virtual GPIB. After the fourth line, I get an error saying  'the interface type is valid but the specified interface is not configured'. I am wondering my code is wrong, or if there is an issue with one of the programs installed. I know that these programs are installed, as well as their respective drivers.

No response from power supply Gen 40-125 by serial rs 232

$
0
0

Hello, I´ve been trying to control a power supply from my pc using rs 232.

manual here http://www.us.tdk-lambda.com/hp/pdfs/Product_manuals/83515000.pdf

With it I set up the correct serial settings; Baud rate,data bits, etc.

 

I download the drivers of the company (even if my model isnt there I was told they would work just fine), as you may know there´s a example there but even while appearing to work in code it doesnt irl. It doesn´t do anything. ni drivers

 

I´ve used NI MAX to try to communicate, to test first (but I already have a program to send commands). By doing so I´ve gotten this error; 

after the command it says 

Write Operation (\sADR\s06\r\s)
No Error

Read STB Operation
Error

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

I believe this is due to a no response.

 

I tried using the method in this thread, the last comment: https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Serial-Communication-with-TDK-Lambda/td-p/2924700 with no success.

 

I have found in other similar threads that it may be due to the cable, I use a rj45-db9 and db9-usb, I have use succesfully a db9-db9 and a db9-usb, and not the original cable. I´ve used this same setup to communicate to a multimeter.

 

 

 

NI-6351A communication Example .Net

$
0
0

Hello i installed NIDAQ1760f2 and i want to communicate over a .Net Environment but i found no examples Smiley Sad

 

Does somebody know where i can get examples?

 

I have searched the hole Pc for examples...............

 

and why is such documentation always bad. Does the think i am measuring with the NI Device Monitor.

 

Thank you


Agilent 4263B external trigger

$
0
0

Hi,

 

Actually I'm measuring with the 4263B. Works fine but I've some troubles with the external trigger. I can't find any solution that the programm waits for the next step until receiving external trigger from instrument. I've tried STB reading and VISA event handler but without success as I can't find any bit which shows me that the external trigger has come. It always ends in the same: external trigger has been given but VISA is getting an error as the programm goes to next steps and doen't wait for the signal.

Maybe some of you have an idea how I can handle this please?

Problem with pxie 4139

$
0
0

Hi all
I have a problem with my SMU (NI PXIe-4139), I was programing under LabVIEW normally then I have an error that says  "Internal hardware error occurred in Power_Supply hardware. Please contact National Instruments Support.

Component Name: Nimxslu Proxy
File Name: This is NOT an error in nimxslu. See nimxsl/TStatus2KernelProxyWrapper. cpp For information Line Number: 290  "And when I checked out on MAX I found another NI PXIe-4139 device that added as shown in the photo I'm joining and I have this error that appears " status Code:-235140
Internal hardware Error occurred in Power_Supply hardware. Please contact National Instruments Support.  "So do you have any idea what's going on?

Fluke TiS45 thermal imager USB connection not being recgonized in NI Max

$
0
0

I have a Fluke Tis45 thermal imager that is not being recognized by NI MAX when connected via USB.  The NI VISA driver wizard does find the device and frequently crashes the moment I select it from the list of found devices. However, the wizard has managed to stay running long enough for me to use it to  to create .inf files, but the device still doesn't show up in NI MAX.  I'm running NI MAX 17.5, Windows 7.  The device is VID_525&PID_a4a2.  In almost all cases the moment I select it the driver wizard crashed.  Any ideas?

 

 

fluke.png

 

compliance package installation issues

$
0
0

I am trying to get my 2450 source-meter to communicate via USB to my PC with Windows 10 . I have installed driver for 2450, VISA and IVI. But while installation of IO layer driver KIOL850C07, I am facing issue in compliance package installation.

The message is as follows:

"An unexpected exit code was returned from the installer. The installation failed."

The following components were successfully installed:
- NI IVI Compliance Package 4.5: IVI Foundation Inc License Agreement
- Keithley Instruments EULA
- NI IVI Compliance Package 4.5: Microsoft XML 4.0 License Agreement
- Visual C++ Runtime Libraries (x86)
- NI IVI Compliance Package 4.5: NI Released License Agreement

The following components were not installed:
- SCPI-856C07
- KIOL-850C07

The following components failed to install:
- NI IVI Compliance Package 4.5

Details says : Result of running operator 'VersionGreaterThanOrEqualTo' on property 'IcpVersion' and value '4.5': false

Any suggestions??

 

 

Keithley 2450 Hysteresis Loop Measurement

$
0
0

Hi, I'm trying to perform a simple current-voltage Hysteresis sweep measurement. I'm programming with LabVIEW, starting off of the example VIs that can be found online. I tried using a series of 'Sweep and Acquire Measurement' VI to make it sweep linearly from 0 to x volts, x to -x volts, and -x to 0 volt. However, there is a delay between each sweep, which I want to avoid and have a continuous sweep across all sets of range.

I decomposed the 'Sweep and Acquire Measurement' VI and went down to SCPI command level, using this command "Smiley FrustratedOURSmiley FrustratedWE:LIN." However, if I naively give the command with different starting/stop level in series, only the last command's data gets stored in the buffer. Can someone please help me out how to perform a sequence of linear sweeps without delays in-between?

Lastly, I then tried to use 'Read Multiple' VI, in which I supposedly give a list of voltage levels I want the sourcemeter to sweep across. Generating a list of numbers is certainly doable in LabVIEW, but I just don't understand this VI (attached screenshot). Where do I actually put the list? Is it the "manual range"? Why is it just one number then?

I'd greatly appreciate any help. Thank you in advance!

Python (PyVISA) "no module named 'visa' "

$
0
0

Hi,

 

I am planning on controlling a datalogger, oscilloscope and a power supply with a software written in Python. However, I have no previous experience with this field, and learning as I go. So far I have installed Python 3.6.5, PyVISA 1.9.0 and NI-VISA 18.0, as well as the IDE PyCharm.

 

I have an experienced programmer to help me with the code, but I am struggling to set up Python properly, as the following code ran in PyCharm gives me the error in the bottom of the dialog box:

 

import visa
rm = visa.ResourceManager()
print(rm.list_resources())

Traceback (most recent call last):
File "C:/Users/bn/PycharmProjects/asdf/asdf.py", line 1, in <module>
import visa
ModuleNotFoundError: No module named 'visa'

 

I have tried googling the issue, and reinstalling as well as trying to create a "visa.pth" file that simply said "C:\Users\bn\AppData\Local\Programs\Python\Python36\Lib\site-packages" (the location of visa.py) to help guide the way to the VISA resource manager file, although I am not sure I am doing this right as I am not familiar at all with the basics of what a resource manager and a library is in this context. I am using pip as my package manager.

 

Any tips on what I am doing wrong, or things I have not tried? Alternatively any incompatibility I am missing, or installations I need. Any help is appreciated.

 

 

Python and PC specs:

 

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32

Operating System: Windows 10 Enterprise 64-bit (10.0, Build 17134) (17134.rs4_release.180410-1804)
System Manufacturer: Dell Inc.
System Model: Precision M2400
BIOS: Phoenix ROM BIOS PLUS Version 1.10 A28 (type: BIOS)
Processor: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz (2 CPUs), ~2.4GHz
Page File: 2321MB used, 7074MB available
Windows Dir: C:\windows
DirectX Version: DirectX 12
DX Setup Parameters: Not found
User DPI Setting: 96 DPI (100 percent)
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
Miracast: Not Available
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.17134.0001 64bit Unicode

 

Missing interfaces in Visa.net 17.0 ?

$
0
0

Hi,

I am trying to use NationalInstruments.Visa .Net assembly (version 17.0.0) in a Visual Studio 2017 project. When I add the reference to the assembly in my project, I can see the classes (GpibSession, SerialSession, etc) in the object explorer, but it seems that some interface definition are missing: IVisaSession, IMessageBasedSession, etc.

When I use the older assembly "VisaNS" (version 13.0.45.167), everything is fine.

Is there another reference to add to the project ?


Параллельное измерение напряжения и тока на USB 6008

$
0
0

Дорогие друзья! Здравствуйте!

Прошу Вас помочь в проблеме.

У меня DAQ USB 6008, мне нужно провести измерения по ВАХ / вольт-амперная характеристика / солнечной панели.

Измерение напряжения легко, а вот измерение тока в параллельном режиме с ним никак не получается.

Зная, что порт ai3 имеет внутренний шунт 1 Ом и он предназначен для измерения тока, решил измерить, но у меня получается странно - при падении напряжения ток увеличивается. 

Если кто может, помогите пожалуйста!

How to address a TC01 Thermocouple over the VISA Server?

$
0
0

I am trying to access/address a TC01 thermocouple over the VISA Server. When I check the devices available from the remote machine, I see my GPIB devices, but nothing that looks like the TC01 thermocouple. Locally, the thermocouple has an alias of "Dev3". I am trying to access it in a similar fashion to the GPIB devices: visa://mycomputer/Dev3/ai0, but I get an invalid format error when my C# code attempts to access a device at that address; the error complains about improper usage of colons. When I look at the NI MAX locally, there is no address shown for the thermocouple like there are for the GPIB addresses. How do I properly address the thermocouple with alias "Dev3" over the VISA Server?

Modules model numbers

$
0
0

Hello Everybody,

I am trying to control and monitor

1. temperature (25C to 1400C),

2. measure vacuum pressure,

3. measure and control DC voltage (300V max),

4. DC current (11 amps max) 

5. thermal and optical camera to capture pictures.

So I need to know the individual models for these modules that will be compatible for these purposes and with the NI 9172 DAQ.

GPIB-ENET/1000 does not function intermittently

$
0
0

I am using a fresh GPIB/ENET 1000 for communicating with my instruments using a measurement system called Labber based on python. 

Also note that there are other instruments connected via USB and serial and controlled by Labber as well.

 

There are two types of problems that occur intermittently after a measurement run.

 

1) GPIB/ENET 1000 becomes unreachable. When this happens, on the cmd prompt, I run: ping 10.9.1.122. This would give the reply Reply from 10.69.1.1: Destination host unreachable. When it is working fine, it would normally show the transmission times (time<1ms TTL=62). In NI-MAX, it shows the red cross on the GPIB/ENET and all the options such as self-test, refresh do not work.

 

The only way to get it back to working state is either wait for about 40mins or simply turn on/off its power. After this, it starts to work right away. I have also noticed that this problem occurs only after a measurement is made. When left with the ping command indefinitely (ping 10.9.1.122 -t), it never hangs up like that.

 

It gives this error in Labber:  VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system, which makes sense if the GPIB/ENET is unresponsive

 

2) The instruments which are controlled by the GPIB go into some type of locked state. It gives the following error:

VI_ERROR_INV_RSRC_NAME (-1073807342): Invalid resource reference specified. Parsing error.

 

This error occurs intermittently, but always right after a successful measurement when I am giving the next run. After this I have to reconnect with the instrument in the instrument server of Labber, and I will be able to start this experiment. This error when occurs, occurs for all the instruments in the GPIB. Other instruments in USB work fine.

 

I tried a few options that were there in the Labber communication. When I used something termination character CR (carriage return) for all the GPIB instruments, it seemed to have cut down the frequency of this significantly although it is still there. But the problem (1) persists.

 

Any suggestions?

 

Thanks for reading through it.

 

 

NI-VISA & Delphi

$
0
0

Hello!

 

I work with programmable power supply P9610A. I use NI-VISA 18 software and drivers. I wrote this code:

 

 

function viOpenDefaultRM(rm: PInteger)
                             : Integer; stdcall; external 'visa32.dll';
function viFindRsrc(RM: Integer; Res: PChar; PfindList, PnumInstrs:
   PInteger; Resource: PChar): Integer; stdcall; external 'visa32.dll';
function viOpen(RM: Integer; ResourceName: pChar; AccessMode,TimeOut:
       Integer; vi: PInteger): Integer; stdcall; external 'visa32.dll';
procedure TForm1.Button1Click(Sender: TObject);
 var Resource: array[0..255]of Widechar;
     Status: integer;
     SerN_: PWideChar;
     ResourceName : PWideChar;
begin
  viOpenDefaultRM(@RM);
  SerN_:= PChar('?*'+LabeledEdit1.Text+'?*');
  Status:= viFindRsrc(RM, SerN_, @findList, @numInstrs, Resource);
  Status:= viOpen(RM, Resource, 0, 0, @AKIP);
end;

It doesn't work, although in Visa Test Panel all commands are successful. I start NI I/O Trace and found this:

 

In Visa Test Panel

 

9.  viOpenDefaultRM (0x00732748)
Process ID: 0x00001450         Thread ID: 0x0000140C
Start Time: 11:23:16,8840      Call Duration 00:00:00.0190
Status: 0 (VI_SUCCESS)
10.  viParseRsrc (0x00732748, "USB0::0x164E::0x0FB2::TW00027923::INSTR", 7 (0x7), 0 (0x0))
Process ID: 0x00001450         Thread ID: 0x0000140C
Start Time: 11:23:16,9030      Call Duration 00:00:00.0000
Status: 0 (VI_SUCCESS)

in my program

 

3.  viOpenDefaultRM (0x0075C3A8)
Process ID: 0x000007F8         Thread ID: 0x00000304
Start Time: 11:22:40,5149      Call Duration 00:00:00.1980
Status: 0 (VI_SUCCESS)> 4.  viFindRsrc (0x0075C3A8, "?", 0x00000000, 0 (0x0), "")> Process ID: 0x000007F8         Thread ID: 0x00000304> Start Time: 11:22:42,7131      Call Duration 00:00:00.3510> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)

I.e. in function viFindRsrc only the first character is sent. What is the reason?

 

Viewing all 5564 articles
Browse latest View live


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