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

Read timeout issues SR844 lockin

$
0
0

Hello,

 

I have a big timeout issue with the communication to my Stanford SR 844 lockin amplifier.

 

I'm using the labview driver of the instrument. Basically, I initialize first, then  I configure it and when I try to read a data I have a timeout error (-1073807339) on the read. I have no idea of how to fix it, I tried to put some delay etc... but nothing works.

 

Does anybody have an idea of how to solve this issue ?

 

Thank you in advance,

 

Anoulak


How can I read the serial number from a NI-GPIB adaptor?

$
0
0

I am currently using LabWindows/CVI 2013 and would like to know how I can read the serial number and model type from a NI  GPIB-USB-B, GPIB-USB-HS, and GPIB-USB-HS+ adaptor.  This adaptor is the controller for my system.

Getting MAX to recognize my USB/Serial converter?

$
0
0

Hi all, I'm trying to communicate with a machine that uses serial, connect to it through this USB/serial converter. I'm running Windows 10, I have LabVIEW 2015 SP1 32 bit, and NI MAX v15.3. I've installed the drivers that came with the USB/Serial converter. I've updated all the things I can in the NI update service. The USB/Serial shows up in my device manager as COM3.

 

I've communicated with the machine with this USB/Serial converter on this computer, using Python, so I know it works, the machine works, and I can communicate with it on this machine. However, getting it to work with MAX/LV is giving me a lot of trouble.

 

With it plugged in, when I go to MAX, under "devices and interfaces", there's a VISA error:

 

0xBFFF003A (VI_ERROR_INV_SETUP)

viFindRsrc returned 0xBFFF003A (Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).)
Please make sure VISA is properly installed on this system.
Possible causes for this error:
1. More than one Passport may be attempting to claim the same resource. You can try disabling Passports to figure out which Passport is causing the error.
2. You have connected multiple unconfigured plug-and-play devices that have the same resource name. For example, the vendor ID and serial number may be the same.

By default, all my passports were enabled. If I uncheck the serial one (NiViAsrl.dll), and restart MAX, the error goes away but nothing shows up under devices and interfaces.

 

If I put that one back and instead disable the USB passport, now it shows up under D&I as ASRL3::INSTR "COM3". However, when I try communicating with it in the VISA test panel, I just get timeout errors. Likewise if I try with a simple LV VI.

 

If I only disable the PXI passport, ASRL3::INSTR also shows up, but I still can't communicate with it. Likewise with the Tulip passport.

 

What's going on? I know I'm 90% of the way there because I've actually communicated with the machine on this PC, but for some reason MAX doesn't want to play with it. The termination character for this machine is \r, carriage return, which I've tried setting in MAX, and my LV VI, but it doesn't seem to make a difference.

 

What can I do?

 

 

 

serial port read strings to numbers

$
0
0

Hello. I have a Teensy 3.1 ADC sending out data at a rate of 1KHz to the serial port , and i have a while  loop that reads the port by using "Bytes at port " as counts to "read serial " block with a time delay of 1 milliseconds inside the while loop.It seems though i read with or withot the time delay inside while loop ,i miss the data in between in a random manner. 

The data after converting into numbers using "spreadsheet string to array" function in a waveform chart, i see random spikes and dips for a sinusoidal wave fed as an input which is of 1 Hz frequency.

I doubt that while reading itself ,the strings are being concatenated with one another which creates these random spikes.,since a continuous sine wave input should provide a smooth waveform output in the chart.

I have taken ADC data from Teensy directly and plot them in Excel sheet, and no spikes at all. 

Can the problem arise from labview not in synch with ADC outputrate ? or the conversion from strings to numbers?

Please have a look at the VI i have attched.

Thanks .

Simulate module

$
0
0

Hello! I am building a testbed for manual control of synchronous generator, and I will use two modules of NI - NI 9476 and NI 9209. I need to wait for some time, so the modules are purchased and delivered, so my question is - can I simulate these modules somehow? I am a rookie, so will appreciate any of your help. Thank you in advance.

Alias is not stable

$
0
0

Dear Board,

 

We are using power supply unit from Lambda connected to COM port 1. In NI MAX we have aliased it as Lambda instead of COM 1.

 

It is for an End of  Line system . so the PC runs at Max 18 hours a day..

 

The Alias name is not consistant. It some times renames it self back to COM 1. So what could be the possiable reason for that ?

 

And how to resolve it ?

 

Thanks and Best regards,

Sarat

port 5000 resource conflict

$
0
0

I do not need the GPIB-ENET interface on my computers.  I have a resource conflict on port 5000, which the GPIB-ENET uses.   Can i disable just the service that uses port 5000?  Can I uninstall the GPIB-ENET server?  Is there a switch I can use during the VISA install that will prevent that service from being installed?

 

Thanks

 

Ed K

 

install visa in Fedora23 Error( updateNIDriver )

$
0
0

I have installed the VISA15.5 for linux. Still could not control the serial. So I need to updateNIDrivers.

 

The output of "uname -r" is 4.2.3-300.fc23.x86_64.

I wondered  that the file In /usr/src/kernels is 4.5.7-202.fc23.x86_64 and  file in /lib/modules is 4.2.3-300.fc23.x86_64, they are different.

 

When I type updateNIDrivers 4.2.3-300.fc23.x86_64, the output is:

 

<11>Jul 13 10:50:11 nikal: ERROR: Error locating kernel sources for the requested kernel version (4.2.3-300.fc23.x86_64).

usage: /usr/local/bin/updateNIDrivers [--no-prompt] [kernelVersion]

 

When I typed updateNIDrivers 4.5.7-202.fc23.x86_64 , the output is:

 

<11>Jul 13 10:51:02 nikal: ERROR: /lib/modules/4.5.7-202.fc23.x86_64 directory not found.
<11>Jul 13 10:51:02 nikal: ERROR: Error locating kernel sources for the requested kernel version (4.5.7-202.fc23.x86_64).
usage: /usr/local/bin/updateNIDrivers [--no-prompt] [kernelVersion]

I am not good at linux, could someone tell me how to solve the problem.

Any suggestion would be good.

Thank you.

Li


Problem with current measurement with Keithley2700

$
0
0

I'm using Keithley 2700 to measure the voltage and current and communicate through USB. I'm using the example VI's from the Keithley 2700 device: Continuious Multi Read.vi

 

I've already got the voltage data successfully. But when I use the same VI for current measurement, the error -1074000000 occurs with the info: 

-222,"Parameter data out of range"
-221,"Settings conflict"
-221,"Settings conflict"

 

I can't find the error source. I've opened auto range function. Is the erorr 222 depending on the value of current? I've also scanned the channel with no current, but the same error still occurs.

 

I would be appreciated if anyone could help me to solve this problem.

 

thanks

FFT the signal which read from analog pin through Arduino

$
0
0

Hi everyone,

 

I'm using Arduino to send my signal to Labview. The signal display on the chart pretty good but I could not realize it's spectrum (I'm testing with sine wave Vpp = 1 at 100Hz). 

 

What will I have to do to see the spectrum? I think the signal output (after ADC_Read function) is quite different from others.

I hope someone can help me this problem. Please, I really need your help. It's my final project!!!

 

Attached is the block diagram and front panel include signal (dont care about the signal had just half above because of ADC_read, this is not my problem) and the spectrum. Problem is I can not understand why the spectrum was that and how to fix it?

front_panel.JPGblock_diagram.JPG

gpib-usb-hs driver windows 7

$
0
0

I am trying to get windows 7 64-bit to recognize the driver for gpib-usb-hs.

 

I installed software NI4882_1550f0.exe obtained today from the NI website but windows will not recognize the device driver as being installed.The device shows a green light under active but I have not plugged into into any measurement equipment.

 

Here is a picture of of computer with device manager, the windows software installer and ni-max and product registration open

 

I am at loss what could be going on.

 

Thanks for any help,

Amish

gpib-enet 1000: Can ping IP but cannot communicate with GPIB instrument connect to it

$
0
0

Hi,

 

Our lab normally use Agilent GPIBLAN gateways (sorry for mentioning this) and I have used those to communicate with GPIB instruments without problems before.   I have  had to a NI GPIB-ENET 1000 gateway recently (new to our lab)  and I thought it would be more or less a 'drop-in' replacement but I can't seem to be able to communicate with GPIB instruments with it.    I have followed the hook up instructions (as per online pdf), installed the NI software (NIVISA1501full.exe) from ni.com and although I can ping the gateway device, I cannot communicate with GPIB instruments connected to it (a simple Agilent 34401A DMM).  For the record, again, I can do this in a snap with the other vendor product.   I have used the NI MAX tool to try and troubleshoot but it won't let me add a GPIB ENET 1000 interface. The end goal is to use in conjunction with Matlab as all of our lab test scripts are Matlab).  

 

What am I missing?   Can you help me troubleshoot this so I can use your device?

 

Regards,


EricEng

how to plot real time data recieve by serial port

$
0
0

hi
i write a program in ARM lpc1768 for A/D converter and send the result to pc by serial port in labview that i attach the design.
i can recieve data in binary and numeric.
now i wanna plot this data into the garph like time/amplitude (real time) but i cant import the data as input for the wave form chart
hope to someone can help me in this case!

 

Instrument Control Using DB25 Connector

$
0
0
Hello all I need to control an instrument using a DB25 connector. Specifically, I need to toggle specific pins on the connector TTL high/low to control the functions of the instrument. Beyond this I'm at a loss. I'm using LabVIEW to send commands, and I have a USB-6000, which has digital I/O. Would I simply be able to wire up a male DB25 connector to a breadboard, to my USB-6000 and use LabView to send digital signals through the DAQ? What alternative methods are there (I realize this is a broad question). Thanks!

serial communication

$
0
0

I  have done a Serial Communication connection through LabVIEW  using RS-232  by short circiuting pin no. 2 and 3 of the 9 pin male (COM port)connector and using the read and write buffer ,at that time its reading the data whatever we write into the buffer.But  now I am using the same procedure to analyse the  output of the microcontroller PIC 16F628A by feeding the output signals Rx & Tx from microcontroller directly to the pins 2 & 3 and into the read  buffer,  now its showing some error (as indicated in the attachment).So,please suggest me accordingly.

 


plot waveform by serial port with ARM

$
0
0

hi there
i programing a processor arm lpc1768 for A/D converter (8-bit) then send data by serial port (milivolt) and recive it by labview correctly but the problem is when i plot it to the wave chart (real time) the value that shown are discrete not continues! and because of that my output waveform is nothing but some peak!
can anyone here help me with that?
i attach my design and the result
thanks

How to change NI-VISA runtime "instrument configuration"?

$
0
0

How to change NI-VISA runtime "instrument configuration"? For example, I want to configure a LAN address (TCPIP::156.140.113.84::inst0::INSTR).

 

I don't have NI-MAX, because its just a runtime install. Do I have to use the NI System Configuration API? Or is there some other mechanism?

compatible drivers for 488.2 and 488A

$
0
0

I would like to adress different experiments with a single computer, using Visual Basic. Some old ones use Keithley KUSB-488A, others the more recent NI GPIB-USB-HS (488.2).

 

While drivers are available for both, the setup of the 488A driver won't let you install this driver, unless you first uninstall the 488.2 one.

 

Is there a way to use both GPIB interfaces on a single computer, using Visual Basic ?

Keysight PNA GPIB not detected in NI MAX

$
0
0

I was using Keysight PNA N5225A with my old PC having Windows 7 through GPIB USB interface and everything was working fine. Recently I switched to new PC having Windows 7 and tried the same program. However with a new PC, it was not detecting the PNA GPIB interface. However after I installed the correct driver, it is showing in Windows device manager.

 

However, it is still now showing in NI MAX and hence I can not run the program as it does not show the resource name. When I checked with "Keysight Connection Expert", it is showing that the PNA is there with the VISA address GPIB0::16::INSTR.

 

I tried everything and tried installing all the updates but I still could not manage to see it in MAX. I also have NI-488.2 installed. With the same configuration, it is working perfectly fine with my old PC. Can you please help solve this problem? Is there any more driver I need to install?

 

Thank you.

GPIB-PCIe card to GPIB-USB converter: do I need to re-program the labview files?

$
0
0

Hi, 

 

Recently I need to move part of my equipment from one site to the other. I have bought a new desktop computer (Windows 10 64 bit) and am trying to find a GPIB to USB converter. On my current platform I was using a GPIB PCIe card and several labview programs to control the instruments. I am wondering that if I change to a GPIB-USB port, do I need to re-do the programming of those labview files in order to make everything work as normal? 

 

I have done some research about the prologix USB-GPIB port and it seems like it need to go throught a lot of re-programming. I am wondering if using NI GPIB-USB-HS will give similar kind of troubles?

Viewing all 5676 articles
Browse latest View live


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