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

GPIB-USB-HS with UE204 USB over ethernet

$
0
0

I have a B&B Electronics UE204 USB over ethernet hub.  It is a USB hub that connectsto my computer's ethernet card.  When I connect the NI GPIB-USB-HS cable to the hub and to an instrument, the NI-MAX application recognizes that I have the cable connected but doesn't seem to be able to communicate with it.  It is listed under "Devices and Interfaces" but when I select it, the right side pane of the app is just gray with no information.  When I execute the VISA Interactive Control dialog, it doesn't show up in that list.  Here is a screen shot:

usb_over_ethernet.png

 

 


write a sequence of frequency to agilent 33522a

$
0
0

Hello everyone ,

 

I' am using Agilent 33522A , Labview 2010 , windows 8 and an USB - GPIB cable 82357B to communicate with my instrument.

I've downloade my instrument driver ( Agilent 33522A series examples)

 

This my first project using labview so I'm facing some difficulties.

I want to make a sequence of 10 frequencies (the user will write them everytime he uses the application) that the instrument will read one by one with a delay time of secs.

 

here what I've done but I'm not sure where should I put my while  loop.

 

Please any help ?

 

Thank you so much Smiley Happy

AIT MIL-STD-1553 PXI not communicating with LabVIEW

$
0
0

I have an AIT MIL-STD-1553 PXI card, and I am trying to control it using LabVIEW. The card shows up in MAX, and a Test Panel is able to communicate with it, as shown in the attached images. Further, if I open a VISA session with the instrument, it seems to be okay. (I have only tried doing a VISA Open and VISA Close, resulting in no error. Since I don't know any other VISA commands to this instrument, and since it does not seem to speak SCPI, I have been limited to simply opening and closing the VISA session.) However, when I try to do a simple Initialize using the AIT LabVIEW vis, I get an error code -1, stating that there is "No Hardware Found". This simple vi is shown in the other attachment. (I did not attach a snippet, because without the AIT DLL it would be useless anyway.) I have also tried different "network path in", and "board index in" values, without success. Any time I change the network path in to anything but "local", I get an error code -5, stating that "Remote network connection not supported by this hardware".

 

I have verified that the latest AIT firmware is loaded on the card. I'm running the AIT LabVIEW vilib components, and LabVIEW 2015.

 

Any help would be greatly appreciated.

Thanks.

Dan

Auto shut off when serial cable is unplugged and detection of number of serial cables plugged in.

$
0
0

I have a program running two indpendent visa sessions. At the end of the day a technician comes by and unplugs the serial cables from the device they are attached to. This is sadly unavoidable. which means that my VI hangs and waits for the timeout then loops, recording bunk data in the process. How can I avoid this from occurring? I would like the program to safe itself if one or both the serial cables are unplugged. Is it enough to put an event loop in teh while loop with the conditoin that if timeout is reached X number of times (for redundancy so that it does not accidentally shut off mid session on its own for another error) then True is sent to the stop button? How would this effectively close my visa session if the cable is forcibly unplugged?

 

As for part two of my question, if I have two devices connected under normal operations, but for some reason only want to connect one, or only one is unplugged during a session, how can i skip over the one that is unplugged automatically? is there a way to dynamically "comment" out a portion of the code if it detects that there is no actual device connected to that particular com port?

Unable to load DLL niModInst.dll

$
0
0

Hi Mr/Mrs

 

I encounter this error. What do I need to install?

 

Unable to load DLL 'niModInst.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

 

I do know the dll supposed to exist in C:\Program Files (x86)\IVI Foundation\IVI\Bin which isn't right now.   

 

Thanks in advance.

 

Cheers! Smiley Happy

オシロスコープでデータを一定時間ごとに保存する方法が分かりません。

$
0
0
オシロスコープで電圧値を測定し、一定時間ごとにその電圧値をオシロスコープからパソコンに転送し保存する方法を教えてほしいです。

オシロスコープはLecroyのwaveJet314を使用しており、パソコンはWindows7です。(オシロスコープはそれしかありませんでした)

オシロスコープはRS232でパソコンと接続しています。

10秒から1分程度の間隔でデータを保存したいです。

必要なデータは測定した時の時間と電圧値です。

Excelで管理したいので、バイナリ形式以外で保存したいです。

ネットを使ってしっかりと調べ、先生にも聞きましたが、(専門の先生がいないため)誰も分かりませんでした。
初心者ではありますが、よろしくお願いします。

Enumeration items must be Unique error (Using SCPI)

$
0
0

Hello,

 

I'm controlling the Agilent N9010a Spectrum Analyzer with Labview. In my program I need to select the VSA89601 mode but I couldn't find a block in the Agilent drivers for that purpose so I'm trying to do it with a SCPI block. With this SCPI block I can choose every mode available in the spectrum analyzer after creating a Constant. When I try to execute the program I get this error: " Enum constant 'Application Mode Selection': Enumeration items must be unique."

 

I'll appreciate some help with this error. If anyone knows where to find a Mode Select block in the Agilent drivers tell me please.

 

Thanks!

Switching from a cRIO to cDAQ

$
0
0

Hey all,

 

My supervisor wants to switch out our cRIO setup for a cDAQ setup to allow for better control via the computer. I work in a lab where we do HVAC testing in psychrometric chambers are used to test electrically-driven mechanical heating and cooling equipment.  These chambers are controlled using LabView software and updates to the code and control verification needs to be performed to actually get testing tolerances to standard. 

 

My labview experince is on the low side of the specturm, but i understand that cRIOs are set up to use a base written FPGS code in them where as the cDAQ is set up to just run from labview? The Labview code was set up by a third party, and has become littered with bugs as we've set up different tests / had multiple lab techs messing with it. 

 

Has anyone done this kind of switchover? I'm currious if that anyone has had issue with essentially having to rewrite their program or if it is a painless switch? 

 

Thanks for the read!

SamB. 

 

(Also I apologize in advance I am unable to post the code)


IO Server for Agilent 34980A using DSC 2015

$
0
0

Hi there,

 

Has anyone come up with a custom IO (or OPC) server for an Agilent 34980A? I would like to know how to create one for my application. I currently have an OPC server for a Fluke Data logger but also need to use this 34980A from time to time. I've looked around but have not found one yet.

 

 

Thanks

Storres211

N5182A Arb Waveform Download

$
0
0

Dear Sirs,

I would like to dowload an Arb waveform into the memory of agilent N5182A. I'm using the driver agpsgmxg and the write arb waveform vi. My vi finished without error but into the instrument there is not any new waveform? Could you help me please? Please find attached on this post the vi implemented.

Thanks in advanced

Best Regards

Modbus over Ethernet/IP

$
0
0

Hello guys,

 

i am using LabView after quiet a long time and in addition i have to set up my own measurement setup.

I am thinking of using Wago 750-352 Fieldbus for couple of sensor measurements. I wish to implement http://www.wago.com/wagoweb/documentation/app_note/a2016/a201602e.pdf

 

The Document is pretty old. I found another document which does not mentions LabView at all.

 

Has any one used Modbus communication Wago Fieldbus coupler using LabView?

 

Please reply.

 

 

Regards,

MandarG

GPIB USB drivers for linux ubuntu 14.04

$
0
0

Hello,

 

I am trying to communicate via USB through the NI GPIB-USB-HS to some devices with my laptop running Ubuntu 14.04. I cannot seem to get the drivers to work. I am trying to install Linux-GPIB-3.2.21, but I get some  interesting errors. I ran:

sudo ./configure

and that worked fine. Then:

sudo bash Makefile

then get the following error:

Makefile: line 26: am__is_gnu_make: command not found
Makefile: line 29: syntax error near unexpected token `)'
Makefile: line 29: `      ?) ;; \'

When I try to run:

sudo bash INSTALL

I get:

INSTALL: line 2: Installing: command not found
INSTALL: line 3: --------------------------------------------------------------------: command not found
INSTALL: line 5: syntax error near unexpected token `)'
INSTALL: line 5: `A) First steps:'

When I type lsusb, I see:

Bus 001 Device 006: ID 3923:709b National Instruments Corp. GPIB-USB-HS

But when I type:

ls /dev

I don't see the serialport. (the contents have the same length wether or not the USB is plugged in).

 

Thanks in advanced

CDaq not recognising U-Blox M8 GPS device

$
0
0

Hello I have a CDaq NI-9133. I have plugged in a U-Blox GPS evaluation kit via USB into the chassis and I cannot get the system to recognise the device. The same kit works on my laptop with a gps programme I wrote in LabView. I installed a driver from U-Blox on my CDaq, but no success.

I saw that there is a labview driver for a previous chip, the 5 series. This also doesn't work completely with the 8 series chip I have. On my cDaq I can't get NI MAX or Windows itself to recognise the device, but it works perfectly on my windows 7 laptop. I think that if windows can't reconise it, then there's no way that my labview programme will work.

 

Here's the GPS chip - https://www.u-blox.com/en/product/max-m8-series

The 8 series driver is attached.

 

If anyone can spare some time to think of possible solutions that would be great.

 

Thanks,

Alex

 

Ortec 996 timeout error

$
0
0

Hi. I have an Ortec 996 timer/counter which is connected to a pc through a GPIB interface. I downloaded the "example program ortec 996.vi" to test it, but I get a timeout error in the "ortec996 read counts.vi". The error comes from the first VISA read. Any clues? Everything else before this seems to work. 

 

Optimistic regards

Morgan Ganerod

picomotor

$
0
0

does anyone have a picomotor 8742 labview program i can use?


Why is my instrument sending the response for the last command sent to it?

$
0
0

Hi so I'm trying to program this SR720 LCR meter via a USB/GPIB interface. I can communicate with the machine and it's almost doing what I want, but has this strange quirk, and I suspect I'm missing something basic. The manual can be found here.

 

It responds to common GPIB commands like *IDN? (identify the instrument) and *IFC (device clear), so I'll be using those. The one I want to use myself is xall?, which just requests the data currently measured.

 

The problem is that it seems like the machine always "lags" one command late. For example, if I query *IDN? with NI MAX, it returns what it should. However, if I then query xall?, it still returns the same thing as *IDN?, until I do xall? again, and then it returns what it should:

 

-> *IDN?<- StanfordResearchSystems,SR720,08087,1.03
-> xall?<- StanfordResearchSystems,SR720,08087,1.03
-> xall?<- G1C7.0992E-08,G1R3.1788E02,99

Likewise if you go in the other direction:

 

-> xall?<- G1C7.0992E-08,G1R3.1788E02,99
-> *IDN?<- G1C7.0992E-08,G1R3.1790E02,99
-> *IDN?<- StanfordResearchSystems,SR720,08087,1.03

As you can see, it's "lagging" one command.

 

The manual says:

 

Similarly, the SR715/720 has a 256 character
output buffer to store output until the host
computer is ready to receive it. If the output buffer
fills up it is cleared and an error reported. The
GPIB output buffer may be cleared by using the
Device Clear universal command.

 

So I thought I'd try the device clear command (*IFC) before entering a new command, but it doesn't seem to work:

 

-> *IDN?<- StanfordResearchSystems,SR720,08087,1.03
-> *IFC
-> xall?<- StanfordResearchSystems,SR720,08087,1.03
-> xall?<- G1C7.0997E-08,G1R3.1761E02,99

Does anyone have any idea what might be going on? The manual says to use line feed as the terminating character, so I am, but it doesn't seem to matter.

hardware setup for peltier element and temperature control

$
0
0

Hello everyone,

 

I hope I'm in the right forum for this question. If I'm mistaken it would be nice if a mod could move this to the right forum.

 

I want to get a Peltier element which I want to set to a certain temperature and keep it at this temperature. The temperature will probably be 30 °C.

As I'm very new to this subject I don't know where to start and what kind of setup I need. I saw that LabView has a PID controller VI implemented.

I guess I would need a programmable power supply and a peltier element. Is this enough to write a program to keep the temperature constant?

 

Thanks for your help

 

Best regards,

Tresdin

agilent 33500B duty cycle configuration

$
0
0

I am using the Agilent/Keysigt 33511B function generator to produce a square wave with specified amplitude, frequency and offset. However, I am unable to configure the duty cycle. Is there a VI to controll this parameter?

COMMUNICATE WITH SORENSON POWER SUPPLY XPF 60-20DP

$
0
0

Hi,

 

I try to look for the USB driver for Sorenson XPF 60 - 20DP power supply.  I am using labview 2011.

 

Please guide me how to communicate with this power supply using USB and GPIB port.

 

Thank you,

NI-VISA read timeout error using PyVisa

$
0
0

I am controlling a Tektronix DPO72994C oscilloscope with NI-VISA through a python wrapper (PyVisa). No matter what settings I use or how much delay I add, reading from the scope gives me a timeout error. The read theat fails is an attempt to read out the scope trace in ascii format. The syntax of the read command in python is:

raw = self.get('CURV?')

 

The error I get is:

pyvisa.errors.VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.

 

 

This used to be an intermittent error that I fixed by adding delays in my code at various locations. Now adding delays does not help, the read command always times out. Not sure what changed or if this is some kind of hardware error.

Viewing all 5663 articles
Browse latest View live


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