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

4 wire sensing erratic behavior (LabView & Keithley 2400)

$
0
0

I am currently attempting to take a 4 wire measurement sourcing current with a Keithley 2400. However I keep having very erratic measurements. I am currently measuring a 150.5nm Silver thin film. I am worried that the impedance of the device may not be high enough because I keep reaching compliance or the current is leaking out of the probes. When it is in the 2 wire mode the program produces expected values, but in the 4 wire it is difficult to obtain a steady reading. Please help.

 


NI-PXI-GPIB - communication - Change in data received compared to actual data

$
0
0

Hi,

We are using NI-PXI-GPIB card in one of our systems for interfacing with nearly 20 differently addressed instruments. The GPIB card is fit into a cPCI backplane, controlled by the Advantech cPCI Processor (MIC3358), which controls the full system. The GPIB driver Ver 2.4.0.3500 is installed for the GPIB card accessing. All the instruments are GPIB interfaced through GPIB IEEE 488 cables. During our testing with the Agilent Instrument Counter timer (53131A), the data that is displayed in the Instrument, is not received the same in the software. Eg : Actual value displayed:50442.7Hz, but Received value:0.0000504227Hz. We have also spied the GPIB commn using NI Spy software, where we could not trace what is the value received. We have carried out the following, but still this decimal point variation issue remains unsolved.

 

1. Replacement of the Counter timer (53131A) instrument with another of same model

2. Replacement of GPIB cable

3. Replacement of NI-PXI-GPIB card

 

FYI : The NI-GPIB pcb had the details as : ASSY183923H-01 DC1402 UL94V-0 183925C-01

VISA troubleshooting with puTTY

$
0
0

I am attempting to talk to a device through USB but it acts as a COM port/ serial connection through a driver.

 

I am writing commands to the device, and the the bytes in port vi shows that bytes are being written to the device, yet the device does not respond at all.

I can easily operate the device through putty though.  I know the device works as I have confirmed it through an oscilloscope.  What else should I troubleshoot?  Or, are there other easier ways to write/read to a serial port other than VISA

 

I've attached a standard writing VI I have also tried with no luck.  Should I try to continue to use VISA, or can I emulate puTTY on labVIEW?

 

Error -1074001919 occurred at Read Spectra.vi using HR2000

$
0
0

Hello!

I'm using LabVIEW 2011 (32-bit) on a Windows 7 computer. I downloaded the Ocean Optics 2000 4000 driver and installed the driver as described in the Ocean Optics 2000 4000 Instrument Driver Readme.
So Shawn, I think I use the Driver Revision 1.3.2  (Original Release Date: 11/12/2009 , Current Revision Date: 03/15/2013).

I installed the driver for LabVIEW 2010 ( http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7833BD4A31DA1274E04400144FB7D21D) because obviously there exists no driver esspecially for LabVIEW 2011.
Is this the correct way to do it, or should I install the driver version for LabVIEW 2012?

When I use my HR2000 sectrometer I struggle with the OceanOptics20004000LogSpectrum.vi and I get the following error message (also attached).

Error -1074001919 occurred at Read Spectra.vi
Possible reason(s):
Instrument not synchronized properly. Power cycle the instrument.

When I unplug the device, plug it in again and click on continue nothing happens. The VI can't read the spectrum.
An Excel file is produced, but only contains the header (also attached).

The strange thing is, that the example file AquireContinuousWaveform.vi works and I can see the spectrum.

Do you have any idea how to fix this? Do you think it's a problem with the driver?

Thanks for any help!
Christina

usb845x error -301742 slave did not ack

$
0
0

I am getting the error -301742 even though the slave does acknowledge the address. The application worked last week. I shut down the computer over the weekend and now it does not work.

Reverse polarity test using Programmable Sorensen Power supply

$
0
0

Can we conduct reverse polarity test for sorensen Programmable power supply controlling using Labview. ?. 

Plese advise. 

nationalInstruments.common.dll 8.6.20 needed

$
0
0

 I am working on a project which have been developed by the others , I met a problem with the nationalInstruments.common.dll .

 

The type 'NationalInstruments.ComponentBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'NationalInstruments.Common, Version=8.6.20.131, Culture=neutral, PublicKeyToken=4544464cdeaab541'.

 

so I think I need the right dll version to complete my work , can any one tell me where to find it?

trouble with Serial time delay

$
0
0

hi,i need help.

my problem is that there are no output and input parameter is changing very fast,but subvi has results only when the subvi runs in the process of highlight.

i think it might because of time delay,but i don't kown how to correct it.

 

 

thank you very much.


Communication error with Keithley 2602 by RS232 - USB interface

$
0
0

Hello Everyone:

 

I am trying to control a Keithley 2602 Sourcemeter using LabVIEW v.8.2, however I am having trouble getting them to communicate. I am fairly new at LabVIEW and have not found the user manuals to be of much help since they specify that the process for this step is different depending on the equipment you are trying to connect to.

 

I have the visa updated and install the driver in the labview folder. I first using GPIB to communicate with Keithley which run great!  But I have a chassis without GPIB port and I need to use RS232 to achieve that.

 

So basically I am using straight through RS232 direct connect to NI but did not work,and I can't find the corresponding port in NI-Max. So I tried using RS232-USB then finally see the port shows.

 

but still, I have communication error. Please give me some advises. Appreciated it.  ( I confige the Keithley communication method to match the setting in PC, plus I use the right port to interface)

Interfacage module GPIB-USB-HS avec Devc++

$
0
0

Bonjour,

 

Je souhaite piloter un multimètre via le module NI GPIB-USB-HS, le tout piloter par un programme sous DevC++.

 

J'ai télécharger et installer le pack "ni4882_311.exe".

 

Lorsque je charge le programme d'exemple "4882query.c" et que je l'associe à un projet auquel j'incorpore "ni4882.h", je ne peut compiler le programme.

 

J'obtiens un log de compilation comme celui ci :

 

Compilateur: Default compiler
Building Makefile: "C:\Users\guboucha\Desktop\Test GPIB\Makefile.win"
Exécution de  make...
make.exe -f "C:\Users\guboucha\Desktop\Test GPIB\Makefile.win" all
g++.exe 4882query.o  -o "Test.exe" -L"C:/Dev-Cpp/lib" -L"C:/Users/guboucha/Desktop/Test GPIB" -L"C:/Program Files (x86)/National Instruments" -mwindows   

4882query.o(.text+0x32):4882query.c: undefined reference to `SendIFC@4'
4882query.o(.text+0x3a):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0xcc):4882query.c: undefined reference to `FindLstn@16'

4882query.o(.text+0xd4):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x103):4882query.c: undefined reference to `Ibcnt@0'
4882query.o(.text+0x140):4882query.c: undefined reference to `DevClearList@8'
4882query.o(.text+0x148):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x19e):4882query.c: undefined reference to `SendList@20'
4882query.o(.text+0x1a6):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x220):4882query.c: undefined reference to `Receive@20'
4882query.o(.text+0x228):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x254):4882query.c: undefined reference to `Ibcnt@0'
4882query.o(.text+0x28e):4882query.c: undefined reference to `ibonl@8'
4882query.o(.text+0x2ab):4882query.c: undefined reference to `Iberr@0'
4882query.o(.text+0x2bf):4882query.c: undefined reference to `Iberr@0'
4882query.o(.text+0x2c6):4882query.c: undefined reference to `Ibsta@0'
4882query.o(.text+0x304):4882query.c: undefined reference to `ibonl@8'
collect2: ld returned 1 exit status

make.exe: *** [Test.exe] Error 1

Exécution terminée

 

J'ai lu sur divers forum qu'il faut utiliser des fichier .dll ou .obj mais je ne sais pas bien quoi en faire.

 

Si quelqu'un pouvait m'eclairer, je lui en serais reconnaisant.

 

 

Merci d'avance

 


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

 

PC sous Win 7

Labview 11 installé

DEVC++ 4.9.9.2

NI 488.2 software failing Troubleshooting Utility

$
0
0

I am unable to control my instruments using my known good software and a known good GPIB-USB-HS controller.  I am using Teststand to call VB6 and VB.NET code which is working on other PCs.  I am running Windows 7 and using NI 488.2 version 2.8.

 

NI MAX identifies the controller and my instruments.  I am able to communicate with my instruments through NI MAX.  However, the Troubleshooting Utility shows that the software is failing. 

 

troubleshootingUtility.png

 

The "Help" button provides the following:

 

Unknown NI-488.2 Software Error
An unknown NI-488.2 software problem has occurred. Try the following to resolve the problem before calling National Instruments:

Restart your system.
Run the NI-488.2 Troubleshooting Utility again.
If you still have the problem, try the following:

Repair the NI-488.2 for Windows software.
Restart your system.
Run the NI-488.2 Troubleshooting Utility again.

 

Obviously, these steps did not solve the problem.

 

My software is unable to get a handle to the controller and my function calls do not populate anything in NI-SPY.

 

I tried installing the latest 488.2 version (3.1.1) which did not help.  I tried uninstalling all NI software and then re-installing only the 488.2 software.  That did not help either.

 

Any thoughts?

HP5350B not responding to GPIB commands

$
0
0

Hello,

 

I have been using the HP5350B, an old HP frequency counter for a remote control application. I am using the GPIB commands to send and receive messages from the instrument. I have attached the screen shot of the code which uses a GPIB read block to read the value from the instrument. Earlier when I used a GPIB-USB-HS connector I was able to get the desired values using this code. Recently I got a PCI-GPIB card which I installed in my computer and ever since have been trying to read measages from the instrument with this card in the computer, but I have not had success at reading the value from the instrument using the same code. I have been getting the error shown in the attachement. The only difference I found between using the GPIB-USB-HS and PCI-GPIB card is the change in the address of the instrument from GPIB1::7::INSTR(for PCI-GPIB card) to GPIB0::7::INSTR (GPIB-USB-HS) which showed up in NI MAX.

 

Now when I connect the GPIB-USB-HS back to the computer and try communicating with the device with the same code I am unable to reproduce the results I was getting earlier. I would really appreciate any comments in helping me resolve this issue.

 

Thank You,

 

Vivek

intermittent 'empty' reply to measurement request EABO (6)

$
0
0

Hi,

 

My system is a Dell PC running Windows XP Professional (service pack 3) and I am using a PCI GPIB card to communicate with 2 instruments. I am using the NI tools version 3.1.1

 

I'm having some problems understanding an intermittent problem I have with an electronic load (N3300A) which I control using GPIB. From time to time - so not always - I get a timeout exception from the .NET VISA library: 'Time limit exceeded to complete operation'. I've put the tracer on it and I see the following:

 

 2013-09-19_111728 timeout.png

 

The GPIB instructions I sent request a measurement from the device. Very shortly after sending the command, I receive what looks like an empty string (Receive(0, 0x0005, "", 20 (0x14), STOPend (0x100)).

 

Is this an effect of a timeout? But it arrives way before the 10s timeout I set are over. I could increase the timeout, but I fear that would not help.

 

Or is VISA library not happy with the reply that was sent (an empty string)? And expected more data, which didn't come. After which it raised the error. But that does not seem to be what this trace is suggesting. Can someone please clarify? This error tends to happen the first time my program is run; after that it doesn't happen as often.

2 gpib controllers on 2 different computers controlling one bus (not at the same time)

$
0
0

Is there a way to achieve this whithout any conflict between the gpib boards ?

 

How to configure these gpib boards ?

 

Thanks

telnet03 = InetTelnetOpen ("192.168.0.3", 23, 0);

$
0
0

 

To Whom It May Concern,

 

Telnet works fine but, I get the following error when running the following function: telnet03 = InetTelnetOpen ("192.168.0.3", 23, 0);

 

NON-FATAL RUN-TIME ERROR:   "Gateway.c", line 448, col 24, thread id 0x000011AC:   Function InetTelnetOpen: (return value == -22 [0xffffffea]). Cannot connect to telnet server.

 

If I rerun the function it works fine,"telnet03 = InetTelnetOpen ("192.168.0.3", 23, 0);"

 

Then some times the following function locks up "result = InetTelnetRead (telnet03, telnet_read_buffer, bytes_read, &bytes_read2, 250000);"

 

Ron


Sicronización LIA stanford research 830 y equipo de bajas temperaturas

$
0
0

Hola!

 

Estoy tratando de sincronizar un circuito de medida entre un LIA stanford Research y un equipo de bajas temperaturas; el VI del LIA lee datos y además envía una señal escalon como se muestra en el adjunto; el VI del equipo de bajas temperaturas es el suministrado por el fabricante (también está adjunto), los archivos de control estan dentro d ela librería y son: SMS config.vi SMS dsplay.vi;  la idea es conectar el programa que yo desarrollé del LIA con el del crióstato. He tratado pero me ha causado una enorme dificultad, si alguien puede darme luces al respecto estaría muy agradecido.

 

Saludos,

PyVISA, USB-6225 in WindowsXP SP3, ActivePython 2.7.2.5

$
0
0

I just bought a brand new USB-6225 with the SCB-68A 68-Pin Connector Block box. I have a question about how to use this device in Python with PyVISA. The problem is that the USB0 device does not enumerate and VISA Interactive Control cannot read responses from it.

 

I can view the USB-6225 in MAX - it shows up both as 'NI USB-6225 (Mass Termination) "Dev1" ' and as 'USB-6225 (Mass Termination)'.

 

In XP's Device Manager, it shows up under "Data Acqusition Devices" as "USB-6225 (Mass Termination)".

 

I can fire up the Test Panel for the USB-6225 and view the signal I am injecting into Dev1/ai1. It's a simple 1 Hz 10Vpp sine wave. RSE, On Demand. Runs great! The software displays the sinewave.

 

In order to use the USB-6225 with Python, I installed NI-VISA 5.4 and the NI-VISA Runtime 5.4. PyVISA 1.4 was also installed.

 

Then I used the NI-VISA Driver Wizard to create an XP .inf file. I used a prefix string of "usb6225". The Driver Wizard installed this XP driver. In MAX, the "NI USB-6225" and 'USB-6225 (Mass Termination)' entries were replaced by a new entry, "MSeries USB 6225 (Mass Termination) USB0::0x3923::0x7330::018C1F47::RAW'. I understand that the numbers represent the vendorID, Model, and Serial Number. A new item in XP's Device Manger shows up as, "MSeries USB 6225 (Mass Termination)" under "NI-VISA USB Devices".

 

In MAX, I left-click on the new item and the middle pane shows the properties of this device. Its status is "Present". So far so good, I think.

 

However, this USB device will not enumerate when used with PyVISA in a Python script. The computer's two COM and one printer port show up, but not the USB device.

 

I can fire up NI's VISA Interactive Control program. The USB0 device shows up under "USB RAW Resources" as "USB0::0x3923::0x7330::018C1F47::RAW". However, my Python script doesn't see it.

 

The output of the script to show the enumerations of the devices is as follows:

 

['ASRL1', 'ASRL2', 'ASRL10']
['COM1', 'COM2', 'LPT1']

 

So, as you can see, the PC's standard ports show up, but USB0 does not.

 

Here is the Python script ("enumerate.py") :

 

------

 

from visa import *

my_instrument = get_instruments_list(0)
print my_instrument
my_instrument = get_instruments_list(1)
print my_instrument

 

------

 

Is there something I'm missing?

 

In VISA Interactive Control, when I double-click the USB0 device a new window pops up. This new window allows me to 'talk' to the device and test it out, etc.

 

Under Input/Output, Basic I/O tab, I select the command, "*IDN?\n" and hit the "Write" button. The "Return Data" Window shows "Write Operation (*IDN?\n") No Error". The big window in this applet shows: "Return Count: 6 bytes".

 

Then I hit the "Read" button, the "Return Data" window shows "Read Operation Error VISA:  (Hex 0xBFFF003E) Could not perform operation because of I/O error."

 

Then I hit the "Clear" button and it returns "Device Clear Operation No Error".

 

Then I hit the "Query" button and I get the same error as before.

 

I tried both 1024 bytes and 6 bytes in the "Bytes to Read" selection.

 

So, I'm wondering if this device isn't set up properly, PyVISA doesn't support this unit,  or this brand-new unit is maybe broken.

 

Is there a step I'm not doing? Is there a problem with the device or the programming environment?

 

 

Thanks in Advance.

NI 488.2 Install in Ubuntu 13.04

$
0
0

Are there any plans on supporting Debian based installations? I want to use Ubuntu and Raspberrypi for my instrument control and automation.

framing error when trying to read large amount of data. (between 2-pc)

$
0
0

i've got  framing error when trying to read large amount of data. And setting the buffer size didn't help me. any suggestions ?

OceanOptics USB2000+ VISA read problem

$
0
0

Hi,

I am having problems communication with my Ocean Optics USB2000+. I use the drivers from the NI webpage.

http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=16709

 

 

The driver for the spectrometer is the one from the NI drivers, so I can see (and talk?) to the device via NI MAX. 

The problem comes when I try to get a spectrum from the supplied examples using the "Acquire multiple" or "Acquire Continuous waveform". 

 

When I use the supplied drivers from OceanOptics, and their software oceanview, the device works as it should.

 

When setting up the connections and initializing the device there do not seem to be a problem, the problem comes in the "Read Spectra.vi", where the VISA read times put before it can read the 512 bytes (it also fails for 1 byte and other).

 

ERROR:

Error -1073807339 occurred at VISA Read in Ocean Optics 2000 4000.lvlib:Read Spectra.vi

Possible reason(s):

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

 

 

 

I have tried running an IO trace on the problem, the file is attached.  

 

I have tried different solutions found on the web, but none has seemed to work. 

 

I hope you can help me solve this problem.

 

Regards

Jorgen Houmoller. Denmark

Viewing all 5670 articles
Browse latest View live


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