Quantcast
Viewing all 5664 articles
Browse latest View live

Exception when initializing Lecroy Ivi driver using C#

Hello!

 

We bought a Lecroy WaveRunner 64MXI-A and tried to control it remotely, we already created a Visa Resource using MAX, tested it using the VISA test panel and everything seemed ok, we queried without problem.

 

The problem came when we downloaded and installed the ivi driver from lecroy http://teledynelecroy.com/support/softwaredownload/labview.aspx, we added the references like the documentation said and initialized it in this way using c#.

 

ILeCroyScope mylec = new LeCroyScopeClass();
mylec.Initialize("TCPIP0::LCRY0621N67647::inst0::INSTR", false, false, "Simulate = false");

 

it throws the following exceptionImage may be NSFW.
Clik here to view.
Smiley Sad
System.Runtime.InteropServices.COMException  Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED).

 

that exception isn't thrown when we set simulate = true. And we already tested it using a simple message based session, but no luck with the ivi driver.

 

Has anyone encountered this problem and found a solution? any help is helpful, thanks.

 

PD: I already contacted lecroy but no answer atm, so i am looking for advice here.

 

 

 


how to read 2 VISA Resource Name on same vi

hi all, i made program for read counter value via modbus, but i have limit slave only 31 slave and my program need more than 31 slave, so i made 2 VISA Resource Name on same vi (1 vi). but it only can read 1 VISA Resource Name, what the problem ? i check on device manager and change port number still didnt work, this is my simple program, whats wrong on my method ? please help. thanks...

Image may be NSFW.
Clik here to view.
ASK.png

Error when adquiring more than 292 measurements after sweep on keithley 2410 using GPIB communication

Hello.

 

I have a problem and i don't know if its Visa or Hardware error: Whenever i perform a remote  sweep on the SourceMeter keithley 2410,  adquire more than 292 measurements stored in the trace buffer using the  command :TRACImage may be NSFW.
Clik here to view.
Smiley Very Happy
ATA?, and send another command to the instrument after it,  i receive the error -410 Querry interrupted. The funny part is that i actually obtain the data, i can see the huge string, but, again, after i got the data in my hands and send another command, i receive the -410 error, the error dissapears if i turn the instrument off or i set it locally.

 

It doesn't happen the same when i adquire less than 292 measurements, i send commands normally and i can even query the measurements again and again and the communication doesn't break.

 

To clarify things even further, i performed a manual sweep with more than 292 measurements, then queried the data using MAX, and then sent another command using MAX, i still receive the error, but, as before, with less than 292 measurements, it performs ok.

 

I think its very weird, its as if with more than 292 measurements the instruments keeps sending data inifinitely, or Visa asking for data endlessly. And its weirder that it only happens on GPIB communication, using Serial communication it behaves ok.

 

PD: I ask here and not on the keithley forums because, well, its kind of dead.

 

VISA serial configuration

Today I made a little program with VISA serial.

 

The device connecting to PC has a "COM4"  displayed in Windows device manager.

Right click on the "COM4" icon I can setup the Baudrate etc (9600 bit/sec; Databit 8 ; no parity; stopbit 1)

 

In the labview program, I made a different setup (9600bit/sec; Databit 7; Even parity; stopbit 2)

 

The data can still be correctly receivd.  Why is it lik that?

 

Can anybody give a little explanation on it?  Thanks in advance.

Need help in plotting data present in read buffer

Hi,I'm trying to plot the current measurements from Keithley 6485 picoammeter.The current measurements I have are stored in read buffer.Can someone please help me in plotting the current values stored in read buffer wrt to time.I'm attaching the code used.

How to set DMM4040 series multimeter into remote mode.

I have develop a labview program to set DMM4040 series multimeter into remote. But when I am doing the same thing by NI-MAX it's working. I don't understand whst is the problem with this code.

 

It will be very helpful if you give me some suggestion to solve this problem...

 

Thank you

Agilent E4980A Query Interrupted

I've been working on the Agilent (Keysight) E4980A LCR meter using Labview 2014. I consistently get a "-410 query unterminated" error in my vi, and I traced it to the Read Measurement block. The Read Measurements block comes with the Labview package that can be downloaded from Keysight's website. I'm curious if anyone else has encountered this problem, and, if so, what is the best approach?

 

I've tried the different settings in the measurement length (short, medium, and long), and there is no change. I'm curious if maybe this comes from the fact that I am averaging six (6) measurements at each frequency. I've attached an older version of my vi (sorry I don't have access to my computer with Labview at this moment, and there aren't really any big changes that have affected the occurence of this error).

 

Thanks for your help!

Olympus IX-81 VISA Read Problem

I am trying to control the Olympus IX-81 microscope with LabVIEW and cannot seem to communicate with the microscope. I just recently configured the settings in the VISA test panel, and was finally able to both read and write to the instrument through serial, but when I tried the same settings in the VI's provided by National Instruments, I get the same timeout error at VISA read. Each command needs to end with \r\n, but I cannot find the place where I can set each command to contain this. I put a probe in the spot right before the error occurs, and noticed that under the transfer settings tab in the probe watch window, there is a lit up indicator titled "Use TermChar on read", but the Termination character box below it contains "A" instead of \r\n. Also, the "Send end on write" indicator is lit up, however, the "Send end mode for writes" box below it says "none". I am new to LabVIEW and this is my first time posting to the forums, so please forgive me if I have not explained my situation in the best manner. I have spoken with LabVIEW tech support multiple times to no avail. I have attached a screen shot of what I am referring to and also a zip file containing the VI's I am trying to work with. Any help would be greatly appreciated. If there is any more information I need to provide, let me know. Thanks.


I am trying to get a balance to interface with Excel using an SEE 488 to USE interface

I have just recently purchased an IEEE 488 to USB interface to use with an old Mettler AE 100 analytical balance.  My objective is to record the output from the balance in an active cell in EXCEL.  Th NI-488.2 software installed without event.  I have to admit I'm totally at a loss as to how to proceed from here.

Stop VISA from automatically sending termination characters on read

Is there a way to stop VISA from sending the termination characters on read? The instrument I am trying to communicate with (Olympus IX-81) requires 2 of them and it seems to be quite the hassle to implement them both during one command. I think it would be easier to just manually write them in with each command. 

NI USB to RS232 Converter, Computer doesn't recongnize always.

I am using a 1 port NI USB to RS232 converter, and the computer doesn't see the NI device always on startup.

 

OS = Windows 7

Labview 2014 SP1

NI Serial 14.0

 

Most times when I boot up my laptop I go to the Device Manager and I look under "Ports", I see the NI device with its associated COM #.  But there are times when I boot up the computer that it does not see the NI device in device manager.

 

This has happened on two different computers, both running Windows 7.

 

I have tried the following:

1)  Turn on the computer, log in and let it finish booting up.  Then turn on instrument. (most successful in getting it to work).

2)  Turn on the instrument, then turning on the computer.

 

I have tried changing the USB ports on teh computer as well, still doesn't work 100% of the time.  Failure rate is about 33% of the computer not seeing the NI USB to RS232 converter.

 

In either case, I don't see how it would matter; it is the computer not recongnizing the NI USB-RS232 device which is a passive device and is not associate with the instrument that it is connected too.

 

If the computer recongnizes the NI USB-RS232 converter, I have no issues with communicating with my instrument.  The only isse that I have is when the computer doesn't see the converter.

 

This is very cumbersome when trying to design a test stand for production in the computer intermittently sees the NI device.

 

If anyone has any ideas please let me know!

 

Thanks in advance!

Why is NIMax displaying ~30 GPIB devices when I plug in my GPIB controller?

Hi everyone,

 

I have an Agilent 82357A GPIB/USB interface. That works fine and I've used it with several devices before. Now I'm trying to use it with a Keithley 236 SMU.

 

When I plug it into my computer, with NIMax open, and refresh the "devices and interfaces" tab on the left, not 1, but 30 devices appear, all of the form GPIB0::16::N::INSTR, where N ranges from 1 to 30. I've set the IEEE address on my SMU to 16, so that explains the 16 I think.

 

Here's a picture:

 

Image may be NSFW.
Clik here to view.
NIMAX_SMU_GPIBs.png

 

Curiously, I can communicate with the first one (it's the only one I tried so far) either using NIMax's VISA test panel so making a simple VI.

 

What's going on though, why are there 30 devices present? Should I worry?

 

thank you!

Problema con displayado de datos en tiempo real / Problems with real time data display

 

Hola a todos.

Quisiera consultarles sobre un inconveniente que estoy teniendo con un proyecto.

El proyecto consiste básicamente en muestrear una señal biomedica -sonido cardíaco- (por medio de un microcontrolador con conversor A/D de 12 bits) a una velocidad de 8 KHZ, transmitir los datos através de la UART del PIC a un módulo de transmisión bluetooth configurado para transmitir a 461 K, recibir los datos en una PC (por el bluetooth nativo de la máquina)  y visualizar los datos en tiempo real (o lo mas cercano a ello) en una aplicación (estoy usando un waveform chart).

He logrado lo que comenté anteriormente, no obstante aún no logro configurar la aplicación para que los datos puedan verse en tiempo real:

* estoy usando una arquitectura productor-consumidor

* como cada muestra es de 12 bits, los dato se transmiten en 2 bytes (1 byte con los 4 bits mas significativos y 1 byte con los 8 bits menos significativos)

* el waveform chart lo configuré para que se muestren los últimos 15 segundos.

Entiendo que el multiplicador que se coloca en el waveform chart guarda relación con el período en que se reciben los datos, por lo que probé con 125 us (por ser el muestreo a 8 KHZ) pero los datos se grafican con mucho retardo (al rededor de 10 seg). Luego probé con 1.875 ms (considerando la ventana completa de 15 segundos que muestra el chart) pero la gráfica avanza de manera acelerada.

 

Les agradecería mucho su ayuda con este tema ya que hace tiempo estoy tratando de solucionarlo sin éxito. Les adjunto la aplicación por si les resulta de utilidad.

 

Les dejo un saludo cordial.

 

*****************************************************************************************************************************

Hello everyone.

I would consult on an issue I'm having with a project.

The project is basically a biomedical signal sample HR--sound (by means of a microcontroller with A / D converter of 12 bits) at a rate of 8 kHz, data transmitted using the PIC UART to a bluetooth transmission module configured to transmit 461 K, receive data on a PC (by the native bluetooth Machine) and display data in real time (or as close to it) in an application (I'm using a waveform chart).

I have achieved what was previously mentioned, however I manage to not set up the application so that data can be viewed in real time:

* I'm using a producer-consumer architecture

* As each sample is 12 bits, the data is transmitted in 2 bytes (1 byte with the 4 most significant bits and 1 byte with the 8 least significant bits)

* I configured the waveform chart for the last 15 seconds are displayed.

I understand that the multiplier is placed in the waveform chart related to the period when the data is received, so I tried with 125 us (being the 8 kHz sampling) but the data are plotted with much delay (around 10 sec). Then I tried with 1,875 ms (considering the full 15-second window showing the chart) but the plot progresses rapidly.

I would greatly appreciate your help with this issue because while I'm trying to fix it without success. I attached the application if they find it useful.


I leave sincerely.

Oscilloscope latest sample odd

I'm using VISA to get a waveform from RIGOL DS1054 oscilloscope and I am seeing a weird occurance when I view the waveform on the graph in my VI.

The terminal amplitude of the waveform is not the same as the oscilloscope (and also very weird looking). I tried with just measuring noise and also using a function generator to create a good sine but it can be clearly seen on both of them.

I took a screenshot so you can see 

Image may be NSFW.
Clik here to view.
why.png

It's definitely occuring between the SCPI of the oscilloscope and somewhere in LabVIEW because the display of the oscillscope looks fine and it is nowhere to be seen. What's really weird is that this is the untouched certified LabVIEW VI for the RIGOL oscilloscope.

 

I also had a similar problem where I was reading waveform data out of system exec function stdout and plotting it to a graph where the last sample always went straight to 0. I'm not sure if this is related or not

NI MAX doesn't find/see a network device

Good day everybody. I try to detect a LAN instrument from NI MAX, but an error comes instead, saying the device is not present in the system ( please see first.png). That's kind of weird, because I can ping the device, which is actually a Tabor ww1072 AWG... Could anyone possibly help me with the problem?

I use NI VISA 14.0

 

But e.g. I have a LeCroy scope connected to a hub, just like the Tabor ww1072 and I can both ping it and add as LAN instrument from NI MAX. 

Thank you all for help in advance!


NI-MAX for VISA 4.2 Runtime

Hi,

 

I've been searching for over an hour and have not come up with anything. Is there a runtime version of NI-MAX? I have deployed LabVIEW executables on many other PCs and am having a problem on one of them where the VISA Find Resource vi does not return the exact same COM port list as does the VISA Configure Serial Port vi's drop-down list box. For example, the list box might show COM1, COM4, and COM10, but the VISA Find Resource vi shows ASRL1::INSTR, ASRL4::INSTR, and ASRL12::INSTR (this one should be ASRL10::INSTR). So I need a program like NI-MAX to change of the alias on the PC with the VISA 4.2 runtime engine so that it matches what the VISA Configure Serial Port vi shows, which incidentially matches what is shown in Device Manager.

 

Tthe PC in question does NOT have the LabVIEW development environment installed, so it doesn't have NI-MAX. Is there a stand-alone exe of NI-MAX I can install on other PCs without the LV IDE?

 

Please help. Thank you,

Ed

6035E with Windows7 64 bit

I'm trying to use a 6035E PCI digitizer with 64bit windows 7.  Will NI-DAQmx operate this device?  If not, can anyone recommend a particular driver?

Anyone looking for a job in London?

Hi All, 

 

I am urgently looking for a Instrument Control Labview Developer to work on cutting edge Optical Communication Products in NW London. 

 

If you have experience in Instrument control, taking into consideration; While Loop, Queues, Event Case & VISA Components send your details to joe@isluk.co.uk for more information or call 0117 329 1222. 

 

Salary is up to £40,000. 

VISA read and write controls become unresponsive after there are no more lines to read

Hello all,

 

I am trying to develop continuous serial communication between an Arduino Uno microcontroller and LabView. The issue I am having is the controls for "Write" and even "Stop" become unresponsive after all the intial read lines are read in. I pretty sure this is because the read line prevents the full completetion of the while loop, suspending the entire loop until it reads something else in. I've tried a number of boolean operations and I can't seem to work around the issue. The code itself needs a way to detect there is no longer anything to read and skip the read statement and continue looping until the user enables the write command and writes something. Then the read command would would have more to read and again wait for user input.

 

Any suggestions and help would be great! Thanks!

 

*Note I have been using labview for all of 2 weeks. I'm getting used to it but I'm not a pro for sure.

 

Also I would like to give credit to physicslight @ https://physicslight.wordpress.com/2014/07/14/arduino-labview-serial-write-read/ for supplying an arduino auto detect sub vi for easy initializing of the VISA commands

 

 

visa com libraries

I'm having problems with the VISA-Com Libraries to communicate with a Keysight (N6700B) power supply.

I have some C# Code i am compiling in Visual Studio 2015, and it does not work. However, if i compile the same code in Visual Studio 2012, then it works.

Basically i am just doing simple communication with the device

 

using Ivi.Visa.Interop;
//...
string address = "USB0::2391::2311::MY54002380::0::INSTR";
ResourceManager rm = new ResourceManager();
FormattedIO488 myDmm = (IMessage)rm.Open(address , AccessMode.NO_LOCK, 2000, "");
myDmm.WriteString("*RST"); // reset the device
myDmm.WriteString("*IDN?"); // request the IDN string;
string IDN = myDmm.ReadString(); // This is where it fails, returning: "VI_ERROR_TMO: A timeout occurred"

 

 

Also, the power supply has an error state of:

Error -420, Query UNTERMINATED

 

The code does not work with VS2015, but it DOES work with VS2012.
(In VS2012 i get no errors at all.)

I have tried downloading the latest drivers from KeySight, and it still does not work.
(www.keysight.com/find/iosuitedownload)

 

Does anyone have any idea why it would be breaking with VS2015 but work with VS2012?

I've looked up "Quere Unterminated" and some say that it could be a missing Termination character "\n", i've tried adding the "\n" to both writeStrings, and it still fails.

I've also tried:

myDmm.IO.TerminationCharacterEnabled = true; // before the write string

// and

myDmm.IO.TerminationCharacterEnabled = false; // before the write string

// and

myDmm.FlushWrite(true); // after the write string

// and

myDmm.FlushWrite(false); // after the write string

// and

myDmm.WriteString("*IDN?" + myDmm.IO.TerminationCharacter); 


None of the above was necessary in VS2012, but i'm just trying different things with VS2015

Viewing all 5664 articles
Browse latest View live


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