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

NI MAX

$
0
0

I am having problems getting MAX to recognize instruments.

MAX View.png

It only sees two power supplies

However, The VISA interactive control Sees all of the instruments.

Visa 1.png

I have downloaded the latest version of DAQmx, Visa and 488.2, but it still has the problem.

I don't know if this has anything to do with it, but some of the articles I read said to use the 488.2 utility in the tools menu. This is not showing up in the menu.

488.2 tools.png

Another article suggested checking the properties of the USB-GPIB-HS properties. That option also is not available.

cntroller options.png

What am I missing? I do not have this problem at any of the other stations

 


USB Communication port error when running third party instrument labVIEW source code

$
0
0

I am using LabVIEW source code developed by a company that creates instructional chemical engineering equipment (i.e. small scale heat exchangers, distillation columns, etc.) that is meant for their distillation column. The purpose of this software was to be able to edit the code to allow for different methods of data analysis and control. The program also requires a supplied USB driver for communication with the hardware.

 

My issue that I am encountering is that when I run the main vi file of the project and turn on the data acquisition and control hardware, I run into communication port errors after around 2-5 minutes. The errors occur in sub VI's labeled "SetAnalogueOutput" and "ReadAnalogueDigital" which, to my knowledge, are used to read the USB through VISA functions. The program then prompts me to check the communication port and restart the application. This issue only occurs when I turn on the hardware. Whenever I run the program by itself, it properly recognizes the communication port and does not run into any errors.

 

When I look in NI MAX, the communication port is shown to be unknown after the error occurs and unplugging and replugging the USB cord is the only way for MAX to recognize the port. In addition, Windows Device Manager has no trouble recognizing the communication port throughout this time. I looked around the forums for a similar issue and did not find anything. I contacted the company and they suggested using a shorter USB 2.0 cable and temporarily disabling anti-virus software as it supposedly can cause spikes in data transfer. I have tried both of these solutions and neither have worked for me. 

 

Additional Information: The original software to run this distillation column is an executable application of the LabVIEW program that does not allow for modification or viewing of the VI files. This software runs perfectly fine with no issue in regards to communication. 

 

I have attached the error screens. Any advice is greatly appreciated! Thank you!

How to make a device VISA compatible

$
0
0

An upcoming hardware project I have will involve networked communications. Right now we're looking at using straight TCP, but I think it would be nice to be VISA compatible.

 

A couple questions:

1- Am I correct in assuming the server device (in this case, a BeagleBone) needs to behave differently if using VISA than raw TCP? (I was under the impression VISA could run over TCP, but I'm honestly confused here)

2- I have found a few Linux libraries that'll let me run a TCP server on the Beaglebone. Do I implement VISA as a layer on top of those, or is it a separate layer entirely?

 

I'm a bit confused on what to search for here. The device will need to communicate to devices running any random TCP connection, but I thought VISA would work for this. Am I right, or have I missed the concept completely?

 

As I understand it, VISA abstracts the connection layer, so my device could be connected via TCP or a serial port or a USB cord or whatever. I'm just having a hard time "getting started" with making a device that supports a VISA connection.

GPIBのoutputの文字化け

$
0
0

GPIB-USB-HSを用いてGPIBで装置制御をしています。

これまで問題なく制御できていたのですが、突然装置からのoutputが文字化けするように

なってしまいました。

*IDN? を送ると、バイナリ情報を受信しましたと出て、文字列が表示されます。

恐らく原因は、一度*RST のコマンドを送ったためだと思います。

もとに戻す方法をご教示いただけないでしょうか?

There is no NI-PAL on my NI Linux RT

$
0
0

Hi all,

I use "NI-VISA Driver Wizard" to create a driver for my custom PCI device. the wizard creates an "*.ini" and an "*.inf" file for me. Inside these files, there is a comment which says:

 

; Linux Desktop and NI Linux RT Installation:

; To apply the contents of this file to a system's settings, copy this file

; to "/etc/nipal/devinit.d" and reboot the computer.

 

The problem is, I can not find any clue of NI-PAL in my NI Linux RT. How can I Install NI-PAL on my OS?

pressure transducer calbration

$
0
0

Could someone explain to me how to calibrate a pressure transducer using Labview? Im using a pressure transducer type 7061B (Kistler) ,a DAQ PCI 6023, a charge amplifier type 5011B (kistler) and labview version 16. Below i attach the manuals.

Why is the idle voltage of pxi8431-8 board card bus 0v in 2-wire auto mode?

$
0
0

In general, the serial communication idle level should be high level.Why is the idle voltage of pxi8431-8 board card bus 0v in 2-wire auto mode?

Acquiring Hexadecimal data, VISA communication

$
0
0

Hello,

 

I would like to receive hexadecimal data sent from a Pyrometer.

I've written a very simple VI, and I used the scan from sting vi, and set it to scan a Hexadecimal integer. I 've tried too many options, commands types  and so on, but I am receiving  all the time the error :

 

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

 

Possible reason(s):

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
Command requires GPIB Controller to be Controller-In-Charge.

 

 

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

I cannot till now find what could be the problem, since even when using the probe to check the data at every line nothing seems to be working even to set up the serial parameters or send the command...

 

Any hints will be very appreciated.

 

Thank you in advance

 

Tania


Commands for Michell Instruments OptiCal Humidity Calibrator

$
0
0

I want to write my own labview software for controling a Michell Instruments OptiCal Humidity Calibrator via its 232 port but the manual does not provide any command instructions, just information on using the bundled software that it comes with.

 

There is a labview instrument driver for a simple Michell Instruments Easidew hygrometer, so I would've thought the ability to control the OptiCal would be available.

 

Does anyone have a driver or the commands for controlling the OptiCal?

NI XNet .dbc to FIBEX conversion

$
0
0

Hi Friends, I am using NI XNet version 18.5. in my PC. When i am trying to convert .dbc file to FIBEX or .xml (i.e cluster format) i am facing some issue. When the file is converted from .dbc to .xml file the Frame names and Signal names whose string length is more 32 are clipped and it is saving with 32 string length.

Example : Actual name in .dbc : Active_Lane_Management_Switch_Start

                After Conversion .xmlActive_Lane_Management_Switch_St

from above you can see "art " is missed.

Can anyone help in this regard how to overcome this issue.

如何以status byte (STB)形式响应主机指令

$
0
0

使用C#+USB-GPIB 开发的测试设备如何以状态字(status byte (STB))的形式响应主机的每条指令,开发手册中只发现ReadSTB这个函数并未发现有类似WriteSTB这样的函数,如果C#或USB-GPIB不支持该功能是否有产品支持该功能

VISA viWrite works but no viRead on USB

$
0
0

Hello all,

I have a custom USB device I normally use on Linux. For training I wanted to use it on XP with VISA. I conncet it, run the VISA driver wizard, create the driver, install it and launch my test program.

Writing to the card works fine, I can light up some LEDs on it.

Trying to read anything from the card fails (General protection error), it also fails from the the Visa test panel.

And taking a look at the attributes returns -1 for the IN_PIPE. What could be the cause of that ? Hardware problem ? Misconfiguration ? It works on Linux (but it's not a VISA driver, it uses libusb or libhid, I don't remember), so... ?

ERR-1073807195 in GPIB communication with Keithley 2401 and Agilent 34970A

$
0
0

Hi all!

My previous post regarding this problem did not garner much response, hence I'm reposting to report the issue along with some progress I've had:

 

I am using LabVIEW 18 for automating a battery life cycling test. This is an old code which has been handed down to me by a senior to run the testing setup. Recently, the CPU for the workstation on which this testing setup resides was changed and hence, there are some errors showing up while communicating with devices.

 

I am using Agilent 34970A for data acquisition and Keithley 2401 source meter as a power supply/DMM. I have connected the KE2401 source meter via a USB-GPIB cable to the CPU. And the Agilent 34970A is connected with a GPIB-GPIB cable to a National Instruments GPIB card in the PCI slot of my CPU.

 

I have the LV instrument drivers for Agilent 34970A and Keithley 24XX installed. Also, I've installed the Keithley IO libraries and communication expert along with the Keithley VISA as secondary. I set both the instruments in the GPIB mode via their front panels. Keithley 2400 is in GPIB SCPI mode (I have also tried with GPIB 488.1 mode). Agilent 34970A is in GPIB 488 mode. I have also checked that their primary addresses are the same in the front panel and my code. I have NI 488.2 installed and have enabled TULIP.

 

Now, both the instruments are being detected by NI MAX under miscellaneous VISA resources and I am able to communicate with them by querying the IDN command. Here are some screenshots:

1.pngGPIB devices in NI MAX2.pngKE2401 comms via VISA Test Panel3.pngAg34970A comms via VISA Test Panel

However, when I run the LabVIEW code which communicates with these, I am encountering an error with the initialize.vi. The error is -1073807195: The interface type is valid but the specified interface number isn't configured.

 

I also read some forums which asked me to uninstall the Keithley secondary VISA, but that results in NI MAX not identifying my GPIB devices. How do I troubleshoot this issue?

VISA driver for Andor iXon Ultra 897

$
0
0

Hi,

I'm trying to control an iXon 897 through LabVIEW. I have made a .inf file w/ VISA driver wizard and have succcessfully signed it (I'm using Win 10). NI-MAX identifies the USB device but when I try to interact via basic I/O *IDN?\n, it gives a read operation error and returns 0 bytes. What am I doing wrong? Is the command different for this camera?

National Instruments USB-5133 is unable to connect via the Visa interface in matlab. How to connect to the Visa interface?

$
0
0
I connect the NI USB5133 device to the computer and install NI-SCOPE support package successfully But can not scan to see the USB port causing unable to create interface Object.
What should I do to be able to connect to the NI USB 5133 with Matlab?
Untitled.jpg

DMM6500 Statistic Measurements Average

$
0
0

Hi, 

I'm trying to use Labview to perform a few Voltage, Current, Capacitance measurements. I do seem to have the basic communication [Ethernet VISA] working, but I think I might have a sequence of operation or settings miss match. LabviewTestingComm.pngI'm interested in the the average value for the measurement. I think I might be getting just the instant value instead the moment. [Average of sample 1]. [min/max values are exactly the same I don't think that should be the case]

 

I would appreciate any tips on how to set up my test-sequence or what I'm missing doing wrong. 

 

NOTE:

When using the meter in local mode I can select continuous measurement and things seems to display correctly, but when using remote controlling [LV] it seems to be require a trigger [section 5 of the manual

 

 

Communicating from one GPIB card to another

$
0
0

We have a few of the NI PXI GPIB cards (https://www.ni.com/en-us/support/model.pxi-gpib.html) and want to set up communication from one card to another. Are there any articles/examples I can read on how to set this up? Attempting to use NI-MAX and the interactive control results in a bus error once I connect two cards together.

 

VISA32.dll

$
0
0

Hi 

I'm running a Agilent program and got an error : *** Can't find DLL entry point 141 in VISA32.DLL at run time. Please tell me how to fix it.

 

It sounds like missing VISA32.DLL file but note that my PC is Window 7 and I already had VISA32.dll file in Program Files\system32 and widnows\sysWOW64 folders. 

Thanks

Keysight MXG N5183B Get RF Power Level

$
0
0

Hi folks,

 

I am trying to read back the set frequency and power level on a Keysight N5183B sig gen using LabVIEW. I couldn't find (or missed) any instrument driver function or SCPI command in the programming manual that does that. 

Does anyone have any idea of how can I get (read from instrument) the frequency and power level from a N5183B signal generator using LabVIEW and GPIB instrument control?

 

TIA

Mike

NI I/O trace save as text ?

$
0
0

Hello all,

I want to compare some NI I/O trace reports, but it only saves in a binary format *.nitrace.

Copy/paste of more than one line from the interface is not possible either.

Is it possible to save as text ? Or to convert the nitrace files to text ?

(Currently using version 15 of NI I/O Trace)

Thanks

Viewing all 5661 articles
Browse latest View live


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