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

GPIB using .NET

$
0
0

I have LabView but not Measurement Studio.  I would like to write .NET programs to access my GPIB instruments.  I have found some tips for that which led me to http://www.ni.com/download/ni-488.2-3.1.1/3786/en/ .  Here you can download the NI-488.2 3.1.1 drivers which are supposed to have Visual Studio hooks and help built in and work with .NET 4.5.

 

When I try to install the downloaded file ni4882_311.exe, I'm told that I need .NET v1.1 in order to run the installer.  What??  I need an ancient version of .NET in order to install NI drivers for the latest version?  .NET v1.1 does not install directly on Windows 7 so I found an elaborate procedure from Microsoft which supposedly would install it, but that fails telling me there are "compatibility issues".

 

So how do I install NI 3.1.1 GPIB drivers for use with .NET 4.5 on a Windows 7 machine?


eurotherm 3216 labview error

$
0
0

Hello,

 

I recently downloaded the euotherm labview driver from ni.com and I am using this USB to RS485 converter  http://www.kksystems.com/english/html_files/product_pages/usb485.htm  for communication, unfortunately I keep getting this error when using both example VI's.

 

1. When I use the process value monitoring example vi
 
Error -1073807339 occurred at VISA Read in Eurotherm 32xx Series.lvlib:Utility MODBUS RTU Receive Message.vi->Eurotherm 32xx Series.lvlib:Utility Read From Register - Floating Point.vi->Eurotherm 32xx Series.lvlib:Utility Read From Register - Float or Int.vi->Eurotherm 32xx Series.lvlib:Read Process Variables.vi->Eurotherm 32xx Series Process Value Monitoring.vi

 

2. When I use the temperature control monitoring example vi

 

Error -1073807339 occurred at VISA Read in Eurotherm 32xx Series.lvlib:Utility MODBUS RTU Receive Message.vi->Eurotherm 32xx Series.lvlib:Utility Read From Register - Integers.vi->Eurotherm 32xx Series.lvlib:Utility Read From Register - Float or Int.vi->Eurotherm 32xx Series.lvlib:Configure Instrument Mode.vi->Eurotherm 32xx Series Temperature Control Monitoring.vi 

 

Can someone please help with this?

VISA C# .NET

$
0
0

Bonjour à tous,

 

Je viens vers vous parce que j'ai un problème de communication avec VISA que j'essaye d'utiliser en C#.

 

Je tente de communiquer via plusieurs modes de communication (série, GPIB, ethernet) entre 2 PC.

Seul le PC "esclave" m'intéresse puisque c'est sur celui-ci que je développe mon application WPF.

Je suis en attente de message du PC"maitre" via une liaison prédéterminée au lancement de mon application.

 

J'arrive à recevoir des messages mais je n'utilise pas correctement VISA puisque je n'arrive pas à faire en sorte que mon "ReadString()" s'arrête! A chaque fois j'arrive à une exception de type "timeout"!

 

m_Serial_Session = new SerialSession("COM1");
Fill_SerialSession(m_Serial_Session); //Je remplis tous les champs de ma liaison série (bits de données, parité, contrôle de flux...)
m_Serial_Session.EnableEvent(SerialSessionEventType.AnyCharacterReceived, EventMechanism.Queue);
Thread m_Thread_WaitData = new Thread(WaitForData_SerialRead);
m_Thread_WaitData.IsBackground = true;
m_Thread_WaitData.Start();



private void WaitForData_SerialRead()
{
      m_Serial_Session.WaitOnEvent(MessageBasedSessionEventType.AllEnabledEvents);
      try
      {
           MessageBox.Show(m_Serial_Session.ReadString());
      }
      catch (VisaException e)
      {
           MessageBox.Show("Délai dépassé depuis le premier élément reçu!");
      }
}

 

Je penses ne pas être très loin du but mais je n'arrives pas à trouver la fonction ou le paramètre à changer afin que tout fonctionne!

 

J'attends votre aide...

GPİB configuration

$
0
0

Hi

 

İ have just received a system with GPİB card attached. İ tried to access oscilloscope with it but no device was detected. When i checked device manager i saw error( pic 1 and 2 attached) and when i looked up at Measurement & instrument exploror i do not see any GPİB card under interfaces (pic 3). İ am told that previously the system was connecting. Drivers seem to be installed. What should i do?

 

Regards

 

Hamza

how to clear oscilliscope screen with iviscope driver

$
0
0

I would like to have the scope clear its screen prior to starting a new aquasistion.  I have not been able to find a function to cause the screen to clear.

 

My reason is because my program make repeated runs to capture the same/similar data.  So if it fails to trigger it is not very clear because the previous trace is still showing.  The program works fine though and doesn't pull in the old data.

How to make Labview driver for USB devices that do not provide remote control commands?

$
0
0

Hi, everyone. I am using an NEC IRV-T0831C infrared camera to snap some experiment results. The manufactor provides a software (installed on a labtop) to control and read data from the camera through a USB port (there is only one USB port on the camera for data communication). However, the mannual and the manufactor do not provide any remote control command lists. That is, I could not remote control the camera through the conventionally way such as "VISA write" and "VISA read".

 

But as long as the software can control  the camera, I believe there must be some way to use Labview to fulfill the same remote control functions as the software does (at least theoretically). Could anyone help me about this issue, for example, how to listen to the USB port, receive the command from the labtop, and receive the response from the camera?

 

If this could be done, I could use the software provided by the manufactor to control the camera first, and at the same time, listen the USB port, and maybe possible to find out the useful command I wish to use.

 

Thank you!

Is there any reason why I should not just be going straight to usb over a cable in this situation?

$
0
0

I have this serial-usb box currently hooked up to some hardware: http://sine.ni.com/nips/cds/view/p/lang/en/nid/14582 , why would I not just nix the box and go straight to the pc with a serial to usb cable? I came in to this project after all of this has been set up and I don't get why the previous engineer did it this way. He wrote a custom program to parse the data as well, instead of using the NI VISA blocks, or the serial communication.

 

Alternatively, I have a voltage conversion table for my serial communicating device, and an ni BNC style daq, can I wire a bnc to pin 3 on the serial port and get my information to the daq that way?

Missing NationalInstruments.DAQmx.DLL

$
0
0

Hello,

 

I'm using VB .NET with Visual Studio 2010.

 

I've downloadad the lastest version of NI-DAQmx, but when I call the NationalInstruments.DAQmx.DLL library the program says that component can't be found.

 

Where can I find this library?

 

Thanks.


Kepco BOP 36-12M / BIT 488-B Lockup/freeze

$
0
0

Hello,  I am running continuous control and queries to a Kepco BOP 36-12M power supply with BIT 488-B interface.  When I run it in a monitor/control loop alone everything is fine, indefintely.  However when I combine this with other monitor loops queriying other devices on the bus, I eventually get a hard lockup of the Kepco device -- this can happen anywhere between 15 minutes to hours later.  the Kepco will no longer even respond to even an IDN? query once everthing else is turned off.  When this occurs, the only solution seems to be to power-cycle the Kepco.  I have captured output using a bus analyzer and see timeout events for many instruments including the Kepco which seems a nominal case since the system is using asynchronous transactions.  Anyboday have issues like this?  I am using Windows XP with LabView 8.6 and the accompanying NI tools.

PCI-GPIBで動作するがGPIB-USB-HSで動作しない

$
0
0

お世話になっております。

 

この度 従来 PCI-GPIBでを使用してVB 2005 express edition  Win XPにてプログラムを作成して 

オシロスコープと電源、電子負荷装置を制御し、ICを評価する環境を構築しておりましたが

 

システムの更新(PCi入れ替え、新規計測器と旧計測器の共存)のため

①PCI-GPIB(2000年製)→GPIB-USB-HSへの変更

②VB 2005 → VC 2012(必要であればVisual studio 購入)

③オシロスコープ 旧→最新

 

と段階的な更新を検討しておりますが

 

現在①の段階にありGPIB-USB-HSを購入しPCI-GPIBを取り外し、GPIB-USB-HS付属のCDにて

   すべてのドライバ類を最新としたところで

   プログラムのビルドを行ったところGPIB-USB-HSでは動作いたしませんでした。

Mesaurement &Automation Explorerではすべての計測器を認識できております。 

   PCI-GPIBでは動作しました。

 

GPIBのアドレスがまずいのかと思い一度リセットしてPCI-GPIBで動作していたときと同じ

アドレスを0としたのですが変化がありません。

 

PCI-GPIBとGPIB-USB-HSとで何かプログラムのリンクをするDLLなどに違いがあるのでしょうか?

 

久しぶりにシステム(プログラム)を組むためかなり作成当初のことを忘れており

ほぼ初心者状態でありご迷惑お掛けします。

 

 

Lab Viewなどが使えれば比較的簡単に構築できるかと思いますが

オシロは問題ないのですが電源(R6244 ADC社製)と電子負荷装置(EML-05B 富士通電装)が古くドライバが期待できない状況です。

(特に電子負荷装置が古いです。)

 

varian pwp-50-101274-00

$
0
0

is there a board equivelant to varian pwp-50-101274-00 and where to find one

Does PCI-6534 work on Win7 32bit with DAC (Legacy) 7.5 and if so, NI-VISA or NI-PXI

$
0
0

I have a PCI-6534 DAC installed in a Windows 7 32bit machine. I've installed:

 

NI-DAQ (Legacy) 7.5.0

NI-VISA 5.4.1

NI-488 3.1.2

 

PCI-6534 shows up in Measurement & Automation Explorer. However, the 6534 is not showing up under VISA and I can't communicate through VISA. The only VISA devices that show up from Python are the serial ports. I'm told that this SHOULD work by other engineers. It that is true, what am I doing wrong? What can I check next?

 

I'm beginning to think VISA is not supported on the PCI-6534. If not, how do I communicate with this card from Python 2.7.6? Is there a DLL or through NI-PXI?


Visa-pocket logger

$
0
0

Hola, soy nuevo en el manejo del software labview. Trabajo en un pequeño laboratorio solar de mi universidad. Utilizamos un piranómetro (pocket logger) para obtener la información de la irradiacion solar. Con el objetivo de automatizar el sistema, quiero conectar via USB a la computadora y obtener los datos del aparato. Ahí nacen los problemas, no se como hacerlo por medio de "VISA". ¿Alguien que me pueda ayudar?

 

Hi. I am new with labview software. I Work in a small solar lab at my university. We use a pyranometer ( xr-440 pocket logger) to get the information of solar irradiation (millivolts). With the objective to automate the system, I want to connect via USB to the computer and get data from the device. There problems arise, do not know how to use "VISA". Anyone who can help me?

 

 

Pocket logger data:

http://www.pace-sci.com/data-logger-xr440.htm

RTS output and Visa write not in sequence

$
0
0

I am asserting RTS, writing and unasserting RTS, as shown below. unassert/assert state doesn't matter, RTS write is happening out of sequence.

RTS.png

 

 However on the scope I can see write starts, then RTS is asserted and quickly unasserted before write completes. I tried synch and asynch write and just put a sequence frame to no avail. VI is attached. Please help. Thanks. 

 

File transfer from network analyzer to computer via USB

$
0
0

 

I am attempting to write some LabVIEW code that will allow me to transfer information from my Agilent E5071 network analyzer to my computer via USB. The file is an instrument state file (.sta extension). I can specify a save directory for the network analyzer using my LabVIEW code. However, I am at a loss for how to transfer this data via USB to C:\StateData on my local computer. I have attached what is coded so far. I'm not sure how to proceed with using the VISA Read. Any ideas or confirmed tested VIs?


Is it still possible to purchase Cal Exec?

$
0
0

The software is no longer listed with the hardware on the page to buy them from.

how to connect variable frequency driver with NI 9263

$
0
0

Hi guys,

 

I have a variable frequency driver to control brushless dc motors.In manual it is explained how to control the driver with a potentiometer. There is no problem for controlling with a potentiometer, however, now, I want to control it with NI 9263 +/- 10V analog signal generator. At this point, I confused about how to connect NI 9263 to the driver. It is explained how to connect it with a potentiometer as below,

     

  1) First ,you link the COM to EN

  2) and link the COM ,.SV ,5V to the potentiometer

  3) when you link the power , the scrn will show the P000then you need use the _ button change the 01 to 00

 4) then you will use the potentiometer control the speed

 

I have attached a photo of the driver.

 

edit: "SV" abb means "analog signals" written in the manual of the driver..

 

Catch error when creating new device in .NET

$
0
0

I have a .NET Windows application running fine, using C# in Visual Studio with the NI 3.1.2 drivers.  This requires 'namespace NationalInstruments.NI4882'.  I create a new device using 

    device = new Device(boardID, (byte)gpibAddressNumericUpDown.Value);

to access the GPIB device specified in gpibAddressNumericUpDown.Value, and I'm able to read and write from it just fine.

 

Now how do I catch the exception if I put the wrong address in gpibAddressNumericUpDown.Value?  I've tried 

    try {

        device = new Device(boardID, (byte)gpibAddressNumericUpDown.Value);

 

    }

    catch {

    }

and I don't seem to ever enter the 'catch' block.  Object Browser for the NI Device object says something about "exceptions", but I don't know how to check for them or if that's what I want.

 

Thanks for any help!

Gerrit

Modbus ASCII software protocol with 8 data bits

$
0
0

Hi All,

I must communicate (serial) with a Handheld 3016 device (a particle counter from LightHouse). It uses Modbus ASCII software protocol with 8 data bits.

Every Modbus ASCII software protocol, I have been looking through use 7 data bits.

Any kind of Modbus LabVIEW libraries (old one like nimodbus.llb or new one like ni_lib_modbus_library-1.1.5.38.vip) let the chose to “tag” RTU (8 data bits) or ASCII (7 data bits).

*** There is nowhere ASCII with 8 data bits ***

I always get a kind of “framing error”... obviously since I can't set the com ok...

Any advices??

Thanks a lot for any help

Vids65

MAX and Async Read/Write

$
0
0

Didn't MAX use to have an option to perform async read and write in the "Communicate with Instrument" window? I'm presently using Measurement & Automation Explorer 5.4.0f0. Please explain how I can use MAX to start and terminate async read and write calls.

Viewing all 5668 articles
Browse latest View live


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