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

Executing "TriggerList" using GPIB Interactive Control

$
0
0

Hi all,

 

 

For debugging purposes, I am trying to execute a multi-device "TriggerList" command using the "GPIB interactive control" utility.

 

I have a GPIB-USB-HS unit connected to 2 GPIB devices at addresses 11 and 12. Communication to these devices seperately works fine.

 

What I tried so far:

 

(1) Opened NI-MAX, browsed to "Devices and Interfaces" / "GPIB-USB-HS "GPIB0";

(2) Pressed the 'interactive control' button, which opens up the GPIB Interactive Control terminal window, with a "gpib0:" prompt;

(3) Enter "TriggerList 11,12" and press enter.

 

the result of this is:

 

[8000] (err)

error: EHDL

count: 0

 

Using the "NI I/O Trace" tool, I see that a TriggerList(31000, {0x000B, 0x000C}) call is executed, and returns with an EHDL error.

 

 

My question: what am I doing wrong, and what do I need to do to execute a successful TriggerList?

 

 

 


VISA + C# + RS485 + carriage return

$
0
0

Hi, everybody!
I have an engine and I want to control it by means of rs485.

 

 wData = new SerialSession("COM7");
 wData.BaudRate = 9600;
 wData.TerminationCharacterEnabled = true;
 String Command = "AV10000"+"\r";
 byte[] bytes = new byte[8];
 int bWritten = ASCIIEncoding.ASCII.GetBytes(Command, 0,      Command.Length, bytes, 0);
 wData.Write(bytes);
 wData.Clear();

 through visa and c# there is no response

 Problem is "#0D" but I send it through "\r"

 

 

 

Through the terminal program everything works

 

Скриншот 2014-08-05 10.15.38.png

 

Скриншот 2014-08-05 10.15.55.png

 

Скриншот 2014-08-05 10.16.24.png

GPIB-USB to HP6675A

$
0
0

Trying to connect to a HP6675A power supply using a GPIB-USB Interface

Need library location and program examples.

Thanks!

LabVIEW Reference Design for Serial Communication

$
0
0

Hello,

I'm getting started on a project to create a serial (RS232) device driver meant to be used in a hospital environment. The Data Packet Format seems to me fairly common:

Start Packet (ASCII_SOH)

Packet ID (16-bit integer)

Data

CRC - 32-bit of all bytes between but not including ASCII_SOH & the CRC

End Packet (ASCII_EOT)

 

ASCII_DLE expansion used in all bytes

Multibyte integers transmitted low-byte first

 

Is there a LabVIEW Reference Design for Serial Communication that I can use to get started? - My hope is that there's something already done by NI or LabVIEW users that can minimize recreating the wheel too much. An example will be just fine of course.

Thanks !

Jorge

 

I2c SMbus for TI EV 2400 interface board

$
0
0

Hi all,

 

I am trying to create a Labview interface for the board TI EV2400, which has SMbus and I2C ports. What I would like to do for now is just recognize the device and read the SDA... Is there a toolkit for I2C interface or how can I interact with such DSP using labview? Is the DAQ assistant ok for acquiring the signal?


Thanks in advance for your help.


Fabrizio

Sweep Voltage with E3631A and measure with HP 3458A using VB6

$
0
0
I need help. I am trying to create a program that would sweep a voltage with the agilent's e3631a and measure it with the hp3458a. i have already created two separate programs on vb6 but i have to do it manually. how do i declare these two instruments in one module?

Newport USB connection problem

$
0
0

I'm having a problem communicating with a Newport 2936C power meter over USB - can't see the USB device in e.g. NI Max under "Devices and interfaces"

 

I've installed the newport device drivers: Computer Interface Software v3.0.2 from Newport ( http://search.newport.com/?q=*&x2=sku&q2=2936-R ).

I even upgraded the intrument's firmware.

 

The drirver Seems to install OK - I can see the device (Newport Power Meter)  listed under the Wndows Universal Serial Bus Controller list, yet no listing in NI-MAX.

 

I've tried this with 3 different computers (XP & Windows 7, LabVIEW 2012 & 2013) now to no avail.

 

Any suggestions?

Thanks,

Reuel

How to change the gain of an analog output

$
0
0

I want to have a resolution of at least 500 micro volts. I thought that you could achieve this by two ways: one, to set the maximum and minimum values, and two, to change the gain of the channel. I'm using a PCI MIO 16E 4, also known as PCI 6040E, and a scb 68.

 

From the NI 6040E family manual I read that the analog output bit resolution is 12 bits. Usually this is from a range of 0-10V or -5V-+5V which gives around 2.44mV resolution. I thought that by changing the maximum and minimum output values I could therefore change the range and therefore change the resolution. I want at least a 500microV (0.0005V) resolution. By changing the range to 0-1V I should get around 244.14 microV resolution.

 

The thing is that when I run my simple program, it displays the voltage that I want, but it only increments around every 5 iterations of said 500microV, which is around the default 2.44mV resolution, which indicates that the resolution hasn't changed (I'm using an osciloscope to measure the physical output).

 

Therefore, my other option to change the gain should be how to do this, if possible. But I don't know where/how to change this, and it doesn't appear in DAQmx Channel Properties. Any ideas on how to do this, or maybe another solution to my problem?

 

P.S. This is for a linear ramp to drive a piezo and take images while doing so, just in case you were wondering why I wanted to solve this problem.

 

Thank you very much for any help in advanced!


Multiplexer, DMM and Power Supply order and timing.

$
0
0

Hello All,

 

 I'm developing a testing application (TS 2013 and LV 2013) that will use a 4070 DMM, 2527 MUX, and a variable power supply.  I do alot of switching between powered voltage checks and unpowered resistance checks, but I try to keep the same "template" for the sequence, so it is modular and reusable.  Generally, I have been configuring the routing, initializing the DMM, then activating power and triggering a measurement.  I've been analyzing the sequence to improve efficiency, and thought it may be better to initialize the power supply (and let it run asynchronously) before the DMM.  My concern of course is having live voltage at the test leads of the DMM before it is initialized.  Would this be safe for the equipment?  I haven't seen anything in the data sheets that specifically addresses this.  I've also read some of the white papers on the NI site related to DMM Measurements, but haven't found anything there either (found plenty of other good info though).  Please advise. 

 

Thanks in advance.

 

GSinMN     

ethernet in long distance

$
0
0

dear all 

good day,

i have to connect a access controll unit into a PC therefore i connect the controll board through LAN cable about 500 meters, i doubt whether this ethernet connection would effective because of long distance ,what is the best way to connect these two ?

keithley 487 autorange problem

$
0
0

Hi

I'm using keithley 487 pico ammeter voltage source in laboratory. 

When I measure current in autorange, I can't get a good measurement.

When the data goes to smaller range (nano ampere), when the scale change nanoscale

Measurement jump down and a sharp drop was seen in the Graf. 

NI-MAX only finds one remote system

$
0
0

Hi all!

 

Is there a restriction in NI-MAX that only allows one remote system? I ask because my NI-MAX can only find one remote system out of the three remote systems I have. All four have NI-VISA server started. When I try to add it to the remote options, MAX tells me that it already exists as a MAX remote system.

 

Any help is appreciated.

Thanks!

Keithley 2400 Problems

$
0
0

Hi,

 

I'm trying to run a Keithley 2400 SourceMeter with LabView using the latest driver (Keithley 24XX) and the example VI "Keithley 24XX Read Single.vi".

 

After selecting the GPIB Adress I run the program and Labview throws the following error message:

 

Error -1074000000 occurred at Keithley 24XX.lvlib:Error Query.vi

 

Possible reason(s):

Instrument reports:
-113,"Undefined header"
-230,"Data corrupt or stale"
-420,"Query UNTERMINATED"
0,"No error"

 

Complete call chain:
Keithley 24XX.lvlib:Error Query.vi
Keithley 24XX.lvlib:Read (Multiple Points).vi
Keithley 24XX.lvlib:Read (Single Point).vi
Keithley 24XX Read Single.vi

 

I also have a Keithley 2000 Multimeter up and runing with it's latest driver and the example program and it works just fine.

 

What could be the problem?

 

Thanks in advance!

Example: "USB RAW - Interrupt.vi"

$
0
0

I am trying to communicate with a USB HID device. I have already installed driver INF and successfully open it using VISA Test Panel. I can see the device under the MAX Devices & Interfaces.

I try to run LabVIEW 2003 example "USB RAW - Interrupt.vi".

 

I don't quite understand the example. Is it just receiving data from the device?

 

If I want to send HID data to the device, how can I do it? Anyone has any example?

heuristic algorithms

$
0
0

please do tell me whether i can perform heuristic algorithms using labview. if so can you please provide me with example codes ?


VISA

$
0
0

hello, to acquire dataa via usb ,my problem is how  i recieve 3 dataa its not only 1 ,for example i wantt to recieve current voltage andd temperature ,how  i recieve these 3 dataa,howcan i recieve it alll or i must do a dalay between them,andd howcan i savee my dataa ,i wantt to convert it from digital to analog ,howcan i recieve these 3 dataa andd display it without lost it andd thanks :smileyhappy:

Controlling Agilent B2912A

LabVIEW 2013 64-bit and Agilent 82357A

$
0
0

There was a previous post about issues of the Agilent 82357A in Windows 7 http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/MAXVISATimeoutError-when-82357A-USB-to-IEEE488-installed-under/td-p/2789716/highlight/true

 

Ours is different in that while the adapter is detected in both NI-MAX and Agilent Connection Expert and we are able to communicate with an instrument using them,

LabVIEW 2013 64-bit running in Windows 8.1 does not see any instrument that is connected. In other other words, when a VISA resource is dropped on the front panel, the instrument is not displayed.

 

Any ideas on the cause?

 

Agilent b2912a I-V Measurements

$
0
0

Hi All,

 

I wanna control (sweep Voltage in a certain range and measure corresponding current) Agilent B2912A SMU through this LabVIEW VI. Please find VI in attachment. Here I tried to modify an example, provided by Agilent, to get IV measurements. Unfortunately there are two little things which I can not find a way to do, i.e.,

 

1- I want to put a time control between each successive applied voltage value, in sweep mode. At the moment, as I het run all voltage values (defined in the sweep range) run with the speed of computer's serial/USB read clock (I guess, means it is very fast). I want to put a delay (user defined) after each voltage is applied and current is measured. One thing that bothers me is this "Fetch Measurements" sub-VI in CASE STRUCTURE fetches all readings at once, couldn't find alternative sub-VI in the provided library/drivers from Agilent.

2- How can I measure current, voltage and resistance with respected to time (not rendom time but corrsponding to measuring time); like measured current versus time, Resistance versus time graphs.

 

Many thanks in advance.

cannot see master frames LIN

$
0
0

Hello,

 

I'm implementing an interface using NI's LIN platform. Right now, I'm having trouble with the schedule change. I'm writing a schedule and at the same time I'm continuously fetching messages from the bus. I only receive messages that are transmited by the slave and I would like to also get the messages that the master sends.. I know that because I use Vector's Canoe to double check. If I send the schedule via Canoe, I also receive messages that the master sends. In my opinion, Labview does not interpret correctly the LDF. Does anyone know how to solve this? And is it possible to stop a schedule? 

Viewing all 5661 articles
Browse latest View live