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

Automating Keysight M9374A network analyzer with labview 2017 to get s parameter data

$
0
0

hello

I am trying to connect keysight M9374A netrwork analyzer with labview to get s parameter data. i have installed ni visa , i have no idea how i should approach to get this done further. can someone please guide me regarding this?

thanks 


viOpen(); VI_ERROR_RSRC_NFOUND

$
0
0

Hello, I installed :

http://www.ni.com/download/ni-visa-5.2/3337/en/

https://www.ni.com/lwcvi/download/

https://www.rohde-schwarz.com/driver/smc100a/ install driver VXIplug&play x86 driver rssmb

Created an example in which I get the error: viOpen () -1073807343.

tested with the mingw32 compiler, mingw64, msvc2017 64 bit

ViSession defaultRM;
       ViSession instr;
       ViUInt32 numInstrs;
       ViFindList findList;
       ViUInt32 retCount;
       ViUInt32 writeCount;
       ViStatus status;
       char instrResourceString[VI_FIND_BUFLEN];
       unsigned char buffer[100];
       char stringinput[512];
       int i;
       status=viOpenDefaultRM (&defaultRM);
       if (status < VI_SUCCESS)
       {
          qDebug() << "Could not open a session to the VISA Resource Manager!";
       return;
       }
       status = viFindRsrc (defaultRM, (ViString)"TCPIP?*INSTR", &findList, &numInstrs, instrResourceString);
       if (status < VI_SUCCESS)
       {
          qDebug() << "An error occurred while finding resources.\nHit enter to continue.";
          fflush(stdin);
          getchar();
          viClose (defaultRM);
          return;
       }
       for (i=0; i < numInstrs; i++)
       {
          if (i > 0)
             viFindNext (findList, instrResourceString);
          status = viOpen (defaultRM, instrResourceString, VI_NULL, VI_NULL, &instr);
          if(!QString(instrResourceString).contains("192.168.0.202"))
              continue;
          while(status < VI_SUCCESS)
          {
            status = viOpen (defaultRM,instrResourceString, VI_NULL, VI_NULL, &instr);
            qDebug() << "viOpen" <<status<< instrResourceString;
          }
          char * cmmand = (ViString)"*IDN?\n";
          status = viPrintf (instr, cmmand);
          if (status < VI_SUCCESS)
          {
             qDebug() << "Error writing to the device i.\n";
             status = viClose (instr);
             continue;
          }
          status = viScanf(instr, (ViString)"%t", buffer);
          if (status < VI_SUCCESS)
              qDebug() << "Error reading a response from the device i.\n";
          else
             qDebug() << "VI_SUCCESS";
          status = viClose (instr);
       }
       status = viClose (defaultRM);

if i run "ni max" device and interface" -> network devices -> add network devicec then the error disappears (VI_SUCCESS).

Help please

Jumo Dicon Touch Modbus Connection via TCP

$
0
0

Hi,

I need to get some values from a Jumo Dicon Touch Controller via Modbus TCP into LabView.

Does anyone has an working example?

I can ping the controller. The controller is setup as master and I can not change that.

 

Thx for any advice.

NI GPIB-USB-HS with VB.NET ( No Listeners on the GPIB )

$
0
0

I use the NI GPIB-USB-HS device to communicate with a Fluke45 DMM and it has been working 100% reliably in a VB.NET program until recently. When I issue a GPIB.WRITE command an exception is thrown along with a "No Listener on the GPIB" prompt. I have verified the proper primary address is being used by the GPIB object in the program but as soon as the following statement is executed the exception occurs ...
GpibDevice.Write("VAC")

This serial communications has been working flawlessly for the last 10 years and then it just stopped working. I can still communicate with the Fluke 45 using NI MAX and the VISA debug tool.

Curious to know if anyone has any ideas or has been through this already.
Thanks
George Komisar

niRFSA dll and lib

$
0
0

Is there a 64 bit version of niRFSA.dll? If so where can I find it? If not, is the niRFSA.lib position independent code? I need a 64 bit dynamic library version of this driver.

NI PXIe-8431 RS-485 com port settings

$
0
0

Hi

I'm having trouble turning on the advanced tab for my com ports in measurement and automation explores on my PXIe-8431. On the port settings tab for port binding it says I can change the settings under the advanced tab. The advanced tab is not showing up for me. I did this several years ago but have forgotten how. I have logged into labview as administrator but I still don't see it.

Thanks

SBRIO-9607 SERIAL VISA WRITE ERROR -1073807339 WHEN ACCESSING SOCKETED CLIP SERIAL PORTS (ASLR:2 to ASLR7)

$
0
0

Dear all,

 

I am using SbRIO-9607 target and Labview 2015 ,NI-VISA 15.0.0 and NI-SERIAL 9870 and 9871 Scan Engine Support 15.0.0 tools respectively.

As u know, there are seven serial ports that are supported in SBRIO-9607 target (One can be accessed by console port and other six via socketed CLIP method .I am able to successfully communicate with console serial port ASRL1 using VISA Read/Write Tools but unable to use ASLR2-ASLR5using same VI(though i have followed all known steps using various articles for configuring the same ports using socketed CLIP method and routing their TX/RX to respective Digital lines)

 

Following is quick summary of steps i have followed to be able to use ASLR2 to ASLR5:

1. Configured ASLR2 TO ASLR 5 (Trying only RS232 in first place)using SbRIO CLIP Generator Utility. 

Untitled.png

2. After Socketed Clip File xml and configuration generated, added RMC SOCKET in Project as well as below

Untitled2.png

3. After all known steps done, i try to access any of the four instantiated (Serial 2 (ASLR2)to Serial 5(ASLR5))  socketed CLIP serial ports both using following two methods, i receive same error:

      a). Making a VI using VISA Write /Read functions Labview Realtime toolkit. Vi is           as below and selecting in it VISA Resource ASLR2 (Please note that this VI                 works perfectly fine when i communicate with ASLR1 using PC USB to Serial             cable connected to it)

 


Untitled3.png

When i try to run this VI, Labview generates error as below:

Untitled5.png

      When i searched this error , i found out it occurs if serial port write timeout value          is less( i increased it to 5000ms) OR no of bytes to be written at serial port are            less (which in my case is not happening, as i try to write only few bytes command)

 

      b)I tried to access same port using following VISA PANEL too from NI MAX page        but same error comes as shown below.

Untitled6.png

 

Untitled7.png

 

Kindly please help me in resolving this issue, all i wanted to do in first place was to be able to use socketed CLIP serial ports, I have these three basic queries

 

a). In ASLR2, Tx is connected to DIO64 and Rx is connected to DIO65, as per my concept, if any RS232 converter IC not connected to above pins, the basic check that i can perform is to physically short DIO64 and DIO 65 with a wire and call VISA Write and VISA Read functions in Labview Realtime as mentioned above (back to back), wtever written to DIO64 via Serial Write should reach DIO65, then to VISA REad and i am able to access written data in loop back.

 

b). Is there is some link i am missing in able to use correctly these socketed CLIP ports i.e.some API, Driver, step etc? As per my understanding, i can only access VISA resources in a Labview Realtime VI, though RMC socket added under FPGA target name in Project Explorer.

 

c). I wanted to use RMC digital pins as well along with these serial Socketed CLIP perepherals but it seems i won't be able to use both simultaneously. Is it true? For a Custom RMC Card aswell?

 

Kindly please help me urgently as straightforward help not available in this area or i may not have yet come across some clear article explaining this issue.

 

Thanking in anticipation.

 

Aijaz

Thanks

Help getting started with Hardware connections for Labview

$
0
0

Hello,

 

I am a new undergraduate EE student, and I have been tasked with setting up a LabView program that automates resistivity measurements at various temperatures. The only experience I have with Labview is from the tutorial videos NI offers and some independent internet research. I am proficient in C and a few other languages, so I think I understand the basic idea of the programming (I also have a colleague who has experience with Labview programming), but I am completely new to the hardware connection.

 

 I will be connecting a Keithley 2401 Sourcemeter and a Keithley 2182 nanovoltmeter and a bench power supply connected to a Peltier cooler (wired to supply a negative voltage) to increase the temperature and a thermocouple attached to the Peltier cooler to measure the temperature. For our measurements, we are using the van der pau method to determine the sheet resistance of a sample. Four probes are attached at the four corners of a sample, and two voltage measurements are taken: one with the right two probes providing current and the left reading the voltage, and one with the top two probes providing current and the bottom probes reading the voltage. Because of this, we will also have to use a DPDT relay controlled by a separate microcontroller.

 

Currently, I am putting together a list of equipment I to request for purchasing and I want to be sure I have what I need. What I have so far is listed below:

 

2x GPIB - USB (I originally looked at a prologix connector but it looks like this is recognized as a serial port and there may be problems when using the Keithley drivers as they are designed to communicate via GPIB, however, the cable offered by NI is over $600, so I may be forced to make it work)

1x NI USB Temperature input device (https://www.ni.com/en-us/shop/select/temperature-input-device)

1x 0-30V / 0-5A Bench Power Supply that can be controlled via USB or similar connection

1x [Yet to be determined USB controllable Relay]

1x Powered USB hub

 

This will be set up with on a Windows 10 desktop. 

 

My question is will a Prologix GPIB-USB work with Keithley's Labview drivers or will I need to buy the much more expensive NI GPIB-USB-HS(+)? 

 

Also, are there any major "gotchas" that I should be on the look out for when getting the hardware setup with Labview?

 

ps: any advice on equipment selection or requirements are also welcome.

 

I appreciate any assistance.

 

-Quintin

 


GPIB IBSIC error

$
0
0

GPIB newbie here. We had a hard drive fail on a computer controlling a measurement system. It was running Windows XP and had a USB to GPIB adapter (Model 188417D-01). The new computer is running Windows 10 so I downloaded and installed the new driver NI-488.2. When running the system software I get the following error "GPIB initialization failure in IBSIC". I was wondering if there is some further configuration required, or does the error have something to do with the driver not running older, legacy adatpers? Any help is greatly appreciated.

Migrating an old Lab Instrument (winXP) with PCI IEEE 488.2 card to a Win10 micro PC with only USB ports

$
0
0

I have a old Lab instrument (Varian Cary 100 UV-Vis) which currently run on Win XP.

 

I'm trying to migrate it to a new Win10 micro PC but it only has USB ports.

Is there a USB to IEEE 488.2 adapter?

 

thanks

Greg

Test & Measurement Setup

$
0
0

Hi everyone! 

 

I want to renew an old test/measurement setup involving the instruments listed below:

 

Tektronix TDS3032B - Oscilloscope

Keysight Technologies E4416A - Power Meter

Keysight Technologies E4445A - Spectrum Analyzer

Keysight Technologies  66000A - DC Power Module

 

The instruments are used for testing and taking measurements on a certain device and the tests are controlled using an old TestStand version on an even older PC using windows xp. The instruments are operated using GPIB interface.

 

I want to upgrade to a newer PC- and TestStand version. Thus, I'm looking for suggestions to what setup to use in regards to PC and a new GPIB-controller card.

 

Any ideas are appreciated! 

 

Regards,

Spole

 

NI 9215-USB (BNC) on CentOS 7

$
0
0

Hello,

 

What version of ni-daqmx (base?) do I need to install in order to talk to the NI 9215-USB (BNC) on CentOS7? I finally got my GPIB working using a third-party library (https://github.com/vddvss/linux-gpib-packaging/issues/2), but I haven't been able to list the device using the most recent ni-daqmx installed using yum from the rpms provided here (http://www.ni.com/download/ni-linux-device-drivers-2018/7664/en/). It doesn't seem like they're supported, from what I see in the README.

programing agilent E5062A with external controller

$
0
0

Hello ,

I am looking for a solution to agilent E5062A program to load a .sta file
I already use the command: MMEM: LOAD an error occurs invalid separator please help 

Keysight 34970A Error 550 Not able to execute command in local mode when sending DISPlay:TEXT

$
0
0

We have a Keysight 34970A connected to a host PC with an Adlink PCIe interface card. I have tried communicating with the logger from my own program, Command Expert and also from the GPIB Interactive control in the Adlink GPIB utility

.

In each case the logger will not accept the DISPlay:Text command if I supply it with a string (e.g. Smiley Very HappyISPlay:TEXT "test"). I get the error back from the 34970A "SCPI Error: 550,Not able to execute command in local mode", however the command DISPlay:TEXT:CLEar is always accepted.

Previously I had the logger connected using the Adlink USB3488A SUB-GPIB adapter and did not experience this problem.

 

According to the manual, error 550 means the instrument has received a READ? command while in local mode for RS232 operation.

 

I have tried tried pressing the local button on the front panel, sending SYSTem:LOCal (gives the error "SCPI Error: 514,RS-232 only: not able to execute using GPIB"), and factory resetting the logger. None of these make any difference.

 

Does anyone have any ideas as to resolve this problem? I am quite new to SCPI and GPIB and feel like I might be missing something obvious

 

 

 

 

Transfer file to Lecroy Waverunner 8254 over USB

$
0
0

I have a Waverunner8254 scope and I’m trying to do some automation in LabVIEW with it.

The problem I’ve encountered is with sending files to the scope over USB.

I found a solution that works (Another Topic), but it works only to files that are less than around 65k bytes (I could assume 65535 but I did not test exact value).

If I try to send a file which is larger than 65k I get timeout from VISA blocks and I cannot connect to scope again until I reboot it.

Is there some kind of buffer that is adjustable here or maybe I’m missing something here?

I’d really appreciate some help here.

 

I only have a remote access to this scope so I can't dig into its configuration and the manual does not help as well...

 


Download NI-488.2 2.7.1

$
0
0

Hello,

 

I would like to download Version 2.7.1 of NI-488.2 driver.

Unfortunately, driver prior 17.6 are not available to download anymore.

See: How to Download NI-488.2 Drivers Prior to 17.6 (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019QOfSAM)

The article says to contact the support, but it looks like you need to have a paid support subscription to get the support.

 

Is there any other way to get version 2.7.1 (or similar)?

 

 

Thanks

Daniel

GPIB DC power supplies and DAQ with two controller

$
0
0

have 6 stations connected with 6 dc supplies and 1 DAQ with GPIB. I plan to shut down 1 station and connect with new computer and test new function. I am using to VBA to control the stations now. From DAQ, Can I connect two controllers over GPIB. If this is the instrument to get the signal from it, I know it is okay to connect parallel but not sure the controller(computers)

 

Computer

      |

  DAQ  -------Computer(is it okay?)

     |

6* DC supplies

GPIB DC power supplies and DAQ with two controller

$
0
0

have 6 stations connected with 6 dc supplies and 1 DAQ with GPIB. I plan to shut down 1 station and connect with new computer and test new function. I am using VBA to control the stations now. From DAQ, Can I connect two controllers over GPIB. If this is the instrument to get the signal from it, I know it is okay to connect parallel but not sure the controller(computers)

 

Computer

      |

  DAQ  -------Computer(is it okay?)

     |

6* DC supplies

cDAQ-9139 can I directly get access to installed c-module in the 9139 from another external computer?

$
0
0

cDAQ-9139 can I directly get access to installed c-module in the 9139 from another external computer?

 

I have software that I has to run on a 64bit computer. The cDAQ is 32bit computer and won't run the software needed.. the software is designed to run on NI-9181 single chassis with NI-9234 module but the 9139 is already available.

 

VISA Enable Event : Error -1073807339

$
0
0

Hi,

Whenever device driver tries to execute "VISA Enable Event" function with event type "Service Request" It gives an error "Error -1073807339 occurred at VISA Enable Event in Agilent 3352X Series.lvlib"

I am successfully executing *IDN?\n command and reset command using VISA.

 

Viewing all 5661 articles
Browse latest View live


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