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

VISA & Control Design Module Installation

$
0
0

Hi everyone;

 

I have downloaded and installed LabView 2013 Student Edition and started to learn using it a little bit.

I would like to try the Control Design and Simulation Module, and try to use VISA for USB communication.

 

But, I'm bit confused on how to install these, and quite frankly, the installation links didn't really help me that much.

 

The thing that twists me is the Labview DVD Platforme, which I do not pocess, but it seems that every other installation is used through this platforme.

So my question is, having Labview 2013 Student Edition installed, how to include/install the Control Design and Simulation Toool and VISA.

 

Thank you.


Communication with HP 3457A using HPIB with NI GPIB-USB-HS

$
0
0

Hello All,

 

So what i am trying to do is get one of our HP 3457A DMM's to communication via the GPIB bus. This is an older piece of gear that is equipped with HPIB. I have had luck communicating with other HPIB instruments but can't seem to get any queries to execute properly. The device will beep when i execute commands but is not excepting them so I must be missing something. To begin i am simply trying to get a simple response from an identification query. This device is not SCIPI compliant, according to the manual i should execute a command something like OUTPUT 722;"ID?" . According to the manual the "7" refers to the HP-IB select code which default is 7 i am assuming that hasn't changed and the "22" represents the address on the bus which i have confirmed is in fact 22. Also speicficed in the manual is the device recognizes a <CR> , <LF>, or ; as the EOI character. I am using NI-488.2 communicator to test this. Attached is a screen shot of what i am trying to do and what I am seeing.

 

Any help is greatly appreciated.

 

 

Thanks,

Josh

 

 

 

[beginner] "Write to Measurement File" problem

$
0
0

H! :smileyhappy:

 

I'm trying to read data sent from a DC motor, show  on graph and save the necessary information to a text file. when I press the Run button, the code works as I want it to and I don't have any problem with showing on graph or saving. however when I ran execute the code writing to file doesn't start exactly at the beginning. I mean some time later after I have pushed the button it starts saving the data. my guess is it sets time equal to zero whenever it wants. sometimes it works fine but sometimes it doesn't.

I have attached my code and any comment is much appreciated.

kjnml

$
0
0

So, if i want to have a knob to control V/div a how can i manage it; through vertical range and probe attenuation ;can you give me an example;and something else

also the driver give  in configure channel characteristic a vernier(true/false)  may be to set this controle  i didn't understand this 

 

 thanks for the help!I am honestly gratefull.

question about VI to control keithley 705

$
0
0

Hi

 

I am using a Keithley 705 with a 7062 card. The reason to use this is to read two capacitances with only one capacitance bridge. Capacitance A is connected to Ch1 and Ch6, and Capacitance B is connected to Ch2 and Ch7.

 

What I want to do is to read in a rotation, i.e. Close Ch1&6 ->Open Ch1&6 ->Close Ch2&7 -> Open Ch2->7 ...... I found the driver on NI website, which can only scan single channels. Is that any way to scan arbitrary two channels simutaneously? At lease some subVI to close/open arbitrary channels so I can write the rotation structure.

 

Thank you

 

Zhigang

How to measure the Noise Figure(NF),IIP3,Stability using Agilent N5230A,PNA-L network analyzer

$
0
0

Dear Sir,

              I have designed the low noise amplifier, we have AGILENT NETWORK ANALYZER with  N5230A PNA-L network analyzer. We don't have the user guide for the above said instrument. Can you guide me any one, how to measure the noise figure , third order input intercept point (IIP3) , third order output intercept point, and stability of the low noise amplifier using N5230A , PNA-L AGILENT NETWORK ANALYZER.If anybody knows help document links for Noise Figure, IIP3,OIP3, stability of low noise amplifier measuring using PNA-L, N5230A network anylyzer, can you show me.

VS2012 C CNI4882, Need to update an exsiting VS2008 software interface

$
0
0

I have an software interface for a GPIB card running on a VS2008 C++ (MFC) environment with MeasurementStudio using the CNI4882 class

Now we need to upgrade to VS2012. We have to stay on C++ and VS2012.

What can I do to get this GPIB interface back running using our new environment? This interface is packed into a DLL.

As far as I see, MeasuementStudio2013 does not support C++ and MFC anymore?

 

Best regards

How to Connect Labview to a Modicon Quantum PLC (140 CPU 311 10) with Modbus

$
0
0

I was wondering if anybody could give some advice on how to connect Labview to a Modicon Quantum PLC ( the card is 140 CPU 311 10).  I am wanting to use Labview as an HMI to control the PLC which is being used to implement PID control with a VFD.  Currently I can communicate through Modbus to the PLC for programming using UnityPro XL, but I have no idea how to connect Labview.  I have read the section on NI site "connecting Labview to any PLC through Modbus" but i am still not sure.  Any help will be greatly appreciated. 


How to ensure received serial buffer completely read before stop

$
0
0

Hi,

     I have difficulties to ensure that all data in serial buffer are read before the program stop(after I push stop button). Help needed and appreciated. Thank you.

 

rgds,

Zahari

XNET CAN CRC Error injection

$
0
0

Does the NI-XNET CAN support error injection in CRC ?

Thank you,

Radek

Read timeout with USB-serial adapter

$
0
0

Hi everyone,

 

sorry to post this kind of question again, but I've spent 2 days browsing this forum, the Mathworks forum, and several web pages, I still can't find the trick that will solve my problem :(

I am trying to control an Agilent 34970A (with the 34908A 40-channel module) to read temperature values from thermocouples. I am using a laptop (win7/64) and a USB-to-serial adapter (MCT U232-P9, which uses the Philips P87C52X2BA chipset, not the FTDI, in case it makes a difference) and I installed the driver for this adapter. The adapter is recognized by Windows and appears as COM4.

I set the COM port parameters in Windows as they are on the device (9600 Baud, Parity:none, 8 Data bits, Flow Control: Xon/Xoff; the stop bits are not specified on the device).

And... TADAAA... it doesn't work!

I tried using NI MAX (version 5.5), LabView (version 2013/32-bits), and MatLab (R2012b) to send the *IDN? command and read the answer. The "write" part goes ok (at least it doesn't generate an error, but I don't know if the command reaches the instrument), but there is no answer from the device. If I try reading from the COM port, I get the 1073807339 error (timeout before operation completed). I tried to look if there were any Bytes to be read at the port, but there are none...

In LabView, I set the Xon and Xoff characters to those specified in the Agilent manual (0x11 for Xon and 0x13 for Xoff), but there are a few other parameters I'm not so sure about: 'Enable Termination Char' (Should be On or Off? Tried both - no change) and the termination char itself (I left it to the default '\n').

 

I know this is not really an NI/Labview issue, but since so many people in this community seem to have experienced this problem, I would be very grateful if anyone can help me solve this!

Thanks in advance

 

Mathieu

Calibration Executive with Fluke 5502A Calibrator

$
0
0

I have the following software/instruments:

Windows XP

Calibration Executive 3.5

NI-DMM 3.1

Fluke 5502A Calibrator

A variety of NI DMMs

 

What I want to do:

Calibrate my NI DMMs using Calibration Executive and the Fluke 5502A Calibrator in automated mode (i.e. not manual mode where the user is prompted to configure each calibrator setpoint)

 

The problem I'm encountering:

Calibration Executive 3.5 is written such that the Fluke 5500A, 5700A, 5520A, and 5720A are the selectable calibrators (in addition to "Enter Unsupported Instrument" which sends you to manual mode).  Within the normal LabVIEW environment, the Fluke 5502A is capable of operating via the same instrument drivers that are available for the Fluke 5500A, if one tells the init VIs to ignore the fact that the 5502A does not return "5500" for it's *IDN? query.  However, the same is not true of the Calexec environment (yet).  If I select the 5500A as my calibrator within Calexec (when I've actually got the 5502A), I get initialization errors.  I need Calibration Executive to accept the 5502A as a "member of the family".  Unfortunately the 5502A is not capable of doing a 5500A emulation mode, per feedback from Fluke.

Can't connect to keithley source meter through Agilent GPIB/USB interface Even though the interface shows up in MAX

$
0
0

Hi all,

 

I am trying to use labview to control a keithley 2450 source meter. I have the source meter connected to my computer through an Agilent 82357b usb/gpib interface.

The source meter shows up in MAX as My System -> Devices and Interfaces -> "GPIB1::18::INSTR". It also shows up in MAX  as

My System -> Devices and Interfaces -> Miscellaneous VISA Resources -> "GPIB1::INTFC" and "GPIB1::18::INSTR".

 

I can connect to the source meter using MAX's "visa interactive control". the visa resource "GPIB1::18::INSTR" also shows up in labview.

But when I try to run my labview program it is unable to connect to the instrument.

 

Any Ideas?

 

Thanks,

 

Also. Why does my GPIB/USB interface show up as a miscellaneous visa resource?

serial jitter

$
0
0

Hello,

 

I want to send serial data via RS485 port every 2ms on PXI 8433 board with 8106 controller.  Baud rate: 2Mbit.

 

I used timed loop with loop period is 2ms. I monitored loop time intervals with a chart. When I send 8 byte data it causes to jitter and loop time increases to any value between 12-40ms with nearly 500- 800ms time intervals.

 

But when I send 7 byte data loop continously run without jitter.

 

I changed Baud Rate, transmiter buffer size, increased looptime up to 10ms, sometimes jitter interval or loop time changed but never run exact time intervals which I set.

 

Why this problem has occured? I appended sample project file and JPEG images of 7Byte and 8Byte looptime charts.

 

Thanks. 

 

 

 

 

VISA-How to make real time graph in LabView 2013 from incoming data through serial port

$
0
0

 I am new to LabView 2013.

 

I made hardware for collecting data from deivce using serial port.

 

My requirements are:

 

I want to make real time graph of incoming data from hardware through serial port in pc.

 

Now experts please help what are necessary things are required to make real time graph of incoming data coming via serial port to pc in Labview 2013.

 

What are the components are required in LabView to do such project.?????

 

Please provide me complete information because I am new in LabView 2013

 

Waiting for your response.

 


[visual studio c++] about input impedance

$
0
0

Hello,

 

I've had a nice development session with NISCOPE C/C++ API, with Visual Studio 2012, last weeks.

My NI device is a scope NI-5132, nice top 5Ms/s, 8bits, etc.

http://sine.ni.com/nips/cds/view/p/lang/fr/nid/203719

 

My software can now launch acquisitions, for A or A&B, I feed waveforms from a synthesizer output (50ohm, 0-1500kHz)

to generate signals.

For now, I plots signals, and FFT diagrams.

All works nicely, thanks for the API !

 

The issue happens when I switch impedance (Configure Chan Characteristics) : 

• with 1Mohm : things works

• with 50ohm : my application crashes.

 

Why switching ? 

Cause my aim signal generator output is 50ohm impedance,

before switching, I ve used :

• 1 Mohm NI5132 impedance

• on its input : a T BNC with a 50ohm caps to align impedance with my generator, and protect it from mirrored signal by the 1Mohm impedance.

 

Please help :

Why 50ohms make my app crashes ?

 

Do I need to re-calibrate ?

 

Much thanks

 

 

NI DOC :

 

Configure Chan Characteristics allows configuration of the less
common vertical parameters. The input impedance parameter allows you
to switch between 50 Ω and 1 MΩ input impedance, depending on your
digitizer. See Appendix B, Features Supported by Device, to find out the
input impedance your digitizer supports. The allowed vertical ranges may
be fewer for low input impedance settings, since the amount of power
dissipated through the 50Ωresistor quickly increases. Generally, you want
to match the input impedance of your digitizer and your source, so if you
measure a signal from a 50Ωoutput function generator, you should set the
digitizer for 50 Ω input. Impedance matching becomes much more
important with higher frequency signals to avoid reflections of the signal
that may distort your measurements. Alternatively, if you probe a circuit,
it is best to use the high impedance setting on the digitizer to avoid
changing the characteristics of the circuit.
To protect the 50Ω resistor, a thermal sensing circuit will open the input if
the power dissipation is too high. If this occurs, a warning will be returned
from all Read, Fetch, and Status functions. The circuit will try to reset itself
when Read, Fetch, or Status functions are called. Some digitizers also
support the detection of an ADC overload. This works the same as the 50 Ω
overload detection circuit described previously

 

how long it takes for a kistler 9255B to give an output for drilling a hole

$
0
0

how long it takes for a kistler 9255B dyno to give an output readings for cutting forces and moment when drilling a hole in a 10 mm plate .

 

 

8431/16 RS422 C# programming (How to be sure all data is sent)

$
0
0

I am using the serial ports of 8431/16 card with C#.

 

I am using "Write" function of "SerialPort class" in .NET. "Write" function is a blocking function so I assume that when "Write" function return all data is sent, at least placed in transmit buffer. But I saw that for 9600 baudrate, writing above 10000bytes data size all data are no sent(about 9872 bytes sent when write function returns) to the other side when write function returns.(20000 bytes for 19200 baudrate).

 

I changed the value of transmit buffer from "SerialPort class" and also changed  8431/16 card transmit buffer size (1-127) but I could not solve the problem.

 

I want to be sure that my all data is sent to the other side so I can say the other side that I sent to you this match data.

EMtest GPIB interface error after updating NI-488.2 driver

$
0
0

I am using GPIB interface and Vendor Software to control EMtest devices (Autowave & VDS). After updating the NI-488.2 from version 2.2.7 (ni488227.exe) to 3.1.2 (ni488_312) the EMTest software is no longer recognizing the NI PCIe-GPIB interface (?).

 

After re-installing back the old NI-488.2.2.7 everything is returned to normal. Is there any known solution to this type of errors?

Thank you!

what is meaning this message ?

$
0
0

when i use exe file ....this message which is attached appears

what is meaning this message 

Viewing all 5690 articles
Browse latest View live


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