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

Sincronización señal escalon

$
0
0

Hola,

 

Soy nuevo en el uso de LABView y quisiera pedir ayuda respecto a una modificación que debo hacerle al código adjunto. El problema consiste en que debo enviar una corriente AC de alta frecuencia con un valor determinado durante un tiempo corto (0.1 segundos), posteriormente debo tener un tiempo de ralajación (3 segundos), y así sucesivamente durante un tiempo determinado (del orden de 24h). Es indispensable que se inicie en cero, es decir, 0, Señal, 0, Señal, 0, Señal, etc., para evitar ruido al empezar las medidas. Es indispensable que la señal y el almacenamiento de datos esten sincronizados, así como está el programa ya guarda y grafica los datos, pero no se como implementar esta parte nueva. Si me pueden ayudar les quedo profúndamente agradecido.   


ibrd() takes too long

$
0
0

Also posted, in much greater detail (no word limit) at StackOverflow - http://stackoverflow.com/questions/16749913/programming-agilent-counter-gpib-ibrd-takes-too-long 

 

I'm programming an Agilent "Universal Counter" (53132A 225Mhz model) over GPIB using the National Instruments driver and C interface.

 

I want to measure the Time Interval between two clock signals (1 PPS - pulse per second). I am definitely getting one edge per second. But, my app makes a measurement every 2 seconds and the reason is that fetching the result takes about 1.9 seconds.

 

My thread loop is to start a measurement (SCPI cmd INIT) and read the result (SCPI cmdFETCH:TINT?). Do this in a tight loop as quickly as possible. Which would easily handle I measurement per second, except reading back the result takes forever (well, 1.9-ish seconds)...

 

Debug output shows:

SendSCPICmd at 1369486341s
SendSCPIQuery at 1369486341s
SendSCPIQuery: ibwrt() at 1369486341s
SendSCPIQuery: ibrd() at 1369486341s
***SendSCPIQuery: ibrd() took 1994ms***
Result at 1369486343sPosted to queue at 1369486343s

So, now I know I'm throwing a lot of code down next, but if you have the time an inclination to look, I'd very much appreciate ideas as to why ibrd() in the function SendSCPIQuery() takes such a long time to complete after the FETCH command has been sent? Any ideas appreciated :)

 

<For code samples please view the stack overflow post (link at top of post, thank you)

How to fix Error 1074000000 of Keithley 2100

$
0
0

Hi,

I am using Labview 2010 SP and VISA 5.3.

When I use the Keithley 2100 single measure VI for 2-wire measurement, I get error 1074000000.

Any ideas ?

Thanks

 

1073807339 error with a Hameg hm8118

$
0
0

Hi,

 

I'm trying to do some simple scans with a hameg hm8118 lcr bridge, but I keep receiving the error -1073807339.

 

The code Im using I downloaded from NI's website http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=80634808372B577CE04400144F1EF8... .

 

I beliave I've gone through both http://digital.ni.com/public.nsf/allkb/E6DFA2B8D7E99F9886256C14005E82F7 and http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0 without generating any fruitful result (will go through them again to be sure). I have managed to send some simple commands through windows hyperterminal but when I run the labveiw code I receive the timeout error 1073807339 at the first visa read. I have tried to use an usb connection (I installed the required software for that) and a serial connection both giving me the same result. I have also tried using two different computers but with the same negative outcome. Im using labview 2012 and visa 5.3. The hm8118 is very new (purchased in the autumn of 2012) and I have updated the firmware to its latest.

 

I'd appreciate any help I can get, cheers.

 

Thank you in advance /klirfan

tektronix tds 694c with USB-GPIB

$
0
0

Hello Labview community,

we have a Problem with the Tektronix TDS 694. We have download the Driver for this Hardware Tektronix tktds7xx an connected  the oscilloscope with PC over USB-GPIB, that works good an example program  can connect. Now we want to read Oscilloscope memory after the Trigger from that. An Labview example starts good and it´s come no failure in process, but no Data is showing or other functions working. The display shows a little flickering an that’s all. In the summary no data, no error but flickering :D

thanks for answering

VISA dropdown Keithley GBPI

$
0
0

Hello, thanks in advance.

I am working with a NI GPIB connected to 2 Keithley 2400, but the resource visa name in labview does not show any name in the block diagram. Running with MAX, I can see the 2 instruments, but there is not the 'Open VISA Test Panel'.

Can you suggest me where the error is? thank you! G.

How do I control an UniBlitz D122 shutter driver in LabView?

$
0
0

I'm still learning in LabView and am currently working on trying to control an UniBlitz D122 shutter driver through its RS-232 port, but cannot get any response from the device. I am using a Mac with a RS-232 to USB adapter and LabView 2011. Here is my wire diagram below

Picture 2.png

Is there anything in particular that I'm doing wrong? Sending a decimal value of 65 should close the shutter but I'm getting no response. I know that the adapter is working as I've used it previously with another device.

 

Thanks for any help

PLC

$
0
0

Hello to all the forum would like to see if I can help with my problem what happens is that when I want to connect my PLC via OPC server (Modbus), the following procedure http://www.ni.com/white-paper/13911/en me some labels appear, my specific question is how is that such labels are Plc and not my computer?. apparently is that the document explains how to identify them, just as if have more tutorials that I can spend would be very grateful, Cheers


Rohde & Schwarz SMFP2 control

$
0
0

Hope you can assist to push me in the correct direction, learning exercise only for me, non commercial.

I have an old R&S SMFP2, with GPIB control described as IEC 625-1 (IEEE 4888) on the spec sheet.  I also have a not quite as old NI GPIB-ENET (not the 100 or 1000). This is configured with a static IP 10.0.0.200.

 

The NI drivers are all loaded on my laptop version 2.2 and the card has been updated with the latest A.5 firmware and the NI 4888.2 getting started wizard says everything is OK when I verify the hardware and software installation.

 

When all connected up to the SMFP2, I have run the Measurement and Automation explorer and under the Devices and interface tree can see GPIB0 (GPIB-ENET) and from that can see Instrument0.

 

Primary address is 30

Secondary address 0

Identification The device did not respond to a *IDN? query

GPIB interface number 0.

 

At this stage all is looking good so I am now trying to communicate with the Instrument using the communicator. And this is were I fail to get reliable responses from the instrument.  I have copied sections from the manual here, sorry it is long winded.

Each instruction to change a setting consists of at least an initial charater (header) and final character (deliminater).  When data on a setting is to be transferred, eneter the data bewtween these two limiting characters.  All characters are transmitted in ISO 7-bit ASCII code.

After a measurement has been completed, the result be called up before a new m,easirement is made, since otherwise the data would be overwritten.

The deliminater for the output is defined in the tester as CR.  If a fauolty string is entered, a service request (SRQ) is sent via the IEC bus.

 

The control instructions are listed:

Function  Code

Recieve   AR

AM         AA

FM         AB

CCITT     DC

 

etc

 

#

Input functions   Code

 

SIG Gen   AG123.4567     where 123.4567 is frequency in MHz

 

etc

 

So I have been tring what I thought may be the correct things to type in the communicator send string window such as:

30 AR

AR

 

these do not work but I get better results with 30,AR or ,AR  but have to send twice before I get an action

 

Similar if I want to set the frequency 30,AG222.4444 sets the frequency after two sends only, I can not query the instrument or read it so believe I have not got the correct format.

 

Can anyone help, if you recognise the old instrument etc.

 

Please provide a pointer. trying to remember how to program in C will come much later.

 

If I need to provide anymore information please just ask and I will try my best.

 

Cheers

 

Adrian

Maximum GPIB-ENET interfaces NI4882 driver can communicate with?

$
0
0

Hi,

 

The NI-488.2M Reference Manual states that the NI-488.2M driver supports up to four interface boards. Does this limit apply to the GPIB-ENET devices? If not, how many can be communicated with? My particular application needs access to eight GPIB-ENET/1000s.

 

Thanks

Charles

Pololu serial 8 servo control using Labview

$
0
0

Hi, 

 

I am trying to use a pololu serial 8 servo controller to control 8 servos using labview.  The controller itself comes with software to send commands to use it.  I am essentially trying to replicate that system, but just have it where I am sending a 5 byte command.  The command format requires that i send the 0x80 0x01 0x02 the next two commands are the ones I want to change, the first being the servo number the next being its position.  The command is being sent over the serial port.  I have also attached the vi that I am trying to get to work.  I assume there is an error in the way I am trying to send the commands to the controller.  any help would be greatly appreciated.

NI-Visa Enabling - Save Conflict Manager Settings

$
0
0

Hello!

 

I'm experiencing some problems regarding the Enabling of NI-VISA 5.2 within NI MAX (See screenshot in attachment).

I'm usng Labview 2009 and Win7. I guess you'll need much more information on my System.

 

From the Message prompted it seems It could be related to some sort of permission while saving the settings, but this problem is not risen within other areas of NIMAX.

 

At the beginning, Agilent Visa was installed along with NI-VISA 5.2 and the former one was Enabled in Conflict Manager.

After that I installed NI 488 2 3.1.1 Drivers and when later I needed to enable NI-VISA I ran through this problem.

(I don't know whether before the NI488 installation I could switch to NI-VISA, I didn't try at that time)

I uninstalled Agilent Visa, I Installed NI-VISA 5.3, Repaired, Uninstalled 5.3, reinstalled 5.2 but I'm still facing the same prompt.

 

Thanks for Any Help!

 

MAX can not find "GPIB-USB-B" under" Devices and Interfaces"

$
0
0

Hi,

I am using Labview 2010 with windows 7 system (64bit).

I am trying to work on some program for Keithley 2700, connected with "GPIB-USB-B" with my computer.

The problem is that MAX can not find "GPIB-USB-B" under" Devices and Interfaces" from time to time, everytime I have to restart my computer to find the device. The driver I used is NI-488.2.2.81.

Is there any advice that I do not need to restart computer agian and agian?>

Thanks

IVI driver program using NI TestStand and NI-MAX for TDS1002B

$
0
0

I am new to IVI drivers programming  and I was successful in initializing TG5011 function generator using IVI driver from NI-MAX & NI TestStand.

 

However, I am finding trouble in Initializing a new Oscilloscope (Tektronix-TD1002B) that I want to set up using IVI.

I have created driver session for Tektronix scope in NI-MAX. I believe I get an error in NI TestStand because of driver compatability as TDS1002B is not listed in the supported models section in NI-MAX.

 

Please help me to resolve this and please post the relevant IVI driver for TDS1002B if there is any.

NI 9871 Bias Resistors

$
0
0

I've just been informed that the NI 9871 c Series Module doesn't have bias resistors fitted.

 

Has anyone taken one of these module apart before in order to fit them? It seems very strange to me that they aren't fitted internally.


Agilent PNA N5224A

$
0
0

I am trying to save SnP files from Agilent PNA N5224A to a PC. I need to save the data in the instrument harddrive then transfer the files to PC harddrive. Is there is a commands sequence I need to follow?. Agilent or NI don't have a driver for this 4-port network analyzer.

GPIB devices not found

$
0
0

Hello all, am using an agilent power meter with labview via GPIB/USB and keep getting errors which i do not understand.

 

so i tried to debugging using NI MAX. Although the actual cable is found, it can not find the intsrument at the end of it when using

 

the scan for intsruments. 

 

I tried to using the serial port which seems to work fine.

 

I tried a different GPIB cable to rule it out and had the same trouble.

 

looked at the passports to ensure that the correct ones were enabled, which they are.

 

 

Can any one please help as to why  i can not find any GPIB devices using IN MAX, also how can i fix this problem.

 

Many Thanks

 

Daniel 

LV program to control instrument without driver over GPIB

$
0
0

 

I am kind of new to LabView and instrument control, so will start with basic queries.

 

- Are commands to control instrument via GPIB standardized, or differs across instruments?

 

We have HP instrument connected via GPIB, for which instrument driver exists. I now want to use the same LabView software to control another instrument (Keithley 595) using GPIB, for which there is no instrument driver in NI/Labview.

 

- Does having instrument driver even matter, if we are basically issuing commands over GPIB?

- What exactly I need to look in existing VI files? (That is, if it is using standard GPIB instructions or instrument specific commands)?

 

- Is it feasible to modify VI files to work with Keithley 595 without availability of instrument driver?

 

 

Thanks, Nick

PXI-8433 RS-422 Port Configuration

$
0
0

Greeting,

 

I hope this is a simple question. Does the RS-422 PXI-8433/4 card have the ability to configure any sort of data encoding, i.e. NRZ, GE Thomas, Manchester, etc?

 

I have worked with FASTCOMM RS-422 boards which support this. I could not find any information concerning encoding and the 8433 but just wanted to make sure.

 

Thanks

 

Minesh

Watlow Ez zone Modbus control with Labview

$
0
0

Hello !

 

I'm trying to control an Ez Zone Watlow temperature controller through modbus via Labview. I've downloaded the basic VIs provided by Watlow to do this, and had them converted from v 8.6 to 8.0 (I'm running on Labview 8.2). The Ez Zone is connected to the computer (Win XP SP3) with a serial RS485 crossed cable on the PC's serial port COM1.

 

When I run read.vi (attached below) in Labview, and try to read a random parameter, it returns a empty string and this error :

 

 

Error 1 occurred at an unidentified location

Possible reason(s):

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488: Command requires GPIB Controller to be Controller-In-Charge.

 


I don't really understand how this VI works, because althought it calls a .dll file, I don't see how the connection to the instrument is made.

 

The serial port is configured as follows :

 

Bits/s : 9600

 

Data = 8 bits

 

Parity : none

 

Stop : 1

 

Flow control : none

 

... which is the default communication configuration on the instrument.

 

 

Thanks for your help,

 

Paul

Viewing all 5661 articles
Browse latest View live


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