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

driver d'un analyseur de spectre ESN R&S

$
0
0

Bonjour , je cherche connecter un analyseur de spectre ESN de R&S à  qui a une gamme de fréquence de 9KHZ à 1000 MHZ ( c'est un peu ancien) à un pc  afin que je puisse le commander à distance , mais malheuresement j'ai pas trouver le driver convenable . Veuillez m'aidez à trouver les drivers pour cet appareil


pid control in producer/consumer mode ?

$
0
0

Hello guys,

 

Could i use pid control in producer/consumer mode ?

Now in our lab, we use pid control the fuel pressure in producer/consumer mode.

I put the data acquisition in the producer loop and the pid control in consumer mode.

I found there will be delay between the value acquired in the producer loop and the value sent to pid.

 

Is  that because there are delay between the producer/consumer ?

 

Thanks.

 

communicating with eurotherm 2704 via RS485

$
0
0

Hi There,

 

I'm trying to develop an application to control and communicate with 5 Eurotherm 2704 controllers on the same bus, the program works with RS232 but I cannot get it to connect via RS485, I have all the correct modules installed in the Eurotherm unit and I have tried every concievable wiring configuration, loopback tests via MAX show that the port is working

 

eventually I hope to be able to connect to a cRIO-9068 unit, however I'm unable to establish comms, I'm thinking it may be a voltage level issue, has anyone else successfully connected a 2704 controller to a cRIO unit of any type via RS485?

 

is there any specific issue that anyone is aware of?

 

many thanks

VC++ and NI488.2

$
0
0

Hello,

 

I have installed NI488.2 Version 3.1.2.  I am using VC++ 10.0.

 

From the NI-VISA Manual, I have typed out the code below.  When I compile it, I get this error:  error LNK2019: unresolved external error symbol_viOpenDefaultRM@4 referenced in function_main.  This only happens after I include the status = viOpenDefaultRM(&defaultRM); line.  Does anyone know why this is?  I am not sure which library I am missing or how I would link to it.  However, I don't have any of the .obj or .lib files that I read on other forums.  I am also using Windows X 32-bit.

 

#include <stdio.h>
#include <Windows.h>
#include "visa.h"

#define MAX_CNT 200

int main(void)
{

    ViStatus status;
    ViSession defaultRM, instr;
    ViUInt32 retCount;
    ViChar buffer[MAX_CNT];
    
    status = viOpenDefaultRM(&defaultRM);
    if (status <VI_SUCCESS){
        return -1;
    }
            
 
    
}

GPIB-ENET/100 works in MAX but cannot reconfigure IP Address

$
0
0

I have been having a very frustrating problem happening with my GPIB-ENET/100.  I can connect to the device and communicate with instruments but I need to change the IP address of the unit.  The ethernet configuration utility cannot find the device, even  though I am in the same sub domain and can ping the device with no issue. (yes I am using a crossover cable)

 

Also, MAX will not let me delete the device.  The option to delete is greyed out.  This has happened with more than one unit now.

 

I tried a factory reset on one unit, but now I cannot connect to it via a crossover cable, as it defaults to DHCP mode.  

 

Please give me some better hints at a solution than the manual.

NI-VISA driver wizard and SCPI command

$
0
0

Hi,

 

I had a go with a NI-VISA driver wizard. I wanted to create a driver for MH3114 DAQ. Wizard went trough very smoothly, and the driver has been installed.

 

However when I did *IDN? under MAX I've received an error.

 

Does it mean I have to create/implement any SCPI command? 

 

How the wizard is intened to work?

Pilot Agilent 33120A with Labview

$
0
0

Hello,

 

I have to pilot a multimeter Agilent 33120 A with Labview and my problem is that I downloaded drivers here :http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9066659CE034080020E748...

I tried to test one of the example given with drivers but it doesn't work, does anybody has an idea of the problem?

Do you think it could be about the interface because i'm using a RS 232 wire and I didn't see this type of interface in the suggested interfaces on the website i gave by the link.

 

Thanks

Using MAX to create VISA Names programmatically?

$
0
0

I am writing a program to communicate with some number of GPIB devices. Different tests use different numbers of devices. I have two NI GPIB-USB HS’s in the system. Sometimes the user will have 8 devices on each USB-GPIB (Agilent 34970A). Sometimes 7 on “0” and 1 on “1”, sometimes 8 devices on each, sometimes they only connect two or three devices.

For example:

Test “A” uses 8 devices defined as GPIB0::1::INSTR, through GPIB0::8::INSTR

Test “B” uses 8 devices defined as GPIB0::1::INSTR, through GPIB0::7::INSTR, and GPIB1::8::INSTR

Test “C” uses 16 devices defined as GPIB0::1::INSTR, through GPIB0::8::INSTR, and GPIB1::9::INSTR through GPIB1::16::INSTR

Test “D” some random combination of devices.

 

My problem as the programmer is to query the devices attached to the computer, use that information to create the VISA resource names, and compare that to the (user generated) config file that defines what test to run. My program needs to make sure that the proper hardware is attached, On and initializes properly. I need to do this programatically so it is invisable to the end user. This will be distributed .exe code that will used on dozens of test stations.

 

My actual question is…

How do I query the GPIB resources connected to my PC and us that information to create my VISA Resource Names? Do I use MAX or is there another way?

I would also like to know how to do this for other stuff. I often load an .exe on other computers that have the DAQmx card in a different slot or already has a PCI card in it  so, for example,  my Device 1 is now Device 2 and I have to create a new .exe.

 

I’m sure there must be tutorials on this somewhere but I couldn’t figure out what to search for.

 

Thanks,

Ross


how to control mult_instrument cooperating

$
0
0

Hi,

Now I can control a single intrument.Howerve, now I want to control two instruments which need to be cooperating.

one is Translation Stages,the other is oscilloscope.the  translation stage move some distance,then ask it if it is finished,if finished,let oscilloscope get a waveform,the ask if the oscilloscipe finished,the let the tranlation stages move some equall distance,again and again.

I need help how to do this. I don't know how to program so that they can be cooperating.

anything is helpful would be highly appreciated.

yong

123456.jpg

Visa light programming with USB DMX Interface

$
0
0

Hello!

 

We are students from Sweden and we are working on a project. We are using 4 RGB COB LED spotlights (programmable with 3 or 5 channel DMX512) in serial connection and these lights are connected to an USB DMX Pro Interface from Enttec. We run the driver from FTDI (its now a COM Port) and we want to program the lights (turn on/off and color selection in fast speed). The programming should be done in LabVIEW (version 2013). We know that we  have to use Visa to communicate with the USB Interface.

 

1. We want to start and we want to know the basic idea and structure of programming lights using LabView and Visa. How can this be done?

 

2. When using Visa how we communicate with DMX channels?

 

Any answere will be helpful to start.

 

Thank you!

 

 

Hexadecimals in ibwrt() GPIB

$
0
0

Hi 

i need to write the following Hexa Decimal data to my GPIB instruement.

4 ,4d ,6a ,f8 ,e6 ,f5,a9 ,2d ,e8,f ,6f ,26 ,f8

 

Curretly am using CVI for my Project

 

I have all above numbers in a integer array, i need a data on bus as like the attached analyzer data.

 

i tried converting these to char's and send in ibwrt() but i coudnt get ther Result as desired.

 

please do let me know ,how the above hexadecimal values can be write in GPIB bus as like the attached analyzer data?

also please let me know how the conversion can be done for char array for the above numbers.

 

Thanks in advance

 your help is highly appreciated.

 

Yellow Light on GPIB-USB-HS

$
0
0

I just installed my new USB interface. It appears in the devices and interfaces, but when I run scan for instruments, it just blinks (doesn't say no instruments found). Allow the ready light on the interface is yellow. I am trying this with a HP4418 power meter and I search the forum for some information. It said something about modifying the VISA passports, but the link to the information was broken.

Windows serial port device not visible NIMAX

$
0
0

I've installed a Radio Shack 'Gigaware' usb-to-serial port device that appears ok in Windows but doesn't not even show up in NIMAX.  What gives?  If it installs ok in Window's then isnt' that considered Plug and Play?  I also explicitly installed the latest version (Vista, although I'm Win 7)) but that doesn't change anything.  

Right now I've installed the latest Labview eval.  I've been using LV for years and never had a problem using non-NI serial ports so I'm not sure what to do and I'm not inclinded to run to Best Buy and buy a different brand just to see if it works.

thanks

Matt

ISA用GPIBカードについて

$
0
0

OSがPC-DOSの環境下でISA用GPIBカードを2枚挿入して、
ドライバーのインストールを試みたのですが、
1枚しか認識しませんでした。


この原因及び解決方法があれば教えて頂けませんか?

Drive NIR512 with Ocean Optics 2000 4000

$
0
0

Hi all,

 

I'd like to now if it's possible to drive the Oce Optics NIR512 (old spectrometer) with the USB 200 - 4000 driver.

I haven't found an .inf file for the NIR512, I'm thus unable to detect it with NI-MAX....

 

Has anyone managed to do it ?

 

Thanks !


Visa Error -1073807195 in GPIB Control

$
0
0

I copied a labview program developed in LabView 2009 Win XP to my new operation system Win 7 with LabView 2013. I got the Old Visa Open error as titled when I run it for controlling Agilent 4149A. The program works fine in LabView 2009 (Win XP) using same set of hardware. Would this be a compartibility problem? I'm using Agilent GPIB/USB interface. 

Thanks.

NI 6009 usb in UBUNTU

$
0
0

How do I Use NI 6009 usb in UBUNTU with NETBEANS, C++ Coding....!!

eurotherm 815P Temperature controller

$
0
0

Im trying to write a vi to control a Eurotherm 815P Temperature controller.

 

Attched below is a jpeg of  what a planned run of the temperature controller would be like.

The vi i would like to write should be able to accept the Dwelltimes, Temperature Setpoints(TSP) and Ramprates(RMP) and then start a run.

 

I would appreciate any help that can be provided on how to read and control the temperature controller Dwelltimes,Setpoints and ramprates.

 

Currently using Labview 2010. Eurotherm 815P/TC/4MA20/CRLY/

I Get 'VI_ERROR_INV_OBJECT'

$
0
0

Hello

 

I try to understand

 

Example 10-1 Page 10-6 in the NI-VISA User Manual

 

All what I do I

 

status = viOpenDefaultRM(&defaultRM);

 

status = viClose (defaultRM);

 

I got, when I Close the Handle 'VI_ERROR_INV_OBJECT'

 

If I do the whole Example I got a access violation

when I close it with

 

viClose (flist);

viClose (defaultRM);

 

If I don't close the handles the Application is running Properly,

but I don't thing that this is OK

 

 

write series of 0x0 in GPIB

$
0
0

Hi,

 

How  0x0 can be wriiten to GPIB, i have a requiremnt tro write a series of 0x0's.

i may not be able to use this "ibwrt(cpi_handle,\x0\x0\x0\x0,4)" since the 0's are dynamic from a file.

 

since the ASCII equilent is NULL am not able to stor it in char array as well

please suggest a way to do this.

 

Thanks in advance

Viewing all 5662 articles
Browse latest View live