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

Control Honeywell 3320G-2 ON/OFF using program

$
0
0

Right now, the scanner using usb, so if i plug in it will automatically turn on. but i want to use program to on and off the scanner. Can make this posibble?


cannot get 6485 into REM mode

$
0
0
 

If I use VISA, I can put the 6485 into REM mode, but when I write program. 

SendIFC (boardID);
dev = ibdev(boardID, KEITHLEY_PICO, 0,TIMEOUT, EOTMODE, EOSMODE);

ibclr (dev);

6485 does not go into the REM mode. 

 

I added ibsre without any impact. 

 

What is the difference here and what do I have to do to get the 6485 into REM mode, without the REM mode, I cannot communicate with it. 

 

Capture2.PNG

3rd Party Device Connect on NI Chassis

$
0
0

I have a mass flow controller that I haven't be able to make visible to my Labview Program. When I make a direction RS232 connection to the computer I'm able to run everything properly, but when I try to connect through the RS232 module on my NI Chassis then the program is unable to communicate with the device.

Install NI-VISA on Ubuntu 18.04

$
0
0

Hi,

 

I am using Ubuntu 18.04 and I need to install NI-VISA.

But according to

 

https://www.ni.com/pdf/manuals/378353a.html#install

 

NI-VISA is not available for .deb-based linux distributions.

I 'd like to know if there is any way to install NI-VISA on Ubuntu 18.04?

 

-----------------------------------------------

[Original message]

I followed the steps as described in


https://www.ni.com/en-us/support/downloads/drivers/download.ni-linux-device-drivers.html

 

and

 

http://www.ni.com/product-documentation/54754/en/

 

I downloaded NI Linux Device Drivers version 2020.

After installing the repository addon and refreshing the package list, the following cmd

 

sudo apt install ni-visa

 

raises error:

E: Unable to locate package ni-visa

 

Indeed, runing

 

apt-cache search ni- | grep visa

 

gives only

 

python-pyvisa-py - Backend that implements a large part of the VISA in pure Python
python3-pyvisa-py - Backend that implements a large part of the VISA in pure Python 3

 

However, according to

 

https://www.ni.com/pdf/manuals/378353a.html

 

the driver's name is ni-visa. I'm not sure what is wrong?

 

 

 

 

 

 

Control for Optris CSmicro Infrared Thermometer (USB interface)

$
0
0

I am developing one “Start” button to control Optris CSmicro Infrared Thermometer, instead of the designated “Run” Button. So, I apply an event structure in a while loop to control Optris CSmicro Infrared ThermometerCSmicro LT15 (OPTCSMALT02SF0505K).  In the Visa Configure Serial Port, the stop bit is tuned to 1. When I run the program, the following error message is obtained in the attached file, “Error – 1073807330 occurred at property node in Visa Configure Serial Port.” As the stop bit is tuned to 10, then the waveform chart shows the temperature. Is it correct to tune the stop bit equal to 10 in the Visa Configure Serial Port for this Infrared Thermometer?

 

However, when I press the “IR Theremometer” button, the waveform chart always get a burst initially in the attached figure. (It seems that the initial burst is related with the start button.)How can I prevent the initial burst? 

 

Thank you for your suggestion in advance.

KEITHLEY 2460 SWEEP MEASUREMENTS

$
0
0

Hi Team,

I am trying to get sweep measurement with Keithley 2460 source meter, with the help of instr. driver 2450 example. But it's not working!

so I just slightly modified the code, but it didn't work!.

I want to measure current with the source of voltage based on ON and OFF light.

I attached the sample code with this, can anyone please lookout this and let me what is the problem in the code.

please do the need full.

Thanks in advance

488.2- Unable to Uninstall the 488.2 Version 20 Driver

$
0
0

I need to uninstall the 488.2 version 20 driver and install the 488.2 Version 17.6 because I am trying to interface GPIB-USB-B. But every time I try to uninstall I get an error message.  How to get around this? 

Ni-Visa

$
0
0

Hi ,

 

I am trying to build a c program of NI-Visa source code in visual studio , i added required header files visa.h , visatype.h and libraries visa32.lib to project settings , but i am seeing lot of errors in cmath file , am i missing some project settings ??

 

Please let me know. attaching the errors .


NI 488.2 older versions (For GPIB manufactured in, presumably 2001)

$
0
0

I am currently using a GPIB (presumably manufactured in 2001), and need NI-488.2 version 15.5, 15.0, or 14.0 for LabVIEW 2012 (I have other older device that can't communicate with newer version of LabVIEW).

 

I was gonna open a service ticket but they won't let me open the ticket with the serial number I have for this old GPIB.

 

I am using windows 7, 64 bit, NI-VISA 15.5, LabVIEW 2012 SP1.

Any help would be appreciated.

PCIe-GPIB and HP PC problem

$
0
0

Hello,

I use HP PC Prodesk 600 G3 SFF and try to communicate with any GPIB instrument via PCIe-GPIB card.

Now,I installed NI-488.2 and then installed hardware PCIe-GPIB card into PCIe slot ×4.

After that, the card was recognized by device manager in Windows 10(64bit).But Any GPIB card did NOT found in "Device and Interfame" dropdown in NIMAX.

I need to develop communication software in .NET Frameworks3.5. So I installed NI-488.2 version 3.1.1 because the latest varsion of NI488.2 doesnt support .NETframeworks3.5.

 

Does anyone have any solution for recognizing GPIB card in NIMAX?

I also want to know what version is latest varsion supported .Net Frameworks3.5?

 

 

Upload file to Tektronix MSO46 via USB and Ethernet

$
0
0

Hello,

 

I am trying to control a Tektronix MSO46 via USB and Eternet.

I'm currently trying to read a file into scope using the FILESystem:WRITEFile command.

However, it does not work well.

 

Please tell me how to use pyvisa to upload any file to the oscilloscope.

 

Thanks in advance,

 

Quantum Composer Pulse generator 9518+ control via Labview

$
0
0

Hello!

 

I am trying to implement my own labview program to control my pulse generator from QC. As a first step I try to use the example program written by QC. However, I get an error as follows:

 

Error -1073807339 occurred at VISA Read in Quantum Composers 9000 Series.lvlib:Utility Write to Instrument.vi->Quantum Composers 9000 Series.lvlib:Initialize.vi->Quantum Composers 9000 Series Initiate Pulses.vi

 

Possible reason(s):

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

 

It seems like the problem occurs in the write function within the initialize vi. I have tried to increase the timeout, but it does not seem to help.

 

Very grateful for all help!

Best,

Lukas

two GPIB controller setup

$
0
0

I have a few instruments all connected to one GPIB, 488.2 bus controlled by one computer, Windows 10, updated, etc. One of the instruments is another computer with a PCIe-GPIB card. That computer does plenty of work, but the data transfer between the two is minimal and one way, just a few short commands. The data transfer is managed by proprietary software that came with the system, so when it's all working, the short commands cause it to do things.

 

While this usually works, intermittently it doesn't. NI Max on each computer sees all the instruments on the bus except the other computer, simultaneously. If I disconnect everything else, and run the cable from one computer to the other, neither see any instruments. The software, then, would seem to be irrelevant. I've restarted both systems, reset, refreshed, scanned, and knocked my head against the concrete. It seems these two instruments just don't want to talk to each other! What have I missed?

 

computer 1 (desired system controller): GPIB interface ID GPIB0, primary address 0, System Controller true, enable autopolling true. USB-GPIB interface, v18.5.0f0

 

computer 2 (desired slave): GPIB interface ID GPIB1 (or GPIB0), primary address 1, system controller false, enable autopolling false. Windows 7, PCIe-GPIB, v18.5.0f0.

Keithley 4200A scs GPIB serial communication

$
0
0

Hello

I wish to control the Keithley 4200a scs parameter analyser using LabVIEW, I have connected it via a GPIB-USB-HS cable supplied by National Instruments. When I try accessing it in NI Max I get the attached error. The Keithley is using Clarius version 1.1.0.0 loaded in 2016 Please help me clear this error.

Thank you.

PCI-GPIB IEEE 488.1 with PCIe

$
0
0

Hi,

 

I have a PCI-GPIB card and the computer has PCIe slots, so I need to know if this card has compatibility with PCI express x16. Or I need to order a PCIe GPIB card, the computer has PCI express x1 too.

 

Best regards,

Omar.


RS485 2-wire

$
0
0

Hi there,

 

I couldn't determine whether this is more Instrument Control or cRIO-specific, so I just put it here since I feel like the problem more lies within the realm of serial control itself. I am attempting to create a communication link between a cRIO-9068's onboard (COM3) RS-485 port and a slave flow meter device, an Endress+Hauser Coriolis meter. I have validated through local connectivity to the flow meter that the addresses are configured to their factory defaults:

 

Slave Addr = 247

Baud = 19,200

Parity = Even

Byte order = 1-0-3-2 (this is a Slave specification describing how each byte of a 32-bit Float would be sent, in sequence) 

 

I have configured a few MODBus slave devices in the past with the cRIO-9068, and I can't seem to get this one working with the usual run-through. This is my first time utilizing COM3, the on-board serial port designated as RS-485. I am using I/O Server to create a MB.lvlib library that I use to create a range of 300000/400000-series addresses to read from. I then deploy this to my CompactRIO controller (Scan Mode configuration). The only thing I can get to seemingly indicate new values or change noticeably in realtime are the CommFail boolean (always on) and the Updating boolean (intermittent on/off). 

 

I have consulted this link on setting up 2-Wire (Half-Duplex) communications with the RS-485 port and am complying with it.

I have consulted this link on RS485 termination, and am using a 109-ohm termination resistor on each end, though it is not a multi-node drop bus, just end to end. 

 

I don't know if there are termination resistors automatically enabled on either device by default. I've read around and can't find anything mentioning it, so I assume I'm ok there. I tried this setup without resistors with the same result. What I have not yet been able to figure out how to do is change the serial port configuration to an explicit 2-wire mode.

This is because I don't see the option anywhere in MAX. In MAX, I don't see the advanced tabs and it's always greyed out with random serial settings and says it can't be accessed. Does having the MB.lvlib deployed to the project automatically grey this out and tell MAX that is has programmatic control? I know you can programmatically modify this via a property node setting also reference on that same URL, but when I do this in the program, it cannot "gain access to the resource" as if it's in use. All of my error outputs are code -1967353902 very similar to this user's issue but I've deleted the other Shared Variable + ModBUS library I used in the project.

 

Is there anything obvious I'm missing here? I really feel like it is getting that port to configure to a 2-wire mode but I just can't seem to do it anywhere. 

 

Thank you 

receive serial data with time

$
0
0

Hi,

 

I have a question about serial data. 

When I receive the serial data from NI-9870, is it possible to get the time when the data came in?

Can timestamp helpful?

 

Please let me know.

Thank you.

 

 

Current is not exceeding 1mA during current sweep in Keithley 2410C

$
0
0

hi,
I am using Keithley 2410(C) SMU for the switching studies. I am unable to go beyond 1mA in 'Current sweep'. I want to sweep the current from 0 to 2 mA and come back to 0 mA. In the Current sweep mode, I can set the voltage compliance. however, I am not able to sweep it beyond 1 mA. Please help and let me know how to increase the current upper limit. Is it the problem of VI or the internal setting which can be changed?

Troubleshooting GPIB-USB-B Interface with Pyvisa

$
0
0

I'm trying to get a NI GPIB-USB-B interface to communicate with a lockin amplifer. I'm using an Apple Macbook Pro with Big Sur OS and the new M1 processor. 

 

Whenever I open NI-Max, the software immediately closes. I haven't found a clear answer regarding whether or not my OS and/or processor is supported. Does anyone know if this is the case? 

Also, incase it helps, I printed the log that pyvisa outputs and it's the following: 

 

2021-04-12 11:25:49,726 - pyvisa - DEBUG - No visa library specified, trying to find alternatives.

2021-04-12 11:25:49,727 - pyvisa - DEBUG - Environment variable PYVISA_LIBRARY is unset.

2021-04-12 11:25:49,732 - pyvisa - DEBUG - Not loading dll_extra_paths because we are not on Windows or Python < 3.8

2021-04-12 11:25:49,733 - pyvisa - DEBUG - Automatically found library files: ['/Library/Frameworks/visa.framework/visa', None, None, None, None]

2021-04-12 11:25:49,733 - pyvisa - DEBUG - No user defined library files

2021-04-12 11:25:49,733 - pyvisa - DEBUG - The IVI implementation available

2021-04-12 11:25:49,733 - pyvisa - DEBUG - Not loading dll_extra_paths because we are not on Windows or Python < 3.8

2021-04-12 11:25:49,733 - pyvisa - DEBUG - Automatically found library files: ['/Library/Frameworks/visa.framework/visa', None, None, None, None]

2021-04-12 11:25:49,734 - pyvisa - DEBUG - No user defined library files

2021-04-12 11:25:49,736 - pyvisa - DEBUG - Library signatures: 90 ok, 0 failed

2021-04-12 11:25:49,736 - pyvisa - DEBUG - Created library wrapper for /Library/Frameworks/visa.framework/visa

Error Domain=KMErrorDomain Code=71 "Incompatible architecture: Cannot find arm64e in fat binary

Incompatible architecture: Cannot find arm64e in fat binary

Incompatible architecture: Cannot find arm64e in fat binary" UserInfo={NSLocalizedDescription=Incompatible architecture: Cannot find arm64e in fat binary

Incompatible architecture: Cannot find arm64e in fat binary

Incompatible architecture: Cannot find arm64e in fat binary}

 

Any help would be greatly appreciated. 

 

Thanks

Using the *OPC SCPI Command to Clear Output Buffer

$
0
0

Hello,

 

I am having trouble how to use the *OPC SCPI command on my Keysight E3640A PS when performing several read and write commands using the GPIB write vi.  I get the following error at the shown step:

Mrodrigo13_0-1618265500076.png

If I press Continue the VI will continue to run and read me back the recorded value, but will give this error every time I try and read a measurement from the supply.  Before this command I am sending a measure current command and then reading the value here for context.  I was told to use the *OPC command, but am not sure how to do so.  I was also told I should clear the output buffer as there may just be too many old/previous commands that are causing the supply to lag out.  Any suggestions?

 

 

Viewing all 5663 articles
Browse latest View live


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