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

NI-VISA Server: assign 2 GPIB boards to different clients with priviledges

$
0
0

Hi,

 

I'm building up an instrument server to use in our research lab, and the idea is to have two gpib boards on this server that will be shared on a LAN with NI-VISA Server. One GPIB board (let's say GPIB0) will be connected to all the instruments we use in our daily measurements routine, while the other one (GPIB1) is going to be used to test new programs, train students etc. and will be connected to instruments that are not commonly used. Obviously we would like to have a main measurement client capable of accessing both GPIB0 and GPIB1 boards, while limiting access to GPIB1 for all the other clients (mainly students PCs). Is it possible to do such a thing with NI-VISA Server?


Fuel Consumption Meter (Gravimetric Method)

$
0
0

Hi,

 

I am trying to make a fuel consumption meter using gravimetric method in LabView. The idea is to get the initial weight then once the valve (manually operated) is open for a certain amount of time (e.g. 10 secs) get the final weight (via button click or if it can be done without button and not affecting the value of the initial weight the better). The fuel consumption will then be computed based on these data.

 

As of now, my code is working fine but I am suspecting it is not the correct way or efficient way. Also, I want my code to work continuously (not stop and re-run the vi over and over again) since I need to get multiple readings from a single test.

 

For additional information, I am using a load cell, a Dacell strain amplifier with display, and Arduino UNO board. The load cell is connected to the strain amplifier (+EXC, -EXC, +SIG, -SIG, GND). The Arduino is also connected to the strain amplifier via RXTX connection.

 

This is how the back of the strain amplifier looks like (below):

DACELL Strain Amplifier Back PanelDACELL Strain Amplifier Back Panel

 

My setup looks something like this (below):

 

Lab SetupLab Setup

 

I attached a screenshot of my panel and block diagram .

 

Thank you.

Matlab control PXI-5691 RF Amplifier

$
0
0

Hi,

 

We have encountered a problem using the virtual instrumentation driver IVI of the PXI-5691 RF amplifier in Matlab.

 

The board has very few funtions but we need to be able to control them from the system environment (Matlab).

 

We can identify and see the functions as VXIpnp (not as IVI) after installing the NI package and the Matlab IVI driver generator seem to do its job without error messages.

 

However, when we try to open the object there is a broken link (to the NI-IVI driver).

 

Moving the dll to the IVI search path gives another later error. (somthins with file format not consistent with host...)

 

Does anybode control this board over Matlab? (Any suggestions on how to solve the problem?).

 

 

 

 

 

 

  

Possible reason(s): VISA: (Hex 0xBFFF0011) but resource is accessible through NI-MAX

$
0
0

Hi there, 

I am fairly new to Labview and I hope you can help. 

 

I am setting up a .vi to communicate with an instrument. The .vi is fairly simple: open VISA, write command, read buffer and close VISA. Screenshot attached below:

vferro1789_1-1606951487992.png

 

 

 

Unfortunately it gives this error:

Possible reason(s):

VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

I can communicate with the device without any issue through NI-MAX (see below) and using proprietary software. 

vferro1789_0-1606951417278.png

 

 

Looking for solutions, I tested (unsuccessfully) all of the following suggestions:

- Added an alias in NI-MAX, and used the alias to select the VISA resource 

- Added instrument properties before opening the VISA: this reads the right instrument and setting, so it seems that the device name is actually correct

- tested different protocol (TCP/IP, GPIB, Serial) - all gave the same error. 

 

Finally, if I only open and then close the VISA (i.e. I remove the write/read blocks), I do not get any error. 

 

Since I am fairly new in Labview, maybe there is something very basic that I am missing. I hope you can help. 

 

Cheers, 

Vale

VISA Error 0xBFFF00A5 (VI_ERROR_INTF_NUM_NCONFIG) encountered via IVI .NET when connecting to Instr through ADlink USB-GPIB3488A

$
0
0

Hello,

I am trying to connect to my instruments using the ADlink USB-GPIB3488A converter.

When using NI-MAX, everything is fine. The instrument is detected through the USB to GPIB converter and I am able to communicate with.

But then, my goal is to automate measurements using Matlab.

In this aim, I am using IVI .NET SW components to access the instruments. And here, I encounter the error mentioned in the title.

I launched the NI IO Trace utility to see what happens.

 

In the case I use NI-MAX, here are the captured traces: file = CaptureUSB3488A NI-MAX.txt

Here the call to viParseRsrc function returns OK.

 

I just close NI-MAC, open MATLAB an launch my script.

The M function is nearly simple at the moment :

     function obj = VISA_Instr(resourceString)
          % Initiates a new VISA connection defined by resourceString (ex: "GPIB0::4::INSTR")
          assemblyCheck = NET.addAssembly('Ivi.Visa');
          Session = Ivi.Visa.GlobalResourceManager.Open(resourceString);

          ...

 

In this case, here are the captured traces: file = CaptureUSB3488A Matlab IVI_NET.txt

Here the call to viParseRsrcEx function returns the error.

I am just calling Ivi.Visa.GlobalResourceManager.Open() with "GPIB0::4::INSTR" as argument.

Shall I do something prior to this call?

How could I explain the difference between the 2 session opening (via NI-MAX or via IVI .NET interface)?

 

As everything is working fine with NI-MAX, I assume I am doing something wrong, but did find what?

 

PS : I have installed latest NI 488.2/NI-VISA/NI-ICP 20.0 packages. Thus, I should have everything up to date.

 

Thank you in advance for your help and advice.

Best regards

 

Run front panel VI with subVI in Teststand

$
0
0

Hi there, I am using this but unable to figure out what is VISA Resource Handle - Numeric data type used to store a handle to the current VISA session (https://forums.ni.com/t5/Example-Code/VISA-Custom-Steps-Types-for-TestStand/tac-p/4103802?profile.language=en#M14585).

 

I am having a .lvproj file where I have many subVIs and one front panel. I can remote the hardware from the front panel and playing around with different functions of the hardware (it is an electronic load - Array 3720A). However, I would like to have this feature to be run in Teststand, is there any way to run the front panel and it will able to call subVIs? 

 

The reason I am using this VISA step because I am trying to run all subVIs at the setup and then the front panel VI at main in Teststand. However, it shows Run-Time Error with detail "VISA Write in 3721A_On.vi->3721A_On.vi.ProxyCaller
VISA: (Hex 0xBFFF000E) The given session or object reference is invalid." 

So when I add in VISA Open, Configure and Write, I stuck at VISA Open where the Handle was unable to detect, I thought that 0xBFFF000E is the current session, no? Btw, I have also tried many weird numbers or sessions that I got from NI MAX.

 

Just in case if you need to have the .lvproj file, you may download the file from the link below and convert the whole folder to lvproj. 
Array 372x Series LABVIEW GUI

http://www.array.sh/yqxzcnE.htm


Hope to get reply ASAP! 
Thank you!

PCIe Windows driver missing after update

$
0
0

I am using a PCIe-1427 frame grabber card on a 64bit Windows 10 OS. The card (and associated camera) worked less than 3 weeks ago, but is no longer working. NI MAX recognizes the card but states that Windows is missing a necessary driver, and Windows Device Manager states that the driver is missing. 

 

It looks like there were some Windows updates, which may have caused this. From a Windows standpoint, the solution should be to reinstall the driver, but I have not been able to locate a valid driver. There are zero results for a variety of search terms from https://www.ni.com/en-us/support/downloads/drivers.html. 

 

Does anyone have a solution to this issue and/or know where I can locate the appropriate drivers? Is there a known cause for this? 

NI-VISA 19.2 broken on CentOS 8 - partial fix

$
0
0

There seem to be two problems: the kernel module nikal fails to build; and once that is fixed, the library libniPythonInterface.so can't be found. I managed to fix the first problem, but am stuck on the second. This seems to be the same problem as this post, no solution given.

 

First problem: The kernel modules of NI-VISA 19.2 (current version) failed to install on the current version of CentOS 8 (kernel version 4.18.0-193.28.1.el8_2.x86_64). The output from step 3 of the installation procedure, "sudo dkms autoinstall" is attached. The problem is that nikal.ko fails to build because of a type mismatch (log file attached). I fixed this by editing /var/lib/dkms/nikal/19.2.0f0/source/nikal.c, changing the return value of nNIKAL190_vmaPageFaultHandler and nNIKAL220_vmaPageFaultHandlerPageList from "int" to "unsigned int" (lines 368 and 373).

 

Second problem: After successfully building the kernel modules and rebooting, the "VISA Interactive Control" program (/usr/bin/NIvisaic) fails with the error, "Can't find library libniPythonInterface.so". I haven't been able to find this library.

 

Does anyone have a solution?


Matest C405-15N - no LAN communication in MAX

$
0
0

Hello,

 

I'm pretty around here and not a programming expert at all, but hopefully I'll be able to find some help. I recently bought a laboratory equipment from company Matest in Italy, on which 7 instruments (LVDTs and pressure transducers) connect to an 8-channel data acquisition box (model C405-15N). This one can be connected to a PC via a LAN/Ethernet cable. I've tried to use the software they provided, but it's incomplete, not very user friendly and does not have the flexibility I need to see and plot data in real-time while doing my tests.

 

So I thought that I might use my Labview 2012 license I've been using for another purpose which would allow me to program what I need. However, I haven't been able to connect or recognize the instrument in MAX with VISA TCP/IP, either by auto-detect or manual entry. I can ping with the instrument no problem and connects to the other software with no issue. Can someone suggest something? I included 2 photos of the instrument and interface.

 

Thanks

IVI .NET ResourceManager Find Method response incomplete?

$
0
0

Hello,

 

I am trying to use the IVI .NET VISA SW components to interface my Instruments with MATLAB.

 

Using NI VISA Interface Control SW (and clicking "refresh"), I am able to list and see all the interfaces.

NI_VISA_Interactive_Control.JPG

And the NI IO Trace acquisition shows 8 interfaces :

NIOtrace_VISA_IC.JPG

I am interested in the last one in the traces: the instrument on GPIB...

 

Now, I am using the IVI .NET VISA SW component.

Running the Find() method of the GlobalResourceManager class, the result is different !

The number of detected interfaces is reduced to 6 instead of 8?

I have lost the GPIB ones, unfortunately.

 

I am using : Ivi.Visa.GlobalResourceManager.Find('?*') or Ivi.Visa.GlobalResourceManager.Find() - with same result.

And when running this line, the NI IO trace shows:

NIOtrace_IVI_NET.JPG

 

Only serial interface are listed here and no longer GPIB ones.

What is the difference between what is done by the NI VISA interactive control SW and the ResourceManager.Find() method I am trying to use?

Shall I do something different, what am I doing wrong?

 

Thank you in advance for your help and advice.

Best regards,

 

Laurent

To make blinking measurements of led using rhode and schwarz power supply.

$
0
0

Hello,

I am using a Rhode and Schwarz power supply (hmp 4040). I want to blink/flash my light using this power supply in LabVIEW. 

I also want to be able to change the on and off time for my light.

I have all the drivers for the RnS power supply available.

However, I am very new to LabVIEW so any help would be appreciated.

Bus triggering a Keithley 2000 impacting write to buffer?

$
0
0

Hello all,

 

I'm trying to work with a Keithley 2000 DMM via GPIB and send triggers over the bus to fill the buffer. However, in its current state, I'll run the program and can visibly see the readings being made via the display, but the buffer does not get filled. Querying after all triggers have been sent confirms that the buffer size is set at 30 data points, but there's nothing there. Peculiarly, if I set the sample count to n>1 (i.e. :SAMP:COUN n), it seems to write to the buffer, but then it seems to reset the buffer size to n. Any insights as to why this would be occurring and how to circumvent this issue?

 

I can do this operation manually by setting the buffer size from the front panel and then hitting the TRIG button to fill up the buffer one reading at a time. I'm surprised that the code in it's present form does not do the same thing.

 

Thanks in advance for any insight! 

NI-488.2 Version 15

$
0
0

Hello NI Team,

 

I need NI-488.2 ver 15 drivers on windows 10 for my GPIB-USB-B. It looks like this is no longer available for download on the product page. Where can I get the installer now?

 

Thanks.

How to read periodic signals from a compressor using RS232 serial communication in Labview

$
0
0

I want to test whether serial communication can work between a heat pump and a PC through LabVIEW. During the communication, I want to send a certain signal to change the compressor rotation speed of the heat pump and receive feedback from the heat pump to confirm if the compressor works at the specified speed. Sending signals is easy, but I don't know how to receive signals continuously. The heat pump transmits the internal status (169 bytes) as binary data in 1-second cycles. The first data after there has been no communication for 320 ms or more should be the first byte. By extracting the upper 8 bits of the 39th byte and the lower 8 bits of the 40th byte, 16-bit data can be formed from which the rotation speed for the compressor can be obtained. For example, the upper 8 bits of the 39th byte is 0x00, the lower 8 bits of the 40th byte is 0x00, so the 16-bit data should be 0x0000. How can I do in Labview to read this periodic data after 320ms? I tried it in the Open VISA Test Panel on MAX, but the error: a framing error occurred during transfer was reported. 

May I ask the resources occupied by the GPIB card (urgent, thanks)

$
0
0

Hello, everyone:

I have a GPIB card, but I can't catch it under DOS.

I would like to ask what resources will be occupied by this card as shown in the picture below?

In order to reserve this resource for GPIB use.

Such as I/O Address......

 

GPIB card Jumper

GPIBGPIB

 

Motherboard resources (PCA-6011)

PCA-6011.jpg


Inconsistent READ output at NI-MAX and Labview for Serial Port Device (mk2000)

$
0
0

I am trying to communicate with my new instec mk2000 temperature controller connected to COM port. In NI-MAX i/o test, I am getting inconsistent output for read. Sometimes it gives correct output for *IDN?\n and sometimes i get errors like ''invalid character",''undefined header",''time-out''. Sometimes I also get output for a previosly sent command when new command is sent.

port settings are set to 

 

Baud rate: 9600

Data bits: 8

Parity: Even

Stop bits:1

Flow control:none

 

Simple Call device program in Labview is showing time-out error everytime.

 

Please help. I am clueless....!!!

 

Thanks in advance

Agilent 34401A reported error through 232 communication - 1073807339

$
0
0
LabVIEW example and software report this error, will not how to solve.
屏幕截图 2020-12-22 113114.png

Modbus RTU serial Rs485 and Modbus TCP Ethernet protocol

$
0
0

I have a Third party H/w have Modbus RTU and TCP interface option.How  can i  communicate to this device through Labview.

i) How to select the NI module for physical interface and API for the same?

ii) Is any serial to usb converter(third party converter) can do the same thing?

iii) For both RTU and Tcp can we use a same Physical interface(serial converter or NI Module)??

 

Possible to repair a broken GPIB-Enet 100 ?

$
0
0

Hi community,

 

We have a few old GPIB Ent / 100 controller.

One is yesterday broken, no power light, LED etc. are possible the power consumtion goes at 12 V to 25mA.

 

It is possible to repair, a schematic or a block diagram it probably not available official or ?

 

 

If its a simple voltage regulator, Capacitor or a coil to replace I would try it... otherwise it goes in the stock room with old the other expensive broken stuff from Agilent, R&S we call it RF museum.

 

We have several funny possibility to repair PCB with SMT / THT stuff on IC level in our lab 🙂

 

Or a cheap way to fix it without buy a new one for 2000 Euro ?

 

Also a 650 euro half broken NI USB-GPIB adapter is part in our Museum, and waiting for a new life, if some one has repair it before  🙂

If someone did this before to fix it, feedback are very welcome.

 

And we already lost the guarantee on 10 years old equipment if we do it on or own ...

 

 

Regard and have nice christmas

 

 

 

Michael

 

 

 

 

 

 

Unable to load gpibtsw (Centos 7)

$
0
0

Hello everyone I am trying to install the NI-488.2 on my Centos 7.9 machine. I got the latest drivers from the website version 17.0 and I am trying to test the install by using gpibtsw as listed in the README file but I keep running into missing file or directory issues and was hoping I could get some assistance on this.

 

The labview runtime engine was provided as part of the driver install, but I installed the latest version from the NI website, but still no luck unfortunately. 

Viewing all 5676 articles
Browse latest View live


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