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

Serial Connection with VFD using VISA Write and Read

$
0
0

Hello,

 

I am attempting to control a Mitsubishi Electric D720 VFD with LabView 2015 using serial communication with an RS485 cable. I started with the simple serial example VI and expanded it from there. Right now I am having trouble with the read function. I get an output of 24 bytes from the write function, but I get a timeout error for the read function. I attached screenshots of the front panel and block diagram to this as well as the VI. If you have any advice or would like me to clarify anything, please let me know.

 

Thanks,

Marcus


USB-8452 SPI slave

$
0
0

I got a NI USB-8452 module for I2C & SPI.

I thought it can be used as SPI Master or Slave, but , while for I2C I see the manual mentions slave, I don't see this for SPI function.

Can it be configured to act as SPI slave ?  For what I want my PC / LabView to act as some slave device

Is it possible to control practically any instrument with C++ and VISA library

$
0
0

Hello.

 

I'm a intermediate Labview programmer, nowadays all my instrumets are perfectly controlled by Labview  programs . But I need to integrate the control of these instruments with a more general software with QT interface and with microcontrollers like atmel familly.

 

Currently I have control of some instruments using Python (PyVisa) but there are some issues with this approach.

 

So, I think that is necessary  a  languague closer to the hardware and to de VISA library to make control of these instruments and to implement all features that I need.

 

But I need some guidance before start this hard journey.

 

Summarize

 

  • I need to control power supplies, agilent current supplies, lock-in amplifier, microwave generator and so one;
  • I need to use C++ languague;
  • If possible, I need to implements on Linux and Windows

 

Thank you very much to all.

Connecting keithley 2400 via a Keithley GPIB-USB Cable

$
0
0

Hello,

I am not very skilled with IT or LabVIEW (we use LabVIEW 2011), I am just a student whose task it is to take measurements via a keithley 2400 source meter. This device was conncected with PCMCIA-GBIP and the connection worked finde. After an Update, I couldn't find the source in LabVIEW anymore and it wasn't visible in NI-MAX either. The PCMCIA-GBIP-Interface was visible but when I clicked on "search for instruments" it didn't find any device. The people I asked made the conclusion that the cable didn't work.

 

So we ordered a new one, it has USB Connection instead of PCMCIA but the manufacturer is Keithley. I did install alle the drivers (also the additional ones

which are needed to work with NI-VISA) and the device is visible in the Keithley Configuration Utility. Windows Device manager also shows that there is a connection.

 

According to this tutorial a GPIB-Interface should appear in NI-MAX (as it did with the PCMCIA-Card) but it doesn't. I tried to establish an USB-Connection (with NI-VISA Driver Wizard) which worked but I couldn't find the button "search for instruments" at all.

MAX KUSB-Interface.png

Here is a screenshot where you can see all my installed drivers/programs:

Systemsteuerung Programme.png

What else can I do that the USB-GPIB-Interface is visible in NI-MAX/VISA?

 

Thanks in advance for your help!

could not find product ni-daqmx_19.5

CRIO9034 SPI Communication problem

$
0
0

I am working on a project in which vibration measurement is done by the ADXL345 accelerometer with the help of NI-FPGA and NI LabVIEW software. Earlier we used NI cRIO-9074 with LabVIEW 2011, where NI-9401module is used to acquire digital data from the ADXL345 accelerometer by using SPI communication protocol and we got satisfactory results.

At present, I replaced NI cRIO-9074 with cRIO-9034 and LabVIEW 2011 with LabVIEW 2017 and all other hardware and software (Real-time and FPGA VI) are the same. I followed all the previous steps which are required for the execution of the project.  But at this time I am not getting the results of the ADXL345 accelerometer which is connected with the NI-9401 module. It was showing a fixed value whenever I run Real-time Host VI. please help me to solve this issue.

PCI-E Riser

Timeout/Protocol Error and NI IO Trace interference

$
0
0

Hi there,

 

I am using a Tektronix MSO5204B oscilloscope (firmware 10.8.3 build 3) and a Tektronix AFG3022C (Version 1.0.2) function generator. The scope is connected over USB and the function generator over the USB-GPIB adapter. PyVisa with the NI-Visa driver as a backend is used to interface with the scope and the tkafg3k driver for the function generator.

 

I have a python program that does some measurements (a couple of mean voltage levels and step response waveforms). If I run the program for the first time after booting the scope, everything runs through smoothly. However, on consequent runs, I get the following warning: VI_WARN_UNKNOWN_STATUS (1073676421) on viOpen().

 

Then the program sporadically fails with the following error: VI_ERROR_INP_PROT_VIOL (-1073807305).

 

If I try to record the error with NI IO Trace, things get funny: The function generator takes very long (~2s per parameter) to configure and the protocol error does not occur! So somehow NI IO Trace is interfering with the communication.

 

I tested the program with another scope, the Tektronix DPO7104C, and everything works fine there, even on multiple runs.

 

Furthermore I tried with the MSO5204B connected over ethernet, and while the error behaves identically, it gets reported as VI_ERROR_TMO (-1073807339). This time I was able to record the problem with NI IO Trace, which is the trace attached below (I wasn't able to create a minimum example, but I reduced the code to execute only the setup for the measurements, so that is why there aren't any measurements happening).

 

So, does anyone have an idea why this timeout/protocol error is thrown, even though the statement's syntax is correct (concluding from the runs that go smoothly)?

 

And how can I stop NI IO Trace from interfering with USB communication? Especially the slow configuration of the function generator is annoying.

 

Thanks a lot for your help!


Yokogawa pz4000 power analyzer powerViewer (older version software)

$
0
0
I have yokogawa pz4000 power analyzer, I need to get data from it using a computer, my problem is I don't have the software(powerViewer older version installed), and it must be installed before installing the upgrade version.
 
I would like to be helped if you have the software, or any relevant help.
 
please forward it to jabustho@gmail.com
 
Thank you in advance.

GPIB control of Rohde and Schwarz receiver

$
0
0

Hello. I am using GPIB from VB6 to setup and read a Rohde and Schwarz ESVS30 receiver. I can set the instrument to perform a frequency sweep, measuring voltage as it goes along and returning the measurement data in blocks during the sweep. This works fine. There is an LED on the receiver that indicates when a results data transfer is taking place. For the first six block transfers the LED flickers on and off so fast it is barely noticable, but from the seventh transfer the LED remains on for about 1.5 seconds and it is clear that transfers have slowed drastically. If I perform a second sweep all of the transfers are now slow. Switching the receiver off then on again does not clear the problem, but if I exit the program then start it again I get six more fast transfers before it slows down again. This happens both from the VB6 IDE and from a compiled exe version of my program. The relevant lines of code are:-

strRead = space(2000)
Call ibrd(intDescriptor, strRead)

There is then some code that deals with the contents of strRead and the whole thing is in a loop that cycles until the sweep is complete. strRead is declared as a string in the public sub. I belive that I have the newest (but quite old!) versions of NIGLOBAL and VBIB32 in my software. If anyone can shed any light on this behavior I'd be very grateful!

PCI-GPIB card

$
0
0

Hello

We've been using PCI gpib card in a test system PC which is running in NT 4.0 OS. Now we have to use it in XP SP3. When I look for it in your web site, I cannot find any driver for XP OS. Could you please help us about this driver?

Thanks in advance.

NI-488.2のインストールがうまくいきません

$
0
0

GPIB-USB-HSを使用しようとしています。

 

NI-488.2をインストールしようと試みておりますが、下の画像のように途中で問題が発生してしまいインストールがうまくいきません。

 

解決方法などご存知の方いらっしゃいましたらご教示頂けませんでしょうか。

 

PCはWindows 7 Professionalを使用しています。

問題.JPG

Cannot connect to GPIB-usb(82357B) while using Windows 10

$
0
0

Hello everyone,

I got problem from connect GPIB-USB (82357B) to computer(Windows 10). It always shows red LED at 'FAIL'. And I've installed both VISA driver and IEEE488.2 driver. What should I do to solve this problem? 

Nanthicha

NI-VISA: MacOS 10.15 support?

$
0
0

Any idea when MacOS Catalina 10.15 support will be added to NI-VISA? Or any way to workaround using NI-VISA 19 to get GPIB functionality?

NI 488.2 for Max OS 10.15

$
0
0

Is there an NI 488.2 coming out soon for the new Mac OS Catalina (10.15)? Or is my best option to go back to 10.14 to use VISA?


WIZ750SR Ethernet-to-Serial module not recognized in NI MAX

$
0
0

Hello,

 

On my test benches I have several Serial instruments. I would like to use Ethernet-to-Serial converter modules to control them through Ethernet.

I just found some modules which are Ethernet/Serial protocol translators.

The one I'm testing is the WIZ750SR (see more here : http://wizwiki.net/wiki/doku.php/products:wiz750sr:start)

 

While the module is well recognized on the network, I can't create it under NI MAX. First, it is not auto-detected, and even if I manually set the IP address, it doesn't work

I get the error "(Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system."

 

I tried to make a loopback test by shorting RX to TX on the Serial side of the module, but it still not working...

 

Have you some suggestions?

Your help is very appreciated!

 

JB

Cannot open multiple VISA/VXI sessions on instrument AC POWER Asterion

$
0
0

Hello,

 

I have an issue when I try to open multiple communicating sessions between my controller and Asterion AC power model AST2253.
To establish the initial communication I use NI VISA toolset 5.6.0 and VISA library.
In my program I must use multiple access mechanism and then I call at least two times "viOpen" VISA function.

 

My problem is the following :

 

As I said above, I call the function viOpen twice to open two sessions on my instrument. The both status returned are SUCCESS and handles are differents. I can work with the both handles together without any problems.

However, at the end of the first part of my program, I close the first open handle with function viClose. After this step I cannot use any session on my instrument ... The other functions which use second open handle return FAILURE with VI_ERROR_INV_OBJECT error code.

It seems that the first (and the only) call of viClose() on the first open handle has closed ALL open handles.

 

This program works perfectly with all my others instruments (DMM+DCPWR+SWITCH) and then I need help to resolve my issue...

 

For debuging I used Wireshark to see all VXI frames between the controller and the instrument and I saw something may be interesting :
The call of viOpen function send create_link() request (VXI function) and then it creates a session designated by a unique ID.

In all correct cases at each time the function create_link() is called, a unique ID is returned by each call.

In the bad case all call of create_link() returns the SAME ID. And so when the first call of viClose occurs the VXI function destroy_link() terminates the only ID which is opened. Then the following functions use an ID which is already close.

 

For example :
Good behavior :
-Create_link call in instrument 1 (opening handle 1)
-Return ID = 0x01
-Create_link call in instrument 1 (another time)
-Return ID = 0x02
/*** My program using handles 1 & 2 ***/
-Destroy_link call ID = 0x01

/*** My program using only handle 2 ***/
-Destroy_link call ID = 0x02

 

Bad behavior :
-Create_link call in ASTERION
-Return ID = 0x01
-Create_link call in ASTERION
-Return ID = 0x01

/*** My program using handles 1 & 2 ***/
-Destroy_link call ID = 0x01

/*** My program using only handle 2 ***/
-Destroy_link call ID = 0x01

 

I've checked many datasheets, programming manuals, VXI standard, etc... but I did not find any way to resolve my issue.

Is there a flag or a key somewhere to activate this behavior ? Or something else ?

Please, can you help me ?

Thanks

dS2824 - 24 x 16A ethernet relay control through labview

$
0
0

Hi,

 

Has anyone controlled dS2824 - 24 x 16A ethernet relay through labview. If controlled please share me procedure with some examples.

Thanks in advance

Why the Different Current Limit behavior options between IVI and niDCPower drivers?

$
0
0

The IVI driver for the modular power supplies, e.g., 4110 etc. exposes two options when setting the supply current limit: "Regulate" and "Trip". The equivalent niDCPower  VI only exposes "Regulate".

 

Anyone have a reason for this?

how to get libvisa.so

$
0
0

I want to control keysight VNA under red hat operation system. looking for libvisa.so. any suggestion?

Viewing all 5663 articles
Browse latest View live


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