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

Visa Interactive Control Error for NI 9871 with NI 9149

$
0
0

Hello,

 

I am having problems connecting to the serial ports on the NI 9871. I have followed the tutorial here (http://digital.ni.com/public.nsf/allkb/F3AB0B5D7DBA367C86257982005BBF2C)

 

and have gotten the server running. However, when I try to select the 9149, the following error message pops up.

error_visa.PNG

 

However, I can see the com ports within max but not in my project manager (shown below).

 

coms showing.PNGnoneinproject.PNG

 

Additionally, when I try to access the ports through the VISA resource name in the block diagram, nothing shows up.

 

Thank you in advance!

 

 


VISA and MSI interrupt

$
0
0

Hi!

 

VISA Driver wizard is able to create driver for PCIe card with interrupt support.
This is "legacy" interrupt (came from PCI) with ABCD lines.
It's take so long to determine interrupt source and disable it.

 

Then I found that on some NI product MSI interrupt is supported.
post - http://forums.ni.com/t5/Multifunction-DAQ/Is-PCI-6225-PCI-2-2-compatible-Can-it-do-MSI-interrupts/td-p/1702470
article - http://digital.ni.com/public.nsf/allkb/81D497CC840522438625770C0065D891?OpenDocument

 

Is it possible to use VISA driver with MSI interrupts ?

 

Thanks!

BK Precision 1786B Driver not functioning

$
0
0

I have downloaded the BK Precision 1786B LabVIEW drivers from BK's website.  As the communication via the ITE cable only proceeds via 26 byte hexadecimal code, I'm having difficulty checking the communcation in NI Max.  So, I downloaded the stand-alone PV1758_1788.exe program (a;lso from BK's website).  This program does work and it correctly controls the power supply.  This tells me there is communication between the computer and the supply.  Clos this program and open LV.  However, I cannot get the drivers to talk to the device even though I'm using the same port settings in LabVIEW as are used in the stand-alone controller.  If I cannot make the drivers work is there a way to embed the executable and have a VI call that instead?  If not, what advice can anyone offer me regarding getting these drivers working?  For reference I'm using LabVIEW 2013 SP1 32 bit.

Cannot see my instrument in NI-VISA config, Red Hat 5, USB connection.. HELP

$
0
0

Hey everyone,

 

Trying to automate the keysight E5071c network analyzer, however, NIVISA configuration utility doesn't find the device

 

My setup:

 

Red Hat 5

NI-VISA 5.4.4 installed withtout any issues

keysight E5071C,  connected via usb.

so far i've tried almost everything, at least as far as i know.

 

 

I found the usb device location for my instrument at          /dev/usb/usb488-0957-0d49-0-MY46522561.

 

-I ran the hotplug fix and supplied the vender and product ID, said it worked successfully

 

-I ran the NI-VISA configuration from the /vxipnp/linux/NIvisa/USB, and it doesn't show any USB devices.Only serial.

 

 

-running lsusb -v produces

------------------------------------------------------

Bus 002 Device 007: ID 0957:0d09 Agilent Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 254 Application Specific Interface
bDeviceSubClass 3 Test and Measurement
bDeviceProtocol 1 TMC
bMaxPacketSize0 64
idVendor 0x0957 Agilent Technologies, Inc.
idProduct 0x0d09
bcdDevice 1.00
iManufacturer 1 Agilent Technologies
iProduct 2 E5071C
iSerial 3 MY46522561
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 3 Test and Measurement
bInterfaceProtocol 1 TMC
iInterface 4 tmc488
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 1

----------------------------------------------------------

 

-I've also granted r/w permissions to all users on all usb devices.

-i've added....:                  none         /proc/bus/usb        usbfs          devmode=0666       0  0

  to the /etc/fstab file, and rebooted.

-and lastly, according to an NI troubleshooting guide, I added   'blacklist usbtmc'   to the /etc/modprobe.d/blacklist   file

 

Any more suggestions?

Thanks for your time!

JM Concept Xalix 9000U1 module for an Analog signal

$
0
0

HiThere,cananybody guide me how to configure a JM Concept Xalix 9000U1 module for an Analog signal.

I need to do testing with proportional control valve.

 

I will be highly thankful.

 

GPIB-USB and SR245 error on LabView

$
0
0

I am attempting to communicate with a SR245 device with a GPIB-USB-HS device on LabView.  I can communicate with the SR245 on VISA (I can send commands to read and write and change the vltages at the ports), but I cannot communicate in labview.  When I attempt to use the Simple Serial.vi on labview, I get a "VISA:  (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource" error.  I was wondering how to fix this error and get labview to send the same commands I can get VISA to send.

agilent 2000 x series, problem with the trigger edge vi

$
0
0

Hi!

 

I'm trying to make a program that takes a signal from a sensor using the agilent 2000 x-series driver. I set all the characteristics of the trigger, but he problem is the the program is ignoring this trigger and taking all the signal. so, when I look for the database I have a lot of data that is completely unuseful. I don´t know if I'm doing it incorrect so I atatch a screenshot of my program.

I based this program in the continuous adquisition vi that was included as an example.

 

Please help me.

 

Thank you very much

Control a generator with a control volage by serial port RS232

$
0
0

Hello everybody,

 

I would like to control a generator thanks to a control voltage. This last one would be sent to a switch wich turns on the generator.

To do that, I want to link the switch and the computer with a serial port RS232 by using NI-USN 232 cable.

I made some research on this subject and I am only a beginner on LabView but I would like to use one (or several) pin which will send 5V in voltage when I want.

 

Is that possible? Is there another way to make it?

 

Thanks in advance.


how to communicate with a HP network analyzer through GPIB Ethernet controller

$
0
0

through NI Max, I am able to see my GPIB ethernet controller, but I am not able to see the instrument connected. I have the HP-IB address for the network analyzer as 

 

for 8751: 17

controller: 21

these were taken from the local properties of the instrument. In NI Max, under the general settings of the GPIB interface properties, what should I mention in the primary address and secondary address column to be able to communicate with my network analyzer. Moreover, should I keep the system controller option ticked or should I unmark it ?. Awaiting response asap.

 

Thanks in advance !!!

 

Trouble using one Keihtley 2400 to preform a current sweep to drive a laser diode and use a second to measure a voltage from a laser power meter.

$
0
0

I am trying to drive a laser diode with one 2400 Sourcemeter using a current sweep, while simultainiously measuring the voltage of the analog output of a Thorlabs Pm100a powermeter. I have been attempting to cobble together the triggered measurments example with the sweep and measure example, but I cant quite figure it out.

 

Attached is the franken-vi I have created.

Any help is greatly appreciated.

 

Dan R

USB HID Device LabWindows Communication

$
0
0

Hello!

 

I'm working on creating a system that will consist of a computer communicating with up to 10 different devices that communicate using USB HID. We will be making multiple duplicate systems, and I'm looking for the best way to approach the communication.

 

At first, I followed the information in this article:

http://www.ni.com/tutorial/4478/en/

 

After following the instructions followed by some trial and error with the VISA Driver Wizard and Device Manager, I was able to get a device enumerating in Device Manager under "NI-VISA USB Devices" and was able to write a simple program in LabWindows that used the VISA interface to find it and open a session with the device.

 

However, if I connect another device to the computer (same Vendor ID and Product ID but different serial number), it enumerates as a standard HID device instead of under "NI-VISA USB Devices".

I also noticed that when the article indicated that a "PNF" was supposed to be created, the file wasn't being created. When I looked into this issue, thinking it was related, I found these articles indicating that VISA has some problems with USB HID devices due to the way Windows handles HID devices:

 

http://digital.ni.com/public.nsf/allkb/8FD4C1DC8E80637E862572EF00784338
http://digital.ni.com/public.nsf/allkb/EA2A99F90D5E84EE86256F400064FF7D

 

Even if I'm able to repeat the steps for each device, since there will be multiple systems (and each system will have 10 devices) going through the VISA Driver Wizard / Device Manager for each one would add a lot of complication and time. I'm also concerned that any future changes / debugging efforts could potentially require going through the whole process again.

 

So, I've been investigating alternate ways of approaching the communication (such as dynamically linking to the standard hid.dll), but each approach has had some dificulties along the way.

 

My question is: What's the recommended approach for communicating with USB HID devices with LabWindows?

Activating tulip passport (GPIB) in MAX makes serial buffer flush fail?

$
0
0

Hi,

I apologize for my english, it is not my native language.

My situation:
I use labview, and I want to measure voltage using a HP 34401A Multimeter with GPIB (using a agilent USB-GPIB adapter). Furthermore, I want to control a motor using the RS232 interface (ISEL motor control unit).
Therefore, I use the RS232 of the computer (on the Mainboard). Both tasks were developed separatly and work quite fine independly. My task is to join both parts and thats were I have the problems.


Problem:
Case 1:
In MAX, I activate the serial (NiViAsrl.dll) VISA passport (deactivate all others)
-> In Labview: all serial SubVI work fine.

Case 2:
In MAX, I activate the GPIB (NiVisaTulip.dll) VISA passport (deactivate all others)
-> In Labview: all GPIB SubVI work fine.

Case 3:
In MAX: I activate both at the same time
-> In Labview: the GPIB works well, but the serial SubVI not. The "VISA I/O Flush" VI says Error -1073807299 (invalid buffer mask).
Here's a link to that error: http://digital.ni.com/public.nsf/allkb/AD03F1520934D67F86256D4B001DC2CE
 
Of course I checked the mask and it is like it should be (16). And it is working again as soon as I deactivate the Tulip passport in MAX.


More Informations:
- It is only related to this GPIB passport in MAX, the GPIB device doesn't even has to be connected.
- The settings of the serial connection are default and as specified for the motor control unit.
- The effect also occures in minimal examples (init the device and directly try to flush)
- I tried a different computer with the setup and it fails too (same software involved, including any passports/drivers).
- I tried to reinstall labview and passports/driver, still the same.
- The Computer: Its a 64bit windows 7 enterprise, but a 32bit Labview 2014.


My guess:
The tulip passport messes around with the buffers and I am failing to find the option to change that.

I tried to search the forum as well as the internet but I wasn't able to find a solution. Any Ideas?

Best regards
SteKo

Code for FAST 2

$
0
0

As you know,i am working for SR830,There is a GPIB Error which can be resolved by Enabling FAST2 command.It would be nice if you can share the code for it as i do not see one in the drivers or in your webpage.

 

DMM for low R measurement

$
0
0

Does anyone know a DMM (preferably PXI) to measure resistances in the order of 90mΩ ?

I'm currently using the NI PXI-4071 but its minimal range of 100Ω produces sometimes inaccurate results.

 

Many thanks in advance for any advice.

Unable to queue the asynchronous operation because there is already an operation in progress.

$
0
0

Hi,

 

I have been trying to capture data from Tektronix DPO2024 using Labview 2013 (32 bit). Everything was fine. But suddenly I get error as -

 

"VISA:  (Hex 0xBFFF0039) Unable to queue the asynchronous operation because there is already an operation in progress." I read the threads, but did not get solutions. Any help will be appreciated.

 

 

 


How Do You Install The Driver For A USB-GPIB-HS?

$
0
0

I have a USB-GPIB-HS module.  I'm trying to install it on a Dell Latitude E6510 laptop running Windows 7.  I have LabVIEW 2011 installed on that computer along with the version of NI488.2 and NI MAX that came with LabVIEW 2011.  During the process of debugging I've upgraded NI488.2 to the latest version from the NI website, v14.

The USB-GPIB-HS shows up in the Device manager in the Control Panel.  It has a yellow exclamation mark (a "bang") next to in.  It says that the device driver isn't working "This Device Cannot Start (Code 10)".  If I "Troubleshoot" the device from the menu there it tries to download a newer driver, but it can't find one.  The driver version is 14.0.0.49152.  If I try to upgrade the driver in Device Manager it says that it's up-to-date.

In NI MAX the device shows up, but can't be used.  It's name and serial number are given but the normal controls to use it don't appear.

 

I've heard that tinkering with the "GPIB Enumeration Service" can help, but I can't find where that service is.

 

Lakeshore 331 Temperature Controller Remote Communication with MATLAB

$
0
0

I am trying to communicate with a Lakeshore 331 Temperature Controller via RS-232 serial interface. I would like to query the instrument's identification information and current temperature reading. I am using the following code, but the output comes back jarbled:

lakeshore331 = visa('ni','ASRL3::INSTR');
set(lakeshore331,'InputBufferSize',3000000,'Timeout',5.0);
fopen(lakeshore331);
iden = query(lakeshore331,'*IDN?')
temp = query(lakeshore331,'KRDG?')
fclose(lakeshore331);
delete(lakeshore331);
clear('lakeshore331');

Here's the output that results:

iden =
LÓCI,ÍOÄEL³³1E,³°¶°¶1,°³2³°1
Š
temp =
«7¹®¹¹8
Š

Do you have any suggestions for how to clean up the output?

how to get information about time of triggering and entire time waveform

$
0
0

I have been trying to capture a certain portion of waveform from Textronix DPO2024 using triggering in Labview. Further, I want to save the the entire triggered waveform (triggered time as one array and triggered signal amplitude as second array)  in .xlxs format.

 

With the present setup (screenshot, and output of program attached). I only get the triggered portion of signal, I get time stamp (that I do not want) but require the time array, instead.

 

I know there are methods to convert the timestamp to time array. I do not want to use this, as I need to capture the data every 10 ms  or even faster, and this slows the acquisition process.

 

Any help will be much appreciated.

 

Thanks

(fill array with serial data)llenar array con datos de serial

$
0
0

hola todos

 

tengo el siguiente problema deseo colocar los datos de dos sensores recibidos por el serial en un array , cada que envio una palabra clave recibo 10 datos de la siguiente manera ,0224,1023 ahora ya separo el string y los convierto en numericos. el problema radica en que recibo los datos y los coloco en el array pero cuando cuando recibo otros 10 datos mas los coloca en el array continuando desde la siguiente linea, lo que necesito  es que me mantenga el array con los datos anteriores y cuando reciba otros 10 se borre el array y comienze de nuevo en la linea 0

 

en la primera imagen se ve como se van llenando el array pero necesito que me quede como en la segunda imagen cada vez que reciba los nuevos datos

 

les agradezco su ayuda ya no se que hacerSmiley Sad

 

hello everyone

 

I have the followingproblemwillplacetwodatareceived by theserialsensorsin an array,eachsendinga keywordtoreceive10 factsfollows,0224.1023nowI separatethestringandturn them intonumeric.the problem isthat I getthe data andplace it inthearraybut whenwhen I receiveanother 10databutplaces them in thearraycontinuing fromthe next line,what I needisto keepmyarraywith previous dataandwhen you receiveother10, thearrayand startagainis clearedon the line0

 

in the firstpicture it looks likethey fillthearraybut I needtokeep meand the secondimageevery time you receivenew data

 

asi me estan quedandoAshampoo_Snap_2015.07.08_15h43m10s_002_.jpg

 

Agilent U2722A not recognised by NI-VISA USBTMC driver

$
0
0

Hello, 

When trying to use Agilent U2722A SMU (it has USB interface only) in Windows 7 it is not recognised by NI-VISA as USBTMC instrument. Interestlngly, other instruments like Agilent 33522B and Tektronix MDO3024 work fine and are recognised as USB T&M device (IVI). U2722A remains as "other devices", and when I force it to use the USBTMC driver Windows complains that the driver may not be compatible, and eventually does not show up in NI-MAX and doesn't work. 

If I install the Agilent software (their VISA, IO library etc. on a PC without LabVIEW) U2722A works, but this does not agree when LabVIEW is installed. Both NI-VISA and Agilent VISA use the driver ausbtmc.sys.

 

Has anybody seen this problem? I know of the LabVIEW U2722A driver which uses VISA, so at least one person must have had a success! Please help. 

 

Thanks, 

Konstantin

 

 

 Device Manager.PNG

Viewing all 5685 articles
Browse latest View live


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