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

Keysight 81150A Multifunction Arbitrary Generator

$
0
0

Please if someone can help me I have to work with this generator to generate a waveform and I do not know how to do it is the first time thanks


Problemas comunicación modbus RTU con EE355

$
0
0

Buenas,

necesito comunicarme con un transmisor de punto de rocío (EE355) y no soy capaz.

Aquí están la guía rápida y la completa.

http://downloads.epluse.com/fileadmin/data/product/ee355/BA_ee355_short.pdf

http://downloads.epluse.com/fileadmin/data/product/ee355/BA_ee355_e.pdf

Utilizo un conversor RS485-S232 (sunix std1914sa) y otro RS232-USB. Conecto el pin 4 y 5 del EE355 al sunix pin 1 y 2 y lo alimento con 20v con los pines 1 y 3. Creo que hasta aquí voy bien.

Decir que con estos adaptadores no he tenido problemas para comunicarme con otro transductor de presión Keller.

Como base he utilizado un pequeño código que encontré en otro post y  lo único que recibo es el mensaje "Timeout error"

No se si el problema es de conexionado o de código.

Se que puedo sacar los datos en analógico midiendo intensidad pero la idea es hacerlo vía modbus.

Cualquier ayuda será de agradecer.

Un saludo.

Problemas de comunicación con fuente Sorensen XG 300-5.6

$
0
0

Hola,

 

Estoy tratando de controlar con LabView la fuente de alimenación Sorensen XG 300-5.6. Para ello estoy utilizando un cable GPIB y me comunico mediante VISA. Aparentemente las funciones funcionan correctamente, excepto la función READ. Escribo una función utilizando WRITE (por ejemplo, MEAS:VOLT?), espero 200ms y luego leo utilizando READ y leyendo 100 bytes (he probado cambiando este valor).

 

Hay veces que funciona, y veces que no. Estoy utilizandolo en una aplicación que lee tensión y corriente cada segundo, y tras 1-3 iteraciones que lee correctamente, salta un error (-1073807339).

 

¿Alguien sabe cuál puede ser el problema? ¿Estoy haciendo algo mal?

 

Muchas gracias,

Aitor

Re: sr830 Fast transfer mode hangs up

$
0
0

Anybody solved this problem? I am struggling on the fast reading SR830, too. I wish to have 200 or more readings per second from SR830 to computer.

 

WT

LV2013

ISOLATED DRIVERS FOR GPIB-USB-HS+ AND USB-232

$
0
0

I'm in the process of migrating a legacy data acquisition system to a modernized hardware/software platform. As a stepping stone, I need to use NI GPIB-USB-HS and USB-232 devices. The driver download for both together is Almost 1.6 gigs. That's quite ridiculous for two simple communication devices. A standard prolific USB-RS232 converter is no more than 7mb, and that includes drivers for all releases of windows. 

 

Is there a way to install ONLY the drivers I NEED for these two devices. If not directly, can I do a full installation of the driver package on my laptop, and then just copy out all the files I need? And place them in the proper directory so I don't need all this mess of crap I don't need. It's kinda crazy to me I can't just get a simple set of drivers for a device. Thanks for the help!

How to Install VISA 32-bit from the NI Website on a Computer (Windows Xp) without Internet Access

$
0
0

Hi,

 

I'm trying to install NI-VISA 15.5 on a Windows XP (SP3) 32-bit desktop, but I get a message saying that the downloader needs to access ni.com. My desktop does not have internet connection so this isn't possible. Is there any other alternative to download the driver without internet connection?

 

Thanks

+91-9975863120@@@ love related problem specialist, BABA ji in Pune

$
0
0

+91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune +91-9975863120@@@ love related problem specialist, BABA ji   in Pune 

Labview crashes suddenly while running

$
0
0

Hello,

I am Lipika, working on a monitoring system  using labview.

Though the serial communication between the hardware and the labview is made successfully  initially , the connection  is  lost during the runtime of labview  and the labview crashes.

It does not happen all the time . It mostly occurs during auto run of the device  when scripted programs are run for testing.

In that case,  both labview and the system needs to be rebooted to lay the connection again which is troublesome .

The PC has 12 core processors , with 256 RAM ,OS is Windows 7.

Kindly suggest solutions  to get rid of this.

Best regards


Error -221 when runing Single Measurement Example in Keithley 2700 with 7702 module

$
0
0

Hello All,

I am trying to use the examples provided in the Keithley library in LV 15. I am using ''Keithley 27XX Single Measurement'' for front and rear panel measurements. As far as the front panel is concerned I don't think there is any problem. But while using the rear panel with 7702 module I can only measure DC Voltages and nothing else (ACV, DCi,DCV,Resistance etc). Every time I try to measure some thing other than DC voltage I get an error message, error-221(Settings conflict). I am attaching the file too. Any kind of help is appreciated.

How to save data on a PAR 273 potentiostat via GPIB

$
0
0

Greetings,

I am trying to use a PAR 273 potentiostat to perform and record cyclic voltammetry via GPIB/USB interface with a computer. Using labview's I/O feature I can control the potentiostat with the commands provided in the manual. I have determined how to run a CV, but I can not figure out how to have the device record the data. Can anybody with experience in using PAR potentiostats advise me as to how to save data points? I read in the manual that the potentiostat can save data to a curve in its internal memory and then dump the data to the computer, but I have not been able to save the CV data to the curve. Thank you!

Getting the IOSession from an IVISession that was created in a wrapped IVIC driver

$
0
0

Dear all,

 

I have created

  • a C# wrapper
  • for the IVIC driver of the 34420A Micro-Ohm Meter from Keysight (formerly Agilent)
  • using NI Measurement Studio

 

I am able to initialize the instrument using the (wrapped) init function, which returns a valid IVI Session Handle. However, as the wrapped driver does not expose full control over the underlying interface, I want to mix calls to the wrapped IVIC driver methods and "pure" Visa commands. Therefore, I would have to read the IVI_ATTR_IO_SESSION attribute from the IVI session, but I am not sure how to do this. The wrapped IVIC driver does expose the following getAttribute methods:

 

  • public static extern int GetAttributeViInt32(HandleRef instrumentHandle, string channelName, int attributeId, out int attributeValue);
  • public static extern int GetAttributeViReal64(HandleRef instrumentHandle, string channelName, int attributeId, out double attributeValue);
  • public static extern int GetAttributeViString(HandleRef instrumentHandle, string channelName, int attributeId, int arraySize, StringBuilder attributeValue);
  • public static extern int GetAttributeViBoolean(HandleRef instrumentHandle, string channelName, int attributeId, out ushort attributeValue);
  • public static extern int GetAttributeViSession(HandleRef instrumentHandle, string channelName, int attributeId, out HandleRef attributeValue);

However, calling 

GetAttributeViSession(_iviSessionHandle, "", IVI_ATTR_IO_SESSION, out visaHandleRef)

Results in a marshalling error, and calling 

GetAttributeViInt32(iviSessionHandle, "", IVI_ATTR_IO_SESSION, out visaSession);

returns 0.

  

What am I missing here?

 

 

EDIT:

 

I found a way to circumvent the Marshalling Error.

Within the C# wrapper, I added an overload of the GetAttributeViSession method that takes an IntPtr instead of a HandleRef

  • public static extern int GetAttributeViSession(HandleRef instrumentHandle, string channelName, int attributeId, out IntPtr attributeValue);

This method can be called using 

 

GetAttributeViSession(_iviSessionHandle, "", IVI_ATTR_IO_SESSION, out visaSessionPtr)

The pInvokeResult is "0", and visaSessionPtr contains a valid Int32 number. However I have not tested the functionality yet.

 

Keithley 2601 & Labview

$
0
0

I have Keithley 2601 and I am using attached example vi from NI. But I am getting error 1073807339, and instrument doesn't go into remote state.

Any help in this regard would be  very much appreciated.

Keithley 2601 & TSP cmds

$
0
0
I have to sweep voltage and measure current using Keithley 2601. I am using Rs 232,  with a self-made 'vi'. I am communicating with instrument and trying to send following TSP commands but getting errors 104, 285, 286,350.
 
current = {}
smua.source.output = smua.OUTPUT_ON
for j = 1, 5 do 
smua.source.levelv = j 
current[j] = smua.measure.i()
print(current[j])
end
smua.source.output = smua.OUTPUT_OFF
 
Can anyone please help!

Feedback loop design

$
0
0

I'm wondering if you can recommend the hardware we need for this project
I need to understand what hardware I would need to buy in order to build a feedback loop where the blood pressure (measured from a rat) would be ‘outputted’ and able to control a motor that either sucked air out or pushed air into a sealed box that has half of the rodent inside. We have a simple version of this box designed where I can use a vacuum to suck air out of the box which ‘pulls’ the blood into the lower half of the rat (this is what the sealed box allows). The blood pressure is then reduced. I would like to now advance this by being able to say “I want to reduce blood pressure by exactly 10mmHg” – so the blood pressure would then precisely control how strong the motor is turned on….
 

GPIB-USB-HS driver not working under Windows 10

$
0
0

Hello, I would like to have a feed back  regarding an issue I am experiencing with the GPIB-USB-HS driver in Windows 10. Attached is the a snap of the VISA and NI-488.2 version I have installed. First time I installed the drivers it actually worked for windows 10, but after a windows update it did not worked any more. I have reinstalled the divers but still is not working. Can I have any feedback on how to proceed next. 

 


GPIB.PNG


reading watts and current inside state machine from xitron 2801 power analyzer

$
0
0

Hello! I have one vi that I created and another vi from someone else. I am trying to pull the data (watts and current) from the power analyzer similar to how I have the top half of the state machine.vi in the get measurement state. I have some code for pulling information from xitron but I am a little lost on how to get what I need. Basically I need to just connect the output of watts and current to the "voltage" array and "voltage" graph. Any help would be greatly appreciated.

Continuous data acquisition

$
0
0

Dear all,

I have an oscilloscope (DPO4104B) and use the certified LabVIEW plug and play instrument driver. I want to do continuous data acquisition (1 kHz repetition rate) with a trigger signal and afterwards send all the acquired data (or just the mean value) to the computer via USB. Unfortunately I cannot get my program run with the help of the manual and the driver description. In my block diagram the following subvi's/commands are run sequentially;

1. initialize.vi

2. configure delay trigger.vi
3. configure continuos acquisition.vi
4. visa write; "ACQSmiley FrustratedTATE ON";
5. program waits for 100 ms to acquire data
6. visa write; "ACQSmiley FrustratedTATE OFF";
7. read waveform measurement in memory.vi
8. close.vi

I get the error that there is no waveform to measure.
I would be really grateful for some help since I'm stuck with this problem for a long time now.

Cheers, Greg

VISA port cannot be opened after disconnecting a device and reconnecting it

$
0
0

I have this very annoying problem in LabView (2014): I have devices that I'm communicating with over a virtual COM port (VISA). If I erroneously disconnect or power off that device while my VI is running, then I get an error, which is normal - but if I repower or reconnect the device, the VI will never run again and gives the following error:

 

Error -1073807343 occurred at VISA write in xy.vi

Possible reasons: (Hex0xBFFF0011) insufficient location information or device or resource is not present in the system.

 

When this happens, I can still see the COM port in the COM port list (placing a control on the front panel); But it's marked as connected. It appears to me that if I unplug the cable, VISA doesn't properly close/release the port and it remains there as some kind of zombie port, and when I reconnect my device, it still can't access it because the old error is still there.

The only thing that helps is to restart LabView, which is a bit of a nuisance.

 

Can anyone suggest how to solve this without restarting LabView?

Serial communication with Fluke 7526-A calibrator

$
0
0

Hi all,

I need to communicate Labview 2015 with Fluke 7526-A calibrator over RS-232/RS-485. I have searched in the web site for 3rd party instruments drivers but I did not find drivers for this calibrator model. Is there any labview driver available?

Thanks in advance

NI IO Trace 17.0 export to Textfile and aquistion of 1024 or more bytes at once does not work

$
0
0

Hi.

 

I use NI IO Trace that comes with NI-VISA 17 to log comports. The logging is incomplete if I try to log directly to text file and the export to textfile does not work, if I logged it in the .nitrace format.

Furthermore, if I read for example 1024 bytes at once in LabView, NI IO Trace hangs and crashes.

These case are work with NI IO Trace 16, but unfortunately I cannot installed in parallel?

 

BR

 

Marcus

Viewing all 5671 articles
Browse latest View live


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