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

Interface PXI-4056 & PXI-4110

$
0
0

Hello,

 

i'm working on a customer project. The goal is to port the functionality of an old hardware setup to a new hardware setup.

 

The old setup consists of the following components:

NI-6562

Agilent DMM

Agilent PSU

 

The new setup is a PXIe-1088 with PXIe-6570, PXI-4065, PXI-4110 and PXIe-8861.

 

I have several years experience in programming (primarily C++) but i'm new in the field of hardware. 

 

A requirement in this project is to maintain an existing application (MFC, C++) and to adapt the low level communication to the new hardware. The old setup uses the ni4882 Interface for communication with the Agilent components via GPIB. With the new DMM and PSU i can't use this ni4882 interface. After some days of research in NI documents i found the IVI compliance package.

 

Is it possible to realize nearly the same functionality using IVI driver instead of ni4882?

 

Regards,

Stefan


寻找仪器端的GPIB模块

$
0
0

是否有类似PCIe-GPIB这样的模块,可以直接接到仪器内部的工控机上,整个仪器可以通过GPIB接口被其它电脑控制。

GPIB reads wrong values

$
0
0

I'm trying to control two instruments (laser and power meter) using NI GPIB. My code consists of a loop that sweeps the wavelength in both instruments and reads the power from the power meter.

The problem is that I need a time sleep step of at least 2.3 seconds inside the loop as shown below. If the sleep time is smaller, gpib reads wrong values from the power meter.

Without the time sleep step, I get the following error: VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.

 

Any recommendations? Not sure if it's an instrument or communication limit

 

CODE

for wavelength in range(wavelen_1, wavelen_2):
lsr.write('sour2:wav %s' %str(wavelength*1e-9))
pwm.write("W"+str(wavelength))
time.sleep(0.4) #at least 2.3
power = pwm.query('D?', delay=0.09)

Can't connect Osciloscope via USB

$
0
0

Hi, Im noob with Labview, Im trying to connect Lecroy Waverunner serie 6000 via USB but NI Device Monitor isn't detecting it. Im using last version with NI-VISA/488.2/DAQmx and this driver http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=07C0AC709BD14C10E0440003BA7CCD71 Its the base default driver for all Waverunner scope.

Im trying to get the VISA name via Labview with the object of the driver but is imposible to me. If someone can give some advice or guide, I will be very grateful.

 

Im getting this errors:

-Error -1073807346 occurred at Property Node (arg 1) in LeCroy Wave Series.lvlib:Write.vi->LeCroy Wave Series.lvlib:Screen Capture.vi->Untitled 1

 

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

VXI over TCP-IP on cRIO target

$
0
0

How can I interface a device (Anritsu) with a cRIO using the VXI over TCP-IP protocol?

I'm able to comunicate using my pc because I add a new VISA resource on NI Max, but this solution doesn't work on cRIO.

 

I've also tried to comunicate using the TCP Palette with port 111.

VISA Error (Hex 0xBFFF003E) Virtual Serial Port

$
0
0

Hello,

 

I am trying to communicate between an Inficon VGC502 controller and LabVIEW using a virtual serial port. The virtual serial port is established by an Ethernet cable.

 

I tried several ways to fix it, I updated the Firmware of the controller and the NI-VISA drivers to see if that was the problem. I know that the controller communicates by ASCII strings in the form of mnemonic operating codes and parameters. Perhaps it is just a setting that I need to adjust in LabVIEW or NI-Max?

 

I was wondering if anyone knows how to overcome the VISA error (Hex 0xBFFF003E) "could not perform operation because of I/O error".

 

Thank you,

Greg A.

 

  

Install NI-VISA on Ubuntu 20.04

$
0
0

Hi,

 

I am using Ubuntu 20.04 and I need to install NI-VISA.( this is essential for me!).

I tried to use pyvisa-py without success.

Have you any advice?

 

 Thanks,

Salvo.

VI_ERROR_RSRC_NFOUND on GPIB with visa64.dll and 64-bit Python-3.8

$
0
0

There was no problem with visa32.dll and 32-bit Python(3.5-32).

However after the host is start using 64-bit applications, visa64.dll and Python3.8.

 

Here is a python scripts:

 

import pyvisa as visa

rm = visa.ResourceManager('C:\\WINDOWS\\System32\\visa64.dll')

 

r = rm.list_resources()

 

r

('USB0::0x05E6::0x2602::4444666::INSTR',

'USB0::0x05E6::0x2220::9204496::INSTR',

'ASRL1::INSTR',

'GPIB0::30::INSTR',

'TCPIP0::127.0.0.1::hislip5-0.0::INSTR',

'USB0::0x05E6::0x2220::9204275::0::INSTR',

'USB0::0x05E6::0x2220::9204567::0::INSTR',

'USB0::0x0957::0x1807::MY50001918::0::INSTR')

 

# no problem for USB

dev = rm.open_resource('USB0::0x05E6::0x2220::9204496::INSTR')

dev = rm.open_resource('USB0::0x05E6::0x2602::4444666::INSTR')

 

# open GPIB failed

dev = rm.open_resource('GPIB0::30::INSTR')

 

in handle_return_value

    raise errors.VisaIOError(rv)

pyvisa.errors.VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.


Error 1 occurred at Scan From String (arg 1)

$
0
0

Hi,

 

I made a code that sends serial data to labview through MATLAB.

After receiving all the data, the error 1 occurred at scan from string. But the data is saved well as a designated text file. 

I don't know why this error occurs. 

 

I attached my code and the error.

Thank you! 

Tektronix MSO56 Image Acquire

$
0
0

Hello,

 

Currently I'm trying to acquire oscilloscope image by LabVIEW for oscilloscope Tektronix MSO56.

 

After sending the save image & file system commands, it can work to capture the image.

However, after that, the oscilloscope will not give any response to other commands (including *IDN?) until restart the oscilloscope. 

Anyway, by manually pressing the oscilloscope works perfectly, just remote access is failed.

 

Attached you can see the LabVIEW VI.

Basically, there are 2 parts commands in the VI:

1st, invert the color of image, and save image in pre-set folder (use “:SAVE:IMAGE” command group).

2nd, read file from the pre-set folder (use “:FILESYSTEM” command group).

 

Need help on how to improve on this VI? 

Did I miss out anything to end the communication between VISA and equipment?

 

Labview comunication with Inverter VFD

$
0
0
Goodnight. I need to communicate with a vfd MS300 but error 56 appears.

Front VI

LabOceano_1-1621465408088.png

 

Block diagram!

LabOceano_2-1621465516397.png

 

select "VISA Attribute name" by string

$
0
0

I want to change a VISA Attribute.

I know, this is possible by a fixed "property node", but the "property" of the node needs to be variable, like the example on the left side.

 

Just a picture to explain.

Do a Vi or function like this exist?

 

Greil_0-1621585738637.png

 

2nd Question: How do I get a list of all Attributes, like you see in MAX?

LabVIEW NXG Fails to Load File Due to Missing 'Multirate Diagram SystemDesigner 'Plugin

$
0
0
  • I receive the following error when I attempt to open an existing project in Labview NXG with USRP 2940R : 
          "Your System is missing the following:
           'Multirate Diagram SystemDesigner 'Plugin
            Visit ni.com/info and enter the Info code "NXG_Load_Failure" for more information"
.
  • Any assistance on this issue is highly appreciated.
  • Thankskayjulio_0-1621587623346.png

     

VISA Read Timout

$
0
0

Hello,

Using LabVIEW 2020 and the certified Keithley 648X instrument driver package.

I have (2) PC'S running Windows 10 64-bit; LabVIEW on both machines.

One one machine, the Initialize routine finishes nicely with no errors.  On the other, (refer to the snippet), timeout occurs waiting for bytes which is set to 256 immediately after the Error Query Command.  It appears the code is not 'automatically' stopping when a new-line is received, even though that is set in the routine.  If I wire the 'Bytes at port' indicator, (10 Bytes) code progresses normally with no error.

 

On the other machine, this is not happening. 

All settings, as far as I can tell, are identical on both.

Only difference is the machine this is occurring on is 2020 SP!; the other is not.

Strange.  Any suggestions?

Thanks,

Chris

Keithley 2420 and SR844 via Keysight GPIB cables to NI PCIe-GPIB card on Ubuntu 21.04

$
0
0

Hi,

 

I have been using a NI PCIe-GPIB card on Ubuntu 21.04 to control instruments. My Keithley 2460 is working fine. I can write, read and query. The SR844 times out frequently but I can write on it. The Keithley 2420 does not work at all. It times out and complains interrupted signal when sending it again. 

 

I am using Linux GPIB and pyvisa to control the instruments. They are connected via Keysight cables. 

 

Any suggestions how to get around this? Why is every instrument behaving differently? Are the Keysight GPIB cables incompatible?

 

Cheers,

Robert


The period of elapsed time

$
0
0

Hi,

 

I've trying to get serial data from MATLAB and save them with elapsed time.

The period of elapsed time is 0.008ms even though I set the waiting time to 1 ms. 

How can I get elapsed time per 1ms?? or are there any other methods to save data with elapsed time?

 

Thank you!

Conenct to NI-USB 4065 via IVI

$
0
0

Hi.

 

I am having problem connecting to a NI-USB 4065 via IVI/VISA using C#, 4.5 and 4.7.2

The example programs cannot find the DMM either. But there I have a third party software that can connect and use the DMM, so it works.

But the ResourceManager does not find the DMM on USB.

 

My program have been using another brand of DMM and it works via IVI/VISA.

 

Anyone any idea?

Labview Linx Control Raspberry pi 3 via bluetooth

$
0
0

Hello,

 

I have a question about the LabVIEW Linx. Does anyone know whether the Linx is able to control the Raspberry pi 3 via Bluetooth? My board is Raspberry 3B, which has a Bluetooth module. I want to remotely control the GPIO to send and receive the data (like turn on the LED and read the current that goes through the LED). 

 

Thanks!

 

Michael

ni-488.2_20.0_online_repack3.exe is missing digitally signed drivers

$
0
0

The following drivers are not digitally signed:

 

NI mx Driver Framework, service nimxdfk

NI Measurement Routing Utilities, service nimru2k

Forwarding PXI Chassis Pilot for 3rd-Party Trigger Managers

NI PXI Resource Manager

Generic PXI Chassis Pilot

NI Device Interconnect Manager

National Instruments PCI Bridge Driver

NI-PAL 1394 Legacy Wrapper Driver

NI-PAL USB Legacy Wrapper Driver for WIndows

NI Measurements DeBuG Library

NI Object Request Broker

 

and maybe more...

 

Is this a problem?  The installer says the programs that use these drivers will not work and I should contact the vendor, but NI says I am not qualified to receive support.

 

I have two registered modules, both NI GPIB-USB-HS+ modules that I need to use with a Windows 7, 64 bit computer, but the software wont install.

 

I have also tried earlier versions, 17 and 18, but both of them have drivers that are reported to be defective and they dont install properly either.

 

After completing installation of 20, and rebooting, my computer runs startup repair because something has been corrupted by the installation.  THis is repeatable for at least three re-installations.  After "attempting repairs" the computer fails automatic restart, but can be manually restarted.

 

After rebooting, I run NI MAX and get "Unexpected Internal Warning - Measurement & Automation Explorer"

 

Where do I find an installer that works?

 

 

 

 

 

Tektronix TDS3012B : incorrect wave form acquirement

$
0
0

Hi, I'm haru_tank.

From this spring, I was assigned to a university laboratory and was tasked with measuring an oscilloscope in LabVIEW.

 

In my laboratory, I heard that waveform data has been taken from floppy disks so far. XD

 

Then, I am trying to measure the oscilloscope, TDS3012B from Tecktronix, using LabVIEW, but I cannot get the correct waveform.

 

 

In the attached vi file, I measured white noise by DC coupling.
However, the LabVIEW waveform chart shows DC voltage with no noise at all.

 

The time waveform saved on the floppy disk of the oscilloscope is noisy, so I think it is a problem on LabVIEW programm.


The same phenomenon occurs in an example program "Tektronix TDS 3000 Series Auto Setup waveform Acquire.vi" from the driver.

 

How can I get the correct time waveform data from the oscilloscope in LabVIEW?

 

 

 


The attached file contains vi file and the waveform data taken from the floppy disk.

Please check it.

 


My environment is as follows ;

 

 

 

Thank you for helping.

Viewing all 5674 articles
Browse latest View live


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