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

Driver of the laser controller "Thorlabs ITC 510" in labview!!

$
0
0

Hi,

 

I am using labview in my internship and I really need the driver of the laser controller "THORLABS ITC 510", but unfortunately I didn't find it in NI site, and since I'm novice in Labview, I don't know how to develop my own driver. Has anyone already developed a driver for this instrument? Could you please send me a VI or help me develop one ? Thank you in advance, you don't know how much i'll be grateful if you help me with this pleaaaaaaase!! :smileyhappy: 

 

Y.


Oscilloscope .csv file output?

$
0
0

Im relatively new to this and am learning as i go. Dont have any background in electronic engineering.

Im using an Agilent Infiniium MSO8104A to record the voltage of the stepper motor control within a CNC milling machine and to record the movements of the x-axis and y-axis movements of the machine. I have circuits set up and probes attached. But i am also using a pre-amplifier circuit with a micro magnetic sensor to read the magnetic field of a PCB while the other axes are being read.

 

I am hoping to take an image of the PCB's magnetic field just for research purposes.

 

Problem:

I have everything set up and the Oscilloscope is reading everything accurately

 

Green = X-Axis

Purple = Y-Axis

Yellow = Magnetic field

 

http://i.imgur.com/8eYEecd.png

 

When i click File->Save->Waveform and save as a .CSV file then opening the file i expected to see 3 or 4 columns. 1 column representing the voltages being detected on each channel and a 4th column for Time. However when i opened it i only had 2 columns of voltage data. Even when i only have 1 channel active taking a reading and save it to the .CSV file it still has 2 columns of data in the fole.

 

I can tell by the slight voltage fluctuations in one of the columns that that must be the magnetic sensor readings as the sensor would not be as accurate as the probes.

 

I have spent the last week trying to figure out why only 2 columns of data (assuming they represent 2 channels) are being recorded and not all 3 channels at the same time. Can anyone lend some advice on what i am doing wrong, as i have played around with the Oscilloscope settings, read through most of the manual and i feel i am wasting far to much time on trying to figure this out. I have talked to a few people that are educated and qualified in electronic engineering and are more than familiar with the use of Oscilloscopes but have only been able to explain to them my issue. The lab i am working in is restricted so i can not bring one in to show them what i am doing and for them to walk me through fixing this issue. They have advised that it is really dependant on how you have your Oscilloscope set up and what it is i am trying to do. This Oscilloscope was set up for me prior to me commencing, so i have assumed it was set up for what i needed to be doing.

 

http://i.imgur.com/8eYEecd.png

 

 

"Control HW Communications Disabled" while using PRM1-Z8

$
0
0

Hi,
I was wondering if anyone has experienced difficulty and/or knows of a way to solve the following:

We have a PRM1-Z8 rotation controller in our lab. We can use APT User to control that perfectly but the Labview does not work.

I did exactly the same thing in the User Guide to Labview & APT but the Labview keep giving out error message.

 

Error; [Code = 10109]

Control HW Communications Disabled

A software call has been made to a control which is not currently communicating with any hardware. This may be because the control has not been started or due to incorrect serial number or missing hardware.

 

The VI was attached.

 

I've searched in the forums and verifed that:

1. The SN is the same as we saw in APT user.

2. The error is always there no matter the APT User is running or not.

3. The error is always there no matter the loop in the VI is there or not.

4. I am using MG17 motor as the ActiveX Object


If anyone can help it would be much appreciated.


Thanks
Renjie

Lecroy Wavesurfer VICP and LXI/VXI11

$
0
0

Hello,

 

I want to connect a Lecroy Wavesurfer 454 to Labview.

First I used the VICP connection, and installed the VICP passport. 

It does not work with NI MAX but it does with Lecroy Wavestudio.

 

Then I used the LXI/VXI-11 connection but Ni MAX does not detect my scope and Lecroy Wavestudio as well.

 

Further information, I don't use both softwares at the same time, the scope and the computer have ping responds.

I have updated the scope to the latest firmware 6.8.1.4 32 bit Firmware Upgrade.

The only way that Ni MAX reachs to connect to the scope it throug : TCPIP0::ipadress:1861:smileyfrustrated:OCKET. But then I have Time out error.

 

Thanks for help

VISA framing errors for multiline messages

$
0
0

This one's got me scratching my head a little.

 

I am communicating with a third party laser marker controller via RS232. I have a number of commands that, when sent, will generate replies. On reading them (VISA Property: Bytes at Port to VISA Read), I see two behaviours:

 

- for short messages, such as a status indicator, the read will complete fine with no errors. For instance, receiving the reply to ST, I'll receive 10\r - three bytes at the port, three bytes returned, no error or status generated.

 

- for multi-line messages, such as a list of all programs and fonts on the controller, the read will complete with the correct number of bytes requested and returned, but I'll receive an error -1073807253, which as we all know is a framing error. For instance, the following message is a response to the LE command - 193 characters at the port, 193 characters read:

 

TETE=160\r

SERIE=950922/001\r

COURSEX=110\r

COURSEY=110\r

PASX=25\r

PASY=25\r

VMMAX=50\r

VDMAX=3000\r

MATRIX=1\r

ENTREES=6\r

SORTIES=2\r

DMC=0\r

AXEZ=0\r

HPGL=1\r

UCBAR=1\r

PCBAR=1\r

EV=3\r

INVERSY=-1\r

IDTETE=04\r

FOCALE=160\r

SPE=\r

 

(I've added in the formatted line breaks, but the \r bytes are as-received)

 

I've read the KB; there's a flush after connection; the comms settings are correct; the cables are securely plugged in (yawn)... It's not timing between commands, as I'm manually debugging a functional global here: connect, flush, write, read states are executed in that order. and I'm not exactly lightning quick at changing the enum and pressing CTRL-R :smileywink:

 

The issue seems to be with multi-line messages with CRs, as I can generate the framing error for any multi-line message but not for single line ones. The last byte of each message is always a carriage return, as you can see in a multi-line, there are additional CRs.

 

I still read the reply fine, and get the data that I want back. I can just clear the error as it occurs and ignore it, but it feels like there might be something I'm missing.

Como definir una varible global en un programa con múltiples opciones

$
0
0

Hola,

 

Estoy trabajando con .vi, dicho programa lee distintas temperaturas de un equipo en particular, yo debo definir y leer una variable global de una temperatura en partícular, pero no se como definirla y leerla, debido a que son demasiadas opciones. Adjunto el .vi con el que trabajo. Cualquier sugerencia quedo atento. El código de la temperatuta que debo leer es "KRDG? B;", no se si esto sirva.

 

Saludos y gracias.

sudden "too many listeners on GPIB" error

$
0
0

Out of the blue, I am suddenly dealing with this "too many listeners on the GPIB" error, and my PC could no longer find any intsruments in NI-MAX. I have a GPIB-USB-HS connected to my PC, and 8 instruments (few HP4142b, Keithley instruments, power meter, etc) daisy-chained with various GPIB cables..I was able to control them in LabVIEW and was having no issue with it for months.

 

Then yesterday, LabVIEW (I have 2012)  suddenly hung when I was trying to access one of the instruments (went into "not responding" state). Upon recovering, it could no longer see any of my GPIB instruments in the drop down menu. I restarted LabVIEW, but still got the same thing..could no longer see my GPIB instruments. I restarted the PC, and same issue. Then I could no longer see any GPIB instruments in NI-MAX. I have spent a few hours debugging this, trying different setups, connecting to 1 or 2 instrument at a time..now with this new configuration I am able to get it to see 7 of my instruments, but not all 8. I have one Keithley 7001 system it does not seem to like anymore...when i connect it to the rest of the GPIB instruments, I get the "too many listeners" error and can't see any instruments in MAX. Odd because I have two of these 7001s in my setup, and it is seems ok connecting to one but not the other.

 

Overall this is all really strange and i cannot figure out what could be the issue...would appreciate any suggestions/tips.

 

things i have checked/tried

-all GPIB instruments have unique addresses..there are no conflicts. as i mentioned, things were working fine before..suddenly they weren't.

-doesn't appear to be a GPIB cable issue. i have tried different cables..same cable will be ok connecting to one instrument, but when i use it connect to this particular Keitlhley instead, none of the instruments can be found.

 

 

Also, i just noticed something, don't know if it's important.. for my GPIB-USB-HS, the "Ready" light seems to always glow amber...it is never green. And the "Active" light never seems to come on...even when i'm sending commands to instruments.  Not sure if this matters or not.

LabVIEW, Arduino, & SainSmart 16 Relay Controls & Error Handling question...

$
0
0

I've written a small VI that will control the SainSmart 16 Relay Module with a Arduino Mega 2650.  It's pretty basic, but it will switch the relays.  My question is how to handle errors in the VI.  Do they need to just be daisy chained or connected in some other way?  I have attached the VI for reference... If you have the hardware, open the "SainSmart16RelayExample.VI" first, this will give you a frontend to work with... the Arduino Relay Controls assumes you're using a Mega 2650 so the channels start at 22 and go through 37, these will need to be adjusted if you're using a different board.

 

Thanks!

Chad


Omron E5ZN DeviceNet

$
0
0

I am trying to communicate to an OMRON E5ZN Temperature Controller.  I don't know if DeviceNet or ModBus would be the best method to communicate with the module.  Can someone give me a suggestion or link on the best method to communicate using LabVIEW vi's?

GPIB ENET 100 and Newport MM4006 stop communicating after a few minutes, but work perfectly fine initially

$
0
0

Hi guys,

 

I have a NI GPIB ENET 100 with a static IP, newest firmware and a motion controller MM4006 from Newport. I used both VIs by NI and Newport and initially I can read and write every command I want and it works, but both won't work after 2-3min anymore. I get the following error:

 

Error 0 occurred at Send in SendCmd.vi

Possible reason(s):

LabVIEW: Error connecting to GPIB driver or device.
=========================
NI-488: Error connecting to driver or device.
=========================
VISA: (Hex 0x0) Operation completed successfully.

 

Looking into NI MAX, I get an error scanning for instruments after I get the error in labview. I tried a Quantum Composers delay generator that works through VISA, unlike the MM4006, and nothing seems wrong. Everything works without any time limit. Switching back to the MM4006 and the error occurence, I then have to delete the GPIB ENET 100 out of MAX and restart the ENET100. Do I miss something? I used device clear as a last step and when I let it sit for 1 or 2minutes I get the above error.

 

Thanks Jan

Control box between labview and tektronix oscilloscope and ISCO syringe pump

$
0
0

I need to order an interface box between my computer and several machines, these machines include tektronix oscilloscope, Tyledyne syringe pumps and thermocouple. please give advices on which one I shall order from NI.com

Thank you!

error: timeout expired before operation completed

$
0
0

Hola a todos buenos días 

 

Estoy trabajando con un medidor de presión el cual se comunica vía USB a micro USB, y no deja de marcarme este error (timeout expired before operation completed)

 

 

Yahe probado cambiando el timeout , el delay, la config de bytes at port y nada. Es más, ya probén todo esto:

 

http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0

 

 

Espero que me puedan ayudar, gracias de antemano

Agilent N9320B IP3

$
0
0

My goal is to obtain IP3 data from an N9320B spectrum analyzer. I figure the closest way to get there is through the VI that provides Third Order Intermodulation. I tried to modify the example for acquiring a measurement to measure the Third Order Intermodulation rather than Channel Power....but it doesn't work. I am getting Error -420 Query UNTERMINATED. Also I get Error -113 sometimes, "Missing header."

 

I have attached the picture of the diagram to this message. If I simply take out the part that says "Read Measurement (Third Order Intermodulation)" then it runs perfectly fine...although doing nothing. Does anyone have any advice? 

 

 

Labview is unable to obtain the proper waveform for my LeCroy 9450

$
0
0

Hello,

 

I am currently trying to make a labview program that can collect waveform data from my LeCroy 9450 and dump it into a file that excel could plot. I also would like labview to display the current waveform . I set up a simple code (just for testing purposes) using the LeCroy 9420/9450 drivers here http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E933A659CE034080020E74861 and simply setup the Get Waveform.vi with a chart readout. Initially, the waveform matched and I was able to write to a text file and get the proper data. However, it seems that whenever the instrument is turned off or some other factor, the Get Waveform.vi doesn't create the proper waveform anymore (in fact is quite distorted). 

 

I contacted NI about this issue to ask for help but they said nothing was wrong with the code and to check my hardware. I put my oscilloscope onto an old computer with ScopeExplorer software and could pull off the proper waveform so I figured the instrument is not the problem.

 

Being an older model, there is little discussion on this instrument so I'm at my last option of asking here for help. Any would be appreciated.

err: Driver status:(Hex0XBFFF0000)

$
0
0

Hi

 

I am trying to transfered the LabVIEW VI from an old computer with WinXP to a new computer with Win7. The labVIEW version is 7.1.

When I try to run the code in the new computer, I have the following error message:

 

err: Driver Status: (Hex 0XBFFF0000)Priimary Error (Hex0XBFFF0000)

 

PS: I have already transfer all the dll file it needs to run the code. Is it because the driver is not installed? If I need to install all the drivers for the instruments, am I supposed to install the drivers the same as in the old system or some new drivers for new system?

 

Thanks ahead!


How to comunicate serial port with IP

$
0
0

Hi! how can I comunicate a serial port with IP? Instead of usin the "VISA SERIAL"  I would need to comunicate with the device by IP. How could I find an example?

 

Thanks.

GPIB Communication with Lakeshore VSM

$
0
0

Hello, I am trying to communicate via GPIB to a Lakeshore 7300 VSM. I am using NI-VISA to send commands for testing communication in real time. Unfortunately, none of the commands I send are working. I have tried querying with *IDN?, but the response always times out. Any help or documents on how to use GPIB to communicate with this device would be very much appreciated. Also, if someone could provide an example command with exact syntax to use in VISA for testing purposes, that would be very helpful as well. Thank you in advance!

reading with high impedance output (Keithley 2440)

$
0
0

Hi all,

 

I am using Keithley 2440 and I am going to charge a capacitor and then measure the voltage of that capacitor to see how fast it discharges BY ITSELF. So I need to set the output to High Impedance and measure the voltage.

 

But my problem is how I can measure while I set the output to High Impedance. I made a vi to do that. But during discharging, Keithley voltage remains the same as charging. So, obviously I am not using High Impedance correctly.

 

Is there any tutorial for measuring voltage and/or current at High Impedance output setting?

 

Thanks

 

faster read and write

$
0
0

hello,

 

I've written a program to control an old spectrum analyzer (OSA) throught a GPIB device.

 

the program is written as an infinie while loop with varioud buttons which respond to changes in the button value.

 

the only think that is constantly done is to read data from the OSA. The OSA constantly sweep over the measurement ragne and store the data - 800 points;

 

I read it in my while loop and output it to waveform chart.

 

When I wrote (it was my first program in ;LabView) I read a lot of tutrials and used a standard scheme that was working for me: send read command, some delay and read data from the instrument. without the delay time between read and write (send read command) it did not work. I tried other configuration like waiting for status byte without success.

 

any how - this method is working but kind of slow...for example if the OSA sweep the entire range at 50 msec, when working through the computer it's down to about 1 Hz.

 

Is there any way to make it faster?

NIMAX 泰克示波器 通信

$
0
0

PC机和泰克示波器通信(TDS3104C),两者之间能ping通,泰克示波器上也显示通信成功,但是 NIMAX 却找不到示波器,请问是什么原因?NIMAX不支持泰克示波器的某些型号吗?

Viewing all 5662 articles
Browse latest View live


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