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

Getting milliseconds precision from Keithley GPIB

$
0
0

Hello,

I used one of the VI's that I found in the forum for Keithley6517A.

The GPIB string that I get from 'GPIB read' is in the format of:  -0.023230E+00VDC,01:10:59.00,19-Sep-2014,+37266rdng#

 

There are few measurements of voltage or current within a second but the seconds in the string increase by 1, and the milliseconds always appear as zero.

I would like to get the milliseconds, it must be something simple that I'm missing...

Appreciate your help,

 


Getting milliseconds precision from Keithley GPIB

$
0
0

Hello,

I used one of the VI's that I found in the forum for Keithley6517A.

The GPIB string that I get from 'GPIB read' is in the format of:  -0.023230E+00VDC,01:10:59.00,19-Sep-2014,+37266rdng#

 

There are few measurements of voltage or current within a second but the seconds in the string increase by 1, and the milliseconds always appear as zero.

I would like to get the milliseconds, it must be something simple that I'm missing...

Appreciate your help,

 

Coding low level for SCB-68

$
0
0

I am looking to interface the SCB-68 with MatLab using Robot Racontuer. In order to do this I need to know the serial codes that I can put in my Python code to tell the SCB to turn on/off, send an output voltage or frequency, and other general input/outputs. I was looking through the user manuals and found a lot of hardware related things but not anything of how to code for it. Is there anyone who can help me?

How to operate a fiber optic switch with seria port?

$
0
0

I have a fiber optic switch ( 3 input channels and 1 output and serial port interface), how i can i operate it in labview? 

can not rename the visa resource name

$
0
0

Untitled.png

I use the keithley DMM 2110, connected to PC via USB. There is an error when I try to rename the VISA resource name. What does the error code mean? Any advice would be greatly appreciated.

Identify serial port channels

$
0
0

Hey guys,

 

so I have this very old D/A converter that is connected to an insdutrial food dryer. It runs over serial (using a USB-serial converter to make it run on my PC). Now using the basic read write I get an output, namely 'An=xxxx' where n is a number 1 through 16 and xxxx a four-digit number. I actually know there are 8 input channels and 8 output channels. I also keep getting certain hex strings at the beginning of my read output but no idea what they do.

 

The problem is, the company who made this hardawre no longer exists and I have no idea how to control this. My question is fist, is there anyway to separate the output into 16 different channels? And ist there a way to find out which commands work on this thing?

 

Name of the hardware is MIDAS, by DMP AG, a swiss company. Any help would be immensely appreciated.

 

Pic related, it's the output.

 

Thanks!

j

error from labview 6.1 with the system windows 7

$
0
0

I use Labview 6.1 vi to control a Tektronic oscilloscope and a BNC universal pulse generator via GPIB-USP connection. The vi worked very well with the system windows XP. The system was changed to Windows 7. Then one error message (Trigger signal is not recognized. Check the connection between 'Trigger out' and 'Aux in') comes whenever I start to run vi. The connection between 'Trigger out' and 'Aux in' works under mannual mode, so it is really ok.

 

Could the compatibility between Labview 6.1 and windows 7 be the reason? If yes, are there tricks to use Labview 6.1 on windows 7?  Thanks. 

 

Conrad USB 4x relay board

$
0
0

Hello,

 

I am unable to control the Relay-Board with Labview. There is a Silabs CP2014 Chip on this board, which controls the relays directly (GPIO). I tried to import the attached DLL in Labview, but how can I create a COM-handle like the manual suggests? Does anybody has some experience with this Chip and the mentioned DLL?

 

Thanks 

 

 


Glassman HV power supply resets

$
0
0

Hi,

 

I am experiencing difficulty programming a Glassman HV supply. I want to set the output voltage of the supply and cease communication with it. However, when I try and run the vi the correct voltage output is displayed on the PS but is set to zero when the vi is exited. My question is is there anyway that I can cease communication with this PS or do I have to continually communicate with the instrument in order to retain the desired voltage output?

 

Some background, I am using the PS as a stress voltage on a component for various amounts of time. The power supply works perfectly with it's supplied example vi. However this sample vi runs continuously and when I tried to copy the code in the sample vi I encountered the above problem. It seems there is a timeout issue with the PS.  

Measurement & Automation Explorer

$
0
0

コジコジと申します。

お手数ですが、ご協力お願いいたします。

 

ni488_312.exeを展開しますとバージョン5.5.0f0というMeasurement & Automation Explorerが起動できます。

現在、Measurement & Automation Explorerが4.6.2f1というバージョンが起動できるNI488の実行ファイルを

探しております。

どのバージョンのNI488をダウンロードすればよいのか、ご連絡いただけますと助かります。

 

以上、よろしくお願いいたします。

//

 

PCI-6221 resource name was set by MAX to PXI2::13::INSTR

$
0
0

Hi,

System Windows 7, MAX 5.50f0 , pci-6221, and SCB-68A

I am using an Advantec computer with window 7 32 bits.

MAX 14.0 was not able to show a resource name to this card but it was able to recognized that it was installed. So, after loading several version of NIDAQx,  NIDAQ980f3.exe worked, showing resource names and I was able to do all posible test and calibrations on the card..

I used "Visa find resource" to find the pci-6221 card resouce name but it is PXI2::13::INSTR. The card is directly set up in one of the available PIC slots in the computer.

I have read that the resource name for this card should be something like PCI::13::INSTR when it is setup in the PCI computer slot..

Are there any issues with this name after I program all the inputs and outputs in MAX? 

Will be this and issue when I use the config file created by MAX for the I/O when I call it from my program?

The bad news is also that I am using Labview 8.0 to create this program.

Cheers

Sergio

 

Erroneous zero byte at visa serial read

$
0
0

Hi All,

 

Currently trying to debug a problem i'm having with a Labview2011 VI and USB-485/2 device.

 

The setup has been simplified to have port 1 wire to port 2 in a 2wire-auto configuration. As described here:
http://digital.ni.com/public.nsf/allkb/D5CC369B3E3E6F0586256D1600563245

and here:
https://decibel.ni.com/content/docs/DOC-4169

 

Port 1 transmits an 8 byte message using visa-write then commences a 8 byte visa-read. (contained in a 10hz timed loop)

Port 2 is configured in a simple loop using the wait for byte visa event, then visa-read 8 bytes, wired directly into visa-write.

For Port 1 data transmitted, data received and the visa-read error code are logged to disk.

 

The setup sucessfully transmits are receives data without loss ... so the loop back is working..

 

However! every now and again, an additional zero byte is read from the visa-read of port1.

 

Almost all port 1 visa-read operations return the "1073676294" code (The number of bytes transferred is equal to the requested input count. More data might be available) which is fine. Very occasionally though, the error code "0" is return (operation completed sucessfully). This "0" code seems to be associated with the additional byte in the receiver.

 

This is causing a problem because it throws the command/response pairs of the intended application out of sync.

 

I have tried numerous buad rates, visa-read timeouts and transmit frequencies, the problem remains. Adding a visa-flush buffer prevents the error from propogating, but does not stop it occuring and upsetting the command/response logic.

 

Any ideas would be appreciated.

 

NaN value response. Oscilloscope dl9040 Yokogawa

$
0
0

Hi, 

 

I'm controlling an oscilloscope through GPIB. The oscilloscope is the DL9040 from the Yokogawa company. I'm using the driver provided from NI and it works properly. With the driver I can communicate with the instrument without problems (acquire waveforms, save image..). However, I have a problem trying to measure some parameters from the waveform like the frequency, duty cycle and others. 

 

My problem is that the response of the oscilloscope to any query is NaN. For example, if I want to measure the frequency of the trace 1 (wavefrom from channel 1) I have to write the followign command:

 

:MEAS:TRACE1:AREA1:FREQ:VAL?

 

And unfortunately the response is NaN. I don't understand this, because if I measure the frequency manually with the buttons of the instrument the frequency is 10 kHz.I don't know where is the error or what things I have to configure. I also have to say that this happens with any paramater to measure (Burst, Maximum, MInimum..).

 

I have attached the VI that I used to measure the parameters. 

 

measure_waveform.jpg

Any help is appreciated.

 

Thank you.

Find Listener problem with Keithley 6514

$
0
0

Hi all,

 

I have a very stupid problem which drives me crazy.

 

We use NI GPIB USB and PCI hardware to access our measurement instruments. The software access is done using the NI 488.2 API with C++ programs.

 

Now I have the problem, that *one* instrument (a Keithley 6514) often failes to answer *IDN? after a Find Listeners call. We have plenty of other instruments (also other Keithley instruments) that work fine with the attached code, but this specific one not.

 

The manufacturer claims that everything works well with his own GPIB adaptor and his LabView program:

http://forum.keithley.com/phpBB3/viewtopic.php?f=39&t=101301&sid=a6eb2eb9c952460521b74e1d69258473

 

I've attached a NI Spy screenshot that shows the problem.

 

* First I can communicate with the instrument

* After FindLstn, there are heavy communication problems (EABO)

* After some more ibdev and a lot of failed accesses, it works again

 

I'm not sure if there is something wrong with my code.

 

Please help!

 

Best regards,

Andre

 

QString queryDevice(int board, int address)
{
    int dev = ibdev(board, address, 0, T300ms, 1, 0);
    ibconfig(board, IbcEOT, 1); // set EOI at command end

    char buf[1024] = "*IDN?\n";
    ibwrt(dev, buf, strlen(buf));

    Sleep(50);

    ibrd(dev, buf, sizeof(buf));
    buf[ibcntl] = 0;

    ibonl(dev, 0);

    return QString::fromLatin1(buf).trimmed();
}

class Listener {
public:
    Listener(const QString &name_, int address_) :
        name(name_),
        address(address_)
    {
    }

    QString name;
    int address;
};

QList<Listener> findListener(int board)
{
    Addr4882_t s_list[32] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
                             19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, NOADDR };
    Addr4882_t r_list[32] = { 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
                              0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0, 0, 0 };

    SendIFC(board);
    FindLstn(board, &s_list[0], &r_list[0], 30);
    ibonl(board, 0);

    Sleep(50);

    QList<Listener> result;
    for (int i = 0; r_list[i] > 0; ++i) {
        int address = r_list[i];
        const QString answer = queryDevice(board, address);
        result.append(Listener(answer, address));
    }

    return result;
}

ETHERNET PROBLEM

$
0
0

Hello and Good day

 

I want to connect my pc (windows 8) to the oscilloscope TDS3012C and read all the reading at the labview

 

I already tried by using

 

 

1.NI MAX. and i cannot detect any connection from the scope (as attached)

2. By changing Ip address from the scope. when i first time operate this scope. it doesnt give any ip address. so i assigned any ip number as attached

 

I followed  step by step from this link - http://www.tek.com/support/faqs/how-do-i-connect-my-oscilloscope-ethernet-connection-ni-visa but in wins 8 there's is IPV4 and IPV6. i already change the ip adresses at IPV4. and open web address http://'ip address'/ but nothing came out.

 


NI MAX - implementation of preassure device

$
0
0

Hey,

 

I'm trying to implement two preassure measurement devices (DMP331 - BD/Sensors) with a range of 4 - 20 mA (-0,5 to 0,5 bar rel.) into LabView. They are attached to a NI-USB6008 which is plugged right into the Comupters USB-port. The current is correctly delivered to the USB6008 when manually meassured, but do not get through to the NIMax-task. The Values shown there are oscillating throughout the entered range (connection in on differential, resistance: 502 Ohm, measuring continuous captureing every 1k Values with a rate of 1k Hz) and are doing the same in my LabView front panel.

Is there anyone who can give me a clue on what i can try to fix that ?

 

Many thanks for every help,

Adrian

34970a

$
0
0
hello guys... Im new in labview, now i'm working in a project, i need use the agilent 34970A for acquisition data, i need voltage, current and resistor, but i don't know how to acommodate the VIs.. i dont know in that order... and then i have to graph in real time the datos acquisition..

GPIB Adress Setup VI for several Instruments

$
0
0

Hello,

 

I'm trying to setup 5 different measurement instruments for a project. What I want to do is to have a VI where I can select the GPIB adress for each of the instruments. 

 

Those adresses should be 'saved' so I can use my instruments for different measurements later. 

 

What is the best way to do this and how can I make a interface from this VI to other VI's.

 

Thanks!

GPIB-USB and HR1300 in LABview

$
0
0

I have NI GPIB interface, that is GPIB-USB. I have installed the GPIB-USB driver. I connect the GPIB-USB to the Hybrid Recorder 1300 Yokogawa. IN NI MAX GPIB-USB-HS is already there, but when I scan for instruments (HR 1300) , instrument is not shown. In connected instruments it shows Instruments not…

Do I need driver for HR 1300 also? I found ykhr130g driver for HR 1300 from NI. But it doesn’t respond with HR1300.

waverunner 610Zi

$
0
0

Hi!

I am trying to control Lecroy WaveRunner 610Zi connected through local network using Ethernet cable (not cross Ethernet cable which is recommended if connected directly to PC).  I have set the static ip: 192.168.222.152 for the scope and 192.168.222.168 for the PC (attached screenshot). In such situation I can ping  192.168.222.152 from the PC (attached screenshot).  After that I downloaded the “LeCroy Wave Series” software, unzip and moved the unzipped folder to “C:\Program Files (x86)\National Instruments\LabVIEW 2012\instr.lib”.  Now I am trying to run some test program from the folder, say “Read Single Waveform” from “C:\Program Files (x86)\National Instruments\LabVIEW 2012\instr.lib\LeCroy Wave Series\Public\Data”.  However, I am able see the “Visa resource name out” only, not the waveform (attached screenshot).  I have tried a few other programs too, however could not get the desired output.  Please suggest me the next step.  Thanks in advance.

Viewing all 5661 articles
Browse latest View live


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