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

VISA EnableEvent TimeOut - Remote Control Application

$
0
0

Hello,

 

I'm working on an remote control application in for the measurment receiver ESL 6 from Rohde & Schwarz.

My configuration:

- VISA 5.3

- Win7 64 Bit

- MSVS 2010 Express

- .NET 4.0

- tried different network adapter (USB, Card, intern)

- programming language: visual basic

- visa32.bat

 

I configured the windows firewall for the communication between PC and measurement equipment. By enabling an event with the command "viEnableEvent", I get the timeout error. With MAX from NI the device is identified, I can write registers, but I can't enable events. I get following error: Enable Event (Service Request) Error VISA: (Hex 0xbFFF0015) timeout expired before operation completed.

 

I recorded the traffic at the network adapter with wireshark. At the point, which the PC send "CREATE_INTR_CHAN", the measurement receiver send SYN and 200 ms after this ACK. The PC don't answer (I attached the recorder traffic). The same code works on an PC with 32 bit XP.

 

Why I get this TimeOut error? Do I have to "open" some port or something else in the windows firewall (but I can send instruction to the receiver)? Is the time between the SYN frame and the ACK from the receiver too large?

 

Thanks for the answers

 


TDS 7054 query max and min measurement

$
0
0

I seem to be having difficulty querying for the maximum and minimum measurements on my TDS 7054 o'scope. I have both meaurements on and if I query MEASU:MEAS1:TYP? it returns MAX and returns MIN for MEAS2. yet when i try to query the actual value MEASU:MEAS1:MAX? it returns 99.000+36 which of course cannot be true. The strangest part is that the code works for the DPO4104. Any Idea what I'm doing wrong? I've attached 2 sets of code, 1 is how I turn the measurements on on the scope, the other is trying to query for max and min.

GPIB/TNT PnP DOS Installation Issue

$
0
0

I have a AT-GPIB/TNT PnP board that I am trying to install on a DOS computer.  I am using the latest NI488.2 software for DOS.

On bootup, the GPIB software drivers install properly, but the interface cannot be found.  When I run ibdiag it detects the correct board but then I get errors saying :


1. Make sure the GPIB cables are disconnected.
2. The base address does not match the address in the ni-pnp.ini file. 
3. Another board or device is using the same address space. Try using a different I/O address and run the hardware diagnostic program.

 

I don't have any cables connected ot the card.  The base address (as set using ibconf.exe) does match the address settings in the ni-pnp.ini file.  I have tried every possible base address with the IRQ and DMA turned off just to make sure that these were not in conflict.  I have tried other ISA slots in the computer.  I have disabled other on-board devices in the BIOS to prevent potential conflicts.  I have a PCI IO board also in the system.  But I have tried changing the addresses with and without this board installed.

 

Based on the errors, it feels like the address settings may not be making it to the card properly, so that there is an address mismatch between what the computer/driver thinks is installed and what the card thinks it's address actually is.

 

Any ideas?




CMW 500 , Query Interrupted error

$
0
0

Hi

 

I am using NI GPIB USB cable and CMW 500.

 

 

When I was running test case, I randomly get the  "-410: Query interrupted" Error,

 

However, It mostly happened when I queried CMW 500 to read the test cases.

 

 

I am not really sure the cause of getting  "-410: Query interrupted" Error,(I am assuming that my query is faster that CMW 500 processing task.)

 

Does anyone know main cause of  " "-410: Query interrupted" Error ?

 

I have attached screen cpature 

 

thanks 

 

 

Tektronix 370A driver for XP or newer

$
0
0

I am trying to remote control Tektronix 370A with window XP through GPIB-USB-HS.

But the driver I found on Tektronix website is compatable with Window 95 and Window NT only.

National Instrument's provided driver is Labview 2010. It contains DIR.MNU and tk370.LLB.

I don't know how to use.

Also, I use delphi to create my execution file, so labview drivers are not suitable for me.

Please send me the driver of 370A for GPIB.

email: harrykui@yahoo.com.hk

 

Image received from visa is shifted in some lines . Can anyone help me ?

$
0
0

Image received from visa is shifted in some lines, any suggestions ?

Bad USB driver or no interrupt channel?

$
0
0

Hello all,

 

I am trying to control a USB Tachometer (http://www.shimpoinstruments.com/tachometer/shimpo_dt-209x.htm) via LabVIEW/VISA and I am beginning to suspect there may be something wrong with the driver I created.

 

I've been using a USB Sniffer called USBPcap (http://desowin.org/usbpcap/index.html) and analyzer called Wireshark (http://www.wireshark.org/) to monitor a computer running the instrument's software on Windows XP (software does not work on later OSs). From that, I've isolated basic USB commands like asking the device to identify itself but when I try to run a simple VISA Open, Write, Read, Close VI with that command, I get a timeout error at VISA Read. Through the debugging stage, I came across a thread about USB communication with VISA (http://forums.ni.com/t5/LabVIEW/Nugget-1-of-n-GEtting-started-with-USB-communication-via-VISA/m-p/743518?query.id=154370#M340676) thank linked to the interruptusb.vi (http://zone.ni.com/devzone/cda/epd/p/id/4516).

 

When I try to run the interruptusb.vi, I keep get the same timeout error. I created the device's driver with VISA's Driver Wizard and MAX recognizes it when I plug it in.  The interruptusb.vi says that everything should work so long as the device has an interrupt channel. Is it possible that the tachometer could be missing this channel? As a control, I ran through the same steps with an old webcam (Creative VF 0400) and it works fine albeit returning all zeroes since nothing is happening with it. My question is could there be something wrong with the driver I created or can there really be no interrupt channel on this device?

Any and all help is greatly appreciated as I am still pretty green in dealing with USB communication.

Thanks,
Yusif Nurizade 

Instruments not accessible via E5810A on VISA 5.4

$
0
0

After upgrading to the latest version of LabVIEW and VISA I am having problems connecting to my GPIB instruments on a E5810A gateway. At first I tried to configure everything the same as in my old installation (enable the tulip dll, manually add instruments with ip + gpib0,x). When I click validate I get an error 0xBFFF0011 telling me that the device is not connected or that the location information is not correct. After that I researched the forum and read these threads and the kb article:

 

http://digital.ni.com/public.nsf/allkb/C6ADD4D65354570086257AA1002F5F67

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/After-applying-fix-for-using-Agilent-E5810A-LAN-GPIB-with-NI/m-p/2451402

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/After-applying-fix-for-using-Agilent-E5810A-LAN-GPIB-with-NI/m-p/2451402/highlight/true#M59618

 

I have no real clue on how to get this working again. I tried to enter gpib0,1 or gpib0::1, disabled and re-enabled the tulip dll... When i go to the website of the gateway and list the devices there they are all found.

When I just enter GPIB0 as device MAX can open a VISA session but I am not sure where it connects then?

 

I am running Windows 7 64bit, LabVIEW 2012 SP1 f4 and VISA 5.4, MAX5.5.0f0

 

Any help will be much appreciated!


Trying to install GPIB USB HS on my Windows 2000 machine

$
0
0

Ok well I am trying to tinstall it on a windows 2000 machine. My computer could not detect or find the drivers required for the gpib-usb-hs. I also accidentally disabled the option to install gpib-usb-hs by accident. I was wondering if there's a way to be abel to install the driver and the gpib-usb-hs??

com ports renaming themselves

$
0
0

I had a problem about a month ago with NIMAX getting corrupted that required a repair to NIMAX to fix.  Since then, twice I have had a LabVIEW executable that should run for 96 hours at a time hang because one or more of the 4 serial ports I use to talk (VISA style) to various instruments has renamed itself and thus become unreachable to my program.  The COM ports are on an NI USB-RS232/4 box that seems to be fine except for this problem, and was fine for a couple years before.  The ports go back to their original names following a reboot of the Win 7 computer, but that doesn't help the bad data collected from the unreachable instrument during the long run.  The program wants a new reading about every 6 seconds, and all the messages are plenty short enough to fit the available time.  I don't want to write code to search for new ports and try to match the messages to the instruments when I see the error message about the unreachable port, I just want the COM ports to stay for example COM3 without randomly jumping to COM8.  Anybody seen a similar problem and know what to fix?

Keithley 2220-30-1 VI help

$
0
0

I need to create a VI has full control over both channels, allows a user to turn knobs to adjsut voltage, run a sweep and plot the results.

All of  the NI driver components are installed. The examples can all load and run. All of the examples throw an error except for the Monitor Output VI.

The error is

 

Possible Reason(s):

Ke2200 Error Querry;

Instrument Reports:

170, "Invalid Command"

0,"No error"

 

The interface that I need to create for the 2220-30-1 must have the functionality of the image attached.

 

I tried to modify the Monitor Output for two channels to get familiar with creating a VI. When I chain two channels together the readings are not correct. The orginal Monitor Output works correctly.

 

I could use some assistance getting started with setting up the two channels and controlling the channels concurrently, setting voltages and taking voltage and current readings.

 

I have watched quite a few training modules.

On/ off state detection with serial device

$
0
0

Hi everyone/ anyone,

 

I am writing a program in LabView and I need to get a signal from a pump via  9- pin serial cable.

 I just need to know if the pump is running or not running so I can shut off a heating element if the pump is not running. I am just wondering how to program this to extract just the on/ off portion of the digital signal.  I'm not sure what this would look like or wich VI's to use for this.  

The communication with the pump is fine and the case structure following the signal is fine but I'm not terribly familiar with the structure of serial digital signals so I don't know which part I need. The pump is a Masterflex L/S.

 

Thanks a heap,

 

JoMu

List box to pass test parameter to Instrument

$
0
0

I create a while loop.  Within the loop, I have a list box and a event structure.  Inside the event structure, I have put code to control a DC source.

I config the event structure to detect changes in list box.

When I run the program, it is always passing previous selection to the event.structure.

E.g. My list box has Voltage, Current.  When select Current, the Voltage is always passed. When select Voltage, the current is passed.

Am I doing the right thing?

Can u please recommend me the right way to pass current parameter from List box to event structure.

You may also recommend a completely different solution too :-)

rs232 cable between lockin SR830 and PC

$
0
0

Hi,

I have an lock-in Amplifier SR830 and I need to read data from SR830 (DCE, db25) to computer (DTE, db9).

I read the manual of lock-in and another tutorials, but can not understand, because I do not have experience this.

Please, I would like of an exemplo which show me how I can do a cable: SR830 (DCE, db25) <-> computer (DTE, db9).

Thanks any infor.
Acosta.

PCMCIA-GPIB support for Windows 7 and 8

$
0
0

I understand the PCMCIA-GPIB adapters are legacy devices, however, for some of us who still have these adapters and platforms with Windows 7 or 8 on them, it would be very useful to see a supported release of NI488.2. I haven't been able to get any version of the software to work yet (I'm running Windows 7 Professional 64-bit) with this adapter. If anyone has a workaround available, without having to install XP or using a virtual environment, please share. If NI still sells this product, then it would seem appropriate that it should be fully supported.

 

Current use: Data collection via Agilent IC-CAP, Silvaco UTMOST IV, and MATLAB from parameter analyzers, LCR meters, and network analyzers for on-wafer probing.


Visa resource name PXI instrument handle

$
0
0

I have different instrument that can be used as DMMs, PXI-4071, Agilent 3458A, Keithley 2000, HP 34401A. I would like to have a piece of code that is as generic as possible that can use any of these DMMs. The PXI-4071 is the odd one out because it isn’t handled by a VISA resource name. Instead it needs an instrument handle. Is there a way to have one reference to any potential DMM? Having two types of instrument reference is going to clutter my block diagram especially as my application gets larger.

Using GPIB-RS232 converter with an embedded application

$
0
0

Hi

 

I am quite new to GPIB, so this might be a rookie question :) Using my own embedded application I need to communicate with a couple of Agilent power sources to send commands and queries. I got a GPIB-RS232 converter from NI but I can't figure out from the online help wether I can directly write to the serial port attached to the NI GPIB-RS232 ans SCPI command. I would be grateful if you can help me out to find the documentation on how to communicate to several Agilent GPIB instruments connected to the NI GPIB-RS232 converter configured to work in mode S.

 

By the way, for testing I am developing the modules for my application on a desktop computer under linux using gcc c++ compiler.

 

Thank you!

 

 

hp 54120a

$
0
0

I'm hooked up to a HP 54120A and I can't seem to connect to it. I have sent it simple VISA-based queries and they all get timed out.  Max sees it as GPIB0::7 and I can select it as a device ID in LabVIEW. But I can't get it to listen or talk to me. Someone I talked to on the phone suggested that I toggle the TALK/LISTEN mode on the front panel. All I can see is a LOCAL button and nothing happens when I press it. I have a program that I wrote a year ago and it worked back then. But someone else was playing with the buttons on the scope back then and he's not here any more.

IP interface KNX

$
0
0

Hello, I have an IP interface KNX. Anybody knows how can I work with this in Labview? 

 

Thanks for comments,

 

 

Jenny

LeCroy read and writhe Osziloscope settings

$
0
0

Hey, 

 

I just started with using Labview. I am using the LeCroy LT374L Osziloscope and want to read and write the complete Osziloscope settings (like trigger level, offset and so on ) first read and save on the PC and later write them back into the Osziloscope. 

I am using Labview 2010 with the driver lcltxxxx, up to now I could not find the right VI to realize my idea.

 

Does anybody has such an Problem solved before or can help me with my Problem?

thanks,

 

Christian 

Viewing all 5663 articles
Browse latest View live


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