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

Intuilink with NI 488.2

$
0
0

I am using HP IntuiLink for oscilloscope screen capture and I switched from an HP I-O card to NI488.2

Now I do not see the NI488.2 in InuiLinks configure options.

What can I do to get good screen capture again from the HP54645D Oscilloscope?

Thanks in advance,

Bertho


Snap Image with IMAQ

$
0
0

Hi,

 

For some reason, I am unable to talk to the camera I have setup from LabVIEW.

 

If I go to NI-MAX, I can see all of the features of the camera and can directly grab/snap images, but when I use the snap example vi, I get an error: Error -1074397163 occurred at IMAQ Init.vi

 

I took the LabVIEW example snap VI under IMAQdx and just replaced the functions with normal IMAQ VIs, dont know what went wrong. 

 

I need to snap images and save them as BMP files, any help?  

 

Side question:

How do I trigger the camera to snap every X nanoseconds and save the image with a certain filename (e.g. pic1.bmp, pic2.bmp, pic3.bmp, etc.)?  A for loop would be useful for the filename part I guess, but a while loop may be better for minimizing delays when triggering the camera for a time-sensitive matter...?

 

I apologize for these basic questions, I only have experience using LabVIEW for pure coding purposes.

Which type of instrument do I need?

$
0
0

Hi all,

 

I am new to labview and just want to start my experiments but I do not know which NI instruments I'll need. What I want to do is just controlling several devices as follows:

 

1- Running a solenoid (just on and off position after prespecidfied time).

2- Runnign a hot wire (turning on and off)

3- Starting a camera

 

Does anyone know what board or any other sort of equipment do I need to order from NI?

 

Thanks

Mosi

Measurement and Automation explorer Database Connection Error

$
0
0

Hi,

It is the problem of the software called Measurement & Automation explorer(MAX).

When I open it, I cannot expand the 'devices & interface'

And there appears a MAX Database Connection Error and says there is was a
problem

connecting to the database.

And refer to KnowledgeBase article 42HG08DD.

I have tried many ways on the Internet but I failed to solve the problem
The MAX worked well last week.
I have used it for a long time. This is my first time to encounter this issue. 
I totally have no idea about it.
I have tried the #2 method. Both NI Configuration Manager or NI Device Loader 
(nidevldu) Services are started. But the issue still exists.
The MAX version here is 4.6.2.

Can someone tell me how to fix this issue?
Thanks

Serial Read Write with Porter CM-400

$
0
0

Hi all,

 

I am new to LabVIEW, but have been the assigned the task of automating one of our controllers.

 

I have this guide on how to go about doing this, but am not sure how to do this on LabVIEW. I have attached it here as well as the basic serial read/write vi that I found on the example code website on NI. Any help on where to get started would be much appreciated. As of now, I have the cord connected, but am not able to write/read a string based on what is happening. Thanks!!

 

 

Overloading PCI bus bandwidth with 4 daq cards?

$
0
0

I am attempting to acquire data using one relatively new PC.  I have 4 DAQ Cards.. NI PCIe-6323 (x3) and NI PCIe-6353

 

Each one is sampling data at 800Hz, the first card is reading 32 channels, the second 32 channels, the third 24 channels, and the fourth 4 channels.

 

I'm also using VISA to communicate with a USB device

 

I can simultaneously acquire data from 3 daq cards and operate the usb device

I can simultaneously acquire data from all 4 daq cards without the usb device

 

However, I can't acquire data from all 4 cards and operate the usb device simultaneously.  In this configuration all the data is acquired from the daq cards before the operate signals are sent to the usb device.  Also, when I acquire from 4 daq cards at the same time my status bar/wait timer does not update in real time.

 

Have I hit the limit of the hardware of the computer?  Any suggestions about how to fix or debug this issue would be much appreciated

Is it normal for a GPIB device's serial number to be zero?

$
0
0

I am new to using GPIB and the GPIB-USB-HS. I'm writing a C# application, and it's surprisingly tough because the NI4882 help file only says "see the example code" and the three example programs are pitiful.

 

Anyway, after half a day doing web research and using Visual Studio's IntelliSense to scope out what the docs should've told me, I now know how to instantiate NI4882.Board objects, ask them to enumerate listener addresses, and then instantiate NI4882.Device objects and use them to collect *idn? information from all listeners. I'm almost cookin' with gas!

 

The thing is, one of the devices returns this string: HEWLETT-PACKARD,34401A,0,10-5-2.

 

It's an Agilent DMM, and that 0 is the serial number. Is this normal? Am I supposed to somehow load its serial number into nonvolatile memory so it can answer up properly in the future; or are all GPIB devices expected to have proper serial numbers already?

 

My application will use a database to match device calibration dates and capabilities against what it detects on the bus, so I'm frankly a little worried if there's no way to get a device to return a unique ID.

 

Is there any other command you might normally use to get a GPIB device to uniquely identify itself?

Can I use an ethernet cable to connect an old FTIR spectrometer to a PC

$
0
0

Hi,

 

I have aquired an old Perkin Elmer Spectrum 2000 FT-IR spectrometer. The cable for connecting our Spectrum 2000 FTIR spectrometer to a computer is missing. Do you know if it would be possible for me to connect a PC to the instrument using an Ethernet cable?

 

I've attached a photograph of the PC cable socket at the back of the instrument and notes from the manual.

 

I'd be really grateful if anyone could provide some advice.

 

Thanks,

Jo

 

 


Bird Power Sensor

$
0
0

I need to integrate a Bird Power Sensor 5012 on a Virtual Instruments LabVIEW.

I have the windows library "BirdDCom.dll" , "BirdSensor.dll" and "HIDLibrary.dll".



Can sombody help me to put this sensor on a LabVIEW project?



Thanks

Tektronix TDS 3000 series GPIB-USB control

$
0
0

I have a Tektronix TDS 3032 oscilloscope hooked up to a computer via a GPIB-USB-HS connector. I am trying to control it using the instrument driver downloaded from ni.com. The default setting on the initialize block diagram under Open Instrument Property Node is Intf Type with USB as the default option. When I try to run the VI with the USB selection, it returns the following error:

TKTDS3K Error Query;
Instrument reports the following:
241:  Hardware missing;
0:  No events to report - queue empty

When I then change the Interface Type to GPIB, it returns the following error:

Property Node (arg 2) in Tektronix TDS 3000 Series.lvlib:Initialize.vi

I have tried many of the other options and they all return similar errors. I have checked with NI MAX and I am sure that the`VISA resource name is correct. Many of the other VIs in the instrument driver work just fine so I am confused as to why this one does not. Any ideas?

Externally Control Digitizer

$
0
0

Hi All,

 

I have a question about how to externally trigger digitizer board of a mass spectrometer. Right now TTL pulses from the mass spectrometer were passed to the digitizer trigger in first and then passed back to the spectrometer to trigger ion optics push ions to the dector and finally another signal line passes the signal back to the digitizer and saved. A schematic diagram was attached here.

 

I want to take over control of the digitizer not wholely but only trigger the digitizer when I want to save the data. I tried to communicate with the digitizer by myself which will give an error on the software that controls the mass spectrometer because the software thinks the digitizer is missing. So this method fails.

 

Another way I was trying to do now is to gate these TTL pulses. If I only pass these pulses to the digitizer when I want the data. And meantime I still want to pass the TTL pulses continuously back to the mass spectrometer due to stability issue of the instrument. Does anyone know how to do this? Whant kind of DAQ I need?

 

I have a NI PCI-6221 along with a SCB-68 Connector Block now.

 

Thanks very much.

 

JianMASS SPECTROMETER.jpg

conexion usb pic 18f4550

$
0
0

hola que tal., tengo una duda., no tengo idea de como hacer una conexion por usb de un pic 18f4550., lo que quiero es controlar por medio del labview una sistemas automatico de control de temperatura., pero quiero enviar los datos que salen de un sensor de temperatura (lm35) al labview., con ello visualizarlo en el labview, y que en el labview envie unos datos que me sirvan de setpoint para el pic.,

por ahora el pic trabaja independientemente y el setpoint esta programado dentro del pic., pero quiero que este habilitada para la señal que envie labview., espero que alguien me ayude por favor., ya que es para un proyecto importante., gracias por su apoyo.

 

ANEXO ARCHIVOS QUE HE UTILIZADO.

 

keithley 2400 SCPI commands for Measurement Speed

$
0
0

Hi,

I am using Labview 2012 and Keithley 2420 to measure Current Response Time (Current output vs. Time) for our solar cells. I downloaded the template on keithley's website for I-V curve but modified the SCPI command parameters slightly to increase the sampling rate.

However, even with the settings now, I am only still recording 60 points / sec. After saving the code, I have another event that reads it at 256 byte. Also, when I set "TRIG:COUNT 100+" i get an error -410 about queries.

Is there a way to collect more points per sec than this? I read that the keithley 2400 can record up to 1700 points per sec.

Unless the problem lies within my Labview code and not the SCPI command?

Any help would be appreciated! ( i have attached an image of the SCPI command below):

http://postimg.org/image/dzh8lvwtp/

GPIB Daisy Chain Addressing Help

$
0
0

I am working on setting up some new equipment, a second setup of one we already have.  In both setups, we are using only one GPIB-ENET/100 and one GPIB-232CV-A with LabVIEW.  On the original setup, which works fine, here is the order of connection:

 

Computer --> GPIB-ENET/100, connected by an ethernet cable

 

High-Voltage Power supply --> Lock-In Amplifier --> GPIB-ENET/100 --> GPIB-232CV-A, daisy chained together with GPIB cables

 

The GPIB-232CV-A has a dip switch address 1, and is also running a DB-9 cable out to a series of stepper motor controllers.  In my Global addresses VI, these stepper motor drives are given a global address of 1, which I understand.  What I don't understand is why the High Voltage has an address of 3 and the Lock-In has an address of 4, which my other VI's do call out in order to communicate with them.  Does this have something to do with the daisy chain order?  Again, there is only one GPIB-232CV-A being used, and it has an address of 1.  Thanks.

What could cause a VI to change its behaviour depending on if it was run in isolation or as a part of a larger program?

$
0
0

I have tried to collect a list of frequencies used from an Agilent 4294A impedance analyser. I have managed to collect the data but there are a number of additional null/zero values at the start of the list of frequencies. This only occurs if I use the VI within a program. If the VI is run in isolation it works perfectly. Does anyone have any ideas what could cause this behaviour?

 

Thanks in advance

 

Chris. 


Support for Old Vibrating Sample Magnetometers

$
0
0

Hello.

I am a relative newcomer to LabView and I am trying to get some support for a few older Vibrating Sample Magnetometers (VSM) on behalf of my employer.  These machines are quite old and, although they have GPIB connectivity, I am having difficulty in being able to control them using LabView.  Although they use the IEEE-488 GPIB standard, they were built before the introduction of the Standard Commands for Programmable Instruments (SCPI), rather than the newer 488.2 standard.  As such, they work with their own proprietary commands, which are proving impossible to find.  I have a working LabView program that was written by a university student for a master's degree in physics.  However, I cannot communicate with the individual components, such as the gaussmeter, power supply, etc, using measurement and automation explorer.  They don't even respond to an "*IDN?" query without timing out, which I thought was standard.  I have tried lengthening the timeout time and tried to use drivers for similar instruments.  My question to anyone out there is, do you have the drivers or the programming manual for any of the components listed below?  The Vibrating Sample Magnetometers were built by the now defunct DMS/ADE.  The current owners of DMS/ADE can offer little support for such old equipment.  Likewise, is there something else I can try in lieu of these drivers and commands? 

 

Devices:  1.) DMS Model 1660 VSM, 2.) DMS/ADE VSM Model 4, which includes the DMS/ADE model 32KP gaussmeter with its own GPIB port.

 

 

Thank you for your time,

Liam

 

 

 

 

NI 9871 wiring to device with A and B terminals

$
0
0

Hello,

 

I'm trying to install an additional device to a NI 9871 (4 port RS-485) module (in 2-wire configuration) to its 2nd port with no luck.  The module communicates fine with one other RS-485 device over modbus in my network that is connected to the first port of the module.  The device in question (a WattNode power meter - http://www.ccontrolsys.com/w/WattNode_Modbus) has 3 terminals: "A-" (which the manual states is RxD-,TxD- and "B+" (RxD+,TxD+ in manual) and a Common - the X terminal is there but isn't used. 

 

I tried twisting together wires from pin 4 (RxD+) and 8 (TxD+) and landed on terminal A- of the device, while tying together pin 5 (RxD-) and 9 (TxD-) and landed on terminal B+ of the device, with the Common terminal to pin 1 (the pin configuration of the standard DB9 that comes with the module, theother end being  RJ50).  This seemed like the correct orientation but I do not get a COM light on the device.  I tried reversing the wire pairs landed on A and B to no avail as well.

 

Some other notes:

1) The baud rate, parity, etc is all correct because I was able to get the device to an RS-485 to RS-232 convertor and communicate fine using the on board cRIO serial port.

2) It is a short run (about 10 feet) so did not use resistors at first.  But then tried a 125 ohm resistor (what I had on hand) that didn't solve the problem.

3) I configured the previous (working) device under the Project Folder and have double checked that I created the Modbus I/O server in a similar fashion but I'm also not sure if I need both these Modbus I/O servers under the same library or some other intricacy here.  

 

Thanks in advance for any responders!

How to save to USB on DPO 4104

$
0
0

Sorry if this is in the wrong place.

 

I am currently automating a test that must set a scope to certain parameters, with a single trigger. Save a screenshot of the triggered response and repeat. I have this working on a tektronix TDS 7054, but I need it to work on the tektronix DPO 4104 as well. Most of the commands still function properly and I've fixed a lot of what does not using the programming manual for the series DPO4000 and MSO4000.

 

The main problem I am still having is: I want to save the screen shot of the response to the USB stick that I have plugged in (E:/), this is possible by sending the FPANEL:PRESS SAVEBUTTON command. However, this saves it with a random default name from the scope.

 

I would like to know how to set the filename and specify the directory and folder within it.

 

I'm using LabView, and A USB interface.

 

Any help would be greatly appreciated.

SR850 Data to Computer

$
0
0

Hi,

 

I am trying to figure out a way to obtain the data from my SR850 and send it to my computer. I want to send the data via a GPIB cable that is hooked up. I use a labview program called the LabVIEW-GPIB.VI that can be found in the labview examples. All I want to know is how to save the data gathered in the sr850 and transferring that data to the computer.

 

Thanks

ni-5112 with linux

$
0
0

Hello, 

I would like to use ni-5112 with SL6. I know that it was born to be used just with win, but maybe someone knows any workaround to use it with the recent drivers as Ni-Scope. I installed it, but "nilsdev" does not see the oscilloscope board. 

Shoud I try with "wine" or similar win emulator?

Other suggestions?

Thanx

--

Onaryc

Viewing all 5662 articles
Browse latest View live


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