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

Genuine NI GPIB-USB-HS warning message

$
0
0

After upgrading to the newest NI Visa and 488 drivers, I suddenly started getting a warning message (attached) that says the cable is not a genuine NI product.

 

In addition, if I am communicating with an instrument, 53132 frequency counter, for example and the instrument times out, I can no longer communicate with the instrument unless I switch to local mode first.

 

Has anyone encountered these issues or can suggest a fix? Thanks!


Impedance Analysis with the Keysight E5061B Network Analyzer with Labview

MXI network detection

$
0
0

Hi,

 

I have a star topology MXI setup, as follows:

- a "master" chassis and controller + NI 8374 modules

- several "slave" chassis, each with its own NI 8370, connected to one 8374 from the "master"

 

As far as I know I can't "predict" the order in which the MXI chain's elements will be detected.

However, I'd like to configure the whole MXI network in the following manner:

 

Master                          Slave (MAX view)

8374 Slot 3 ->                Chassis 1

8374 Slot 4 ->                Chassis 2

8374 Slot 5 ->                Chassis 3

8374 Slot 6 ->                Chassis 4

etc.

 

Basically I'm looking for a solution for the following issue:

After powering on the whole MXI chain how can I do the following "detection" method?

- ask the 8374 module from Slot X what slave chassis (SN) he "sees"?

- ask the 8374 module from Slot Y what slave chassis (SN) he "sees"?

etc.

 

I thought I could power on the slave chassis sequentially and detect which 8374 it is connect to...

However this would result in a more time-consuming detection.

 

Waiting for your replies...

Thank you in advance.

lecroy scope save waveform works slowly

$
0
0

Good day everyone,

 

I am using Lecroy 6051A scope and it seems to me, that saving waveform works too slowly. I have written a program for my Lecroy and there have a loop with N=100 to save 100 waveforms. It takes around 20 seconds to do so, which, as it seems to me, is too much. I want to be able to save at least 20 waveforms in 1s. 

 

I have attached my vi. I use 1 channel, timebase was 200 ns/div (250Ms/s). I was advised to use VICP descriptor instead of TCPIP, as it should work faster with VICP

 

I was trying to delete all the vis in my programm except for those in the 'for' loop, but still it was almost 20 seconds to save 100 waveforms. I am new in working with Labview, maybe I am doing smth wrong, could anyone help me please?

Connecting to a Tektronix PS2510 with GPIB, error 1073807264

$
0
0

Hi all, I have an Agilent82357 GPIB/USB interface that I use to connect to my machines. Right now I am trying to use it with a Tektronix PS2510G Programmable Power Supply.

 

I have it connected and it (both the Agilent GPIB/USB and the Tektronix) is recognized in NI MAX. I can open the VISA test panel for the device and query *IDN?, to which it returns an ID string. I can also send it commands in its syntax (like "volt 5") and it correctly sets the voltage to what I ask. So I KNOW it's connecting to the machine correctly.

 

On the machine, two words are lit up, RMT and TLK. The GPIB address, as seen in the side panel of NI MAX, is GPIB0::11::INSTR.

 

Okay, now I want to control it from a Labview program. So I make a really simple one like this:

 

Simple_write_PS2510G.png

 

And in the front panel I set the resource name to GPIB0::11::INSTR. The command works perfectly in NI MAX.

 

When I run it, I get this fun error:

 

error 1073807264 labview.PNG

 

Okay, I see the "reason" but that doesn't really tell me much, to be honest.

 

 Googling for a solution gives me the following top results, which don't help:

 

This thread http://forums.ni.com/t5/LabVIEW/Error-1073807265/td-p/758030 results in the guy installing LV on another machine. Someone in the thread suggests this http://digital.ni.com/public.nsf/allkb/49817A4A58B78843862574730051962F?OpenDocument solution, which clearly isn't applicable to me because I'm using the right GPIB address.

 

This thread http://forums.ni.com/t5/LabVIEW/Error-1073807264/td-p/1974109 doesn't help either. The guy isn't sure of his solution and it doesn't apply to me anyway.

 

This thread http://forums.ni.com/t5/LabVIEW/Losing-connection-to-Agilent-6672A-with-GPIB-while-running-a-VI/td-p/1613798 also shows the issue as never solved.

 

I really can't find what to do. It's so strange to me that I can communicate with the machine in NI MAX, but not in LabVIEW. Can anyone give me any tips? thank you!

How to switch between the A and A-B input for the sr830 lockin amplifier?

$
0
0

Hallo,

 

I have a very simple and probably outdated question, but I really had a hard time finding anything on the internet, including the NI forums. 

 

I want to acquire data from the sr830 lockin amplifier. In the middle of one run I want to switch from the normal input (the A input on the front panel) to the differential voltage input (the A-B input on the front panel). The Sr830 manual says it should be possible:

ISRC (?) {i} The ISRC command sets or queries the input configuration. The parameter i selects A (i=0), A-B (i=1), I (1 MΩ) (i=2) or I (100 MΩ) (i=3).

 

But I'm not using this kind of code. I'm just using the Labview driver and its commands. I looked like 3 times through all of the commands (if you go like Instrument I/O -> Instr Drivers -> Standford Research 830) and couldn't find one that would configure this parameter. Which is odd, since I thought you should be able to control anything with Labview driver that you can control on the front panel.

 

I'm using Labview 2011 on Windows 7. 

 

Does anyone know a solution to this? Am I overlooking something?

 

Thank you for your help.

VISA port state ( opened or not )

$
0
0

Hi,

 

I want to find out if the VISA resource name I selected is opened by another application or not to decide to open it or not.

 

I tried to use the error out from the VISA open VI to discover whether the port can be used or not. So I created two VIs which use the same port ( of course the port exists ).

 

The first VI open the port without any error. And unexpectedly, the second VI open the port without error, while the first one is using the port without closing it.

 

Note that the second VI's VISA resource name list shows that this port is opened ( the icon next to the port's name ) before running it.

 

So is there any way to find out if a port is opened by another application ?

Configure DMA from Target to Host in cRIO-9075

$
0
0

Hi,

I recently bought the cRIO-9075 but in order for me to design the software-firmware architecture I need to get same answers for the following questions (I'm a beginner in labVIEW FPGA):

  1. In this Compact RIO (9075) I have 5 DMAs buss between the Host (Real Time controller) and the target (FPGA). The first one is set from "Host to Target- DMA" (let's call it DMA1) and the other 4 is from "Target to Host-DMA". In my Target application I have four separate parallel loops that itch of then is sending different data to the host. My question is how can I set the compiler for etch loop to use DMA2 for loop 1, DMA3 for loop 2, DMA4 for loop 3 and DMA5 for loop 4? Is it by different names? How does he know to use different DMA for etch loop? In addition, Is it possible to write and read to etch DMA at the same time (etch from different parallel loop).
  2. My second question is related to the previous question, what will I do if I'll having let's say, 10 different (loop instead of 4, again, unrelated)? I only have 4 DMA's left…? Can I use 10 different names (Buffer Items) somehow to all 4 DMA's
  3. I know that for same target the DMA bus is configure to transferring unsigned, 32-bit (U32). In this cRIO, I think I can configure the DMA data type to let's say U8 (for example). My question is if I configure it to U8 do I utility the bus for the maximum rate or should I packed the U8 to U16 using the Join and Split function block? What is the more efficient way to transferring date?

Thanks a lot,

Idan

 


one loop of two parallel not running

$
0
0

Hello,

 

I try to build a double loop structure. One loop runs the serial communication. The other runs the control components.

 

When I highlighted the running of the program, I found the loop with serial communication not running.

 

Can anybody help me with this issue?(Photo attached)

VISA Serial Port Write Error-1073807360

$
0
0

Can somebody give me some hints what mainly causes the error code in subject?

 

Thank you very much!

PCI GPIB card not working with Windows 7 computer

$
0
0

I'm having trouble getting my PCI-GPIB device to recognize instruments in a windows 7 computer. It works with an older PC with Windows XP on it, but when I move it to a new PC it won't detect any instruments and

 

I ran a self-test and got the following error:

 

NI-488: An Unknown GPIB hardware error has occurred. (-37052)

 

Here are my specs:

 

AMD A4-6300B APU with Radio HD Graphics 3.70GHz

4.00GB or ram (2.92GB usable)

32 Bit operating system

 

I'm running NI488 15.0.0f0

 

All settings are identical for both the working XP system and the broken Win7 system.

 

GPIB settings are as follows:

Interface ID: GPIB0

Primary Address: 0

Secondary address: None

I/O timeout: 13 (10 sec)

system controller is checked

enable autopolling is cheched

Send EOI at End of Write is checked

Set EOI with EOS on Write is NOT checked

Terminate read on EOS is NOT checked

Use 8-bit EOS comparison is NOT checked

EOS Byte is 0

 

HS488 cable lenbgth is 0 (disabled)

Parallel poll duration is 0 (2 uSec)

Bus timing is 2 (500nSec)

Assert REN when SC is NOT checked.

 

Everything in my system is identical except for the PC, so it's either a bad motherboard or there's a driver issue. Please help. I have a production line waiting for this upgrade. How do I get the PCI-GPIB card to work with windows 7?

 

UPDATE: I forgot to mention that i'm on a Lenovo ThinkCentre desktop, so updating the BIOS is impossible.

Visa Hex0xBFFF0015 Read Time out error for TCP/IP connection

$
0
0

Hello

 

I am trying to connect a XPS-Q8 controller (from Newport) to my computer by TCP/IP connection. The instrument was not recognized by NI MAX and I had to add the instrument manually to the list. The IP address and the port number are validated according to NI MAX program, but unfortunetly I am receiving some error in the test panel page.

When I open the Visa test panel>> input and output>>*IDN?\n, there is no error in the write command but when I try to read command or query I receive this error message: Read Error, Visa (Hex 0xBFFF0015)Time out Expired before operation completed. Actually the return count is not 0 but still there is the read error message and I am not sure how to solve this problem.

I have tried different commands like *IDN?\r, changed the time out duration, but still I get an error message.  

Moreover, I have question about buffer operation in Visa test panel>> configuration >> buffer operation section. Is it OK that transmit and the set buffer are 0 or do I have to change them.

I have attached some snapshots from the NI MAX and the test panel.  

I will be really happy if someone can help me to solve this error message.

 

Thanks a lot for your help in advance.

 

Agilent 82357A USB to GPIB (non visible by VISA)

$
0
0

Hi,

 

I am currently runing kubuntu, linux version 3.19.0-30-generic. KDE plasma version 5.2.2. And i am tryin to use Python to communicate with a  'Maturo Control Unit' (or MCU version 1.30). In orde to do so i am using Pyvisa (version 1.5) and a Agilent 82357A USB to GPIB. When i am using the terminal i can send and reseive commands from the MCU. But when i use Pyvisa's resource maneger the Agilent 82357A USB to GPIB with the MCU connected does not appear. Pyvisa does work. Because ive used it in the past to connect with a spectrum analyzer using TCP:IP.

 

How can i make Pyvisa show the Agilent 82357A USB to GPIB connected to the MCU?

 

python 3.4.3:

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

>>> import visa
>>> rm = visa.ResourceManager()
>>> rm.list_resources()
()
----------------------------------------------------

USB to Serial Port Adapter

$
0
0

Hi, my laptop doesn't have a serial port.

 

If I wish to connect to some NI hardware using RS-232, RS-485, CANBUS etc, will I get any problems using a USB to serial adapter?

 

When I was programming PIC microcontrollers, we were told not to use the adapters to program the PIC. I found this a little confusing as the signal coming from the adapter should be identical to what would come from a serial port. I am not sure what the reason is.

 

Are there any known issues using a USB to serial adapter with NI hardware (specifically the sbRIO-9651 Reference Carrier that I am using and also just in general) or should I be fine to use it?

Keythley 196 via Agilent 82357B

$
0
0

Hello

 

I trying to communicate with my Keythley 196 DMM, using USB <--> GPIB controller as Agilent 82357B. I followed steps described there. In MAX I see my instrument and I can communicate with it.

 

I downloaded this driver, but its not going. Can anyone help me?


at-gpib card not vertified

$
0
0

Hi

The problem is with a AT-GPIB 488.2 card in a computer with Windows NT.

The setup (part of Genrad machine) was transported to repairs (not related to the computer part) and after that the there was a problem with the GPIB connection. I tried another cable and also checked the card's connection to the motherboard. I also reinstalled the driver for it.

The pictures show the error I get and also the settings for the card. The switches on the card are in the same position as the settings show.

 

The troubleshooting wizard says hardware presence vertified. Does that mean the card is OK or that it just found something and it might not be working?

Or is there something wrong with the settings?

 

 

 

Thanks for help

 

edit: more pictures of troubleshooting here (I don't really understand it myself but might be helpful):

https://www.dropbox.com/sh/mwy6cquyo6ajbd9/AADIvVRmjAb5PZvX8q10gdNda?dl=0

Mixed signal scope AG54622D using driver AG5462X.vi yields 44 second delay before it completes.

$
0
0

I am trying to read data from an AG54622D using driver AG5462X.vi but there is a 44 second delay before it completes.  The data looks valid but I can't seem to solve the extended delay problem.  Also the timeout setting seems inconsistent with the results I see.  All I have is the context help for this driver; I have not been able to find more detailed help or any examples since they did not seem to come along with the driver as they did for other instruments I am using.  I am a bit new to this.  Can someone point me in the right direction?

Need example source for SPI design with NiDAQ

$
0
0

Hi,

 

I'm trying to use the PXIe-6363 as a SPI master. My Python software framework does not allow for a bit-banging approach. I need to output the waveforms for the CLK, MOSI, and SS lines while capturing the MISO data. I'm controlling the equipment through VISA and am having problems loading the waveforms and triggering all four lines at the same time. I found a post related to this (http://www.ni.com/example/31200/en/#toc3) but it doesn't have any source code. I would like a source code example of how I can do this. For example,

 

active_task = PyDAQmx.TaskHandle()
PyDAQmx.DAQmxCreateTask("", ctypes.byref(active_task))

DAQmxCreateDOChan(active_task, CLK_Channel, "", PyDAQmx.DAQmx_Val_ChanPerLine)

DAQmxCfgSampClkTiming(...)

DAQmxWriteDigitalLines(...)

...

# Set up other lines

...

DAQmxSendSoftwareTrigger(...)

 

I would also like to know if I could do this across multiple PXIe-6363 cards. Let's say I have three cards that control the three lines. How would I do this?

 

Thanks,

Jenny

How can I add my SFP to MAX in Tools-SFP?

$
0
0

I've created code to control my instrument.  I want to add the ability for the user to select a standalone SFP from the MAX menu.

NI-9148 Compact RIO not recognized after LabVIEW 2012 to 2015 upgrade

$
0
0

I am running a small scale lab test since several years using LabVIEW 2012 and the Compact RIO NI-9148.

 

Recently I have bought the extra module AM-9898 to expand the system. I have mounted it in the first available cRIO slot (slot 4).

However, when I try to add the module in my LABVIEW project (by right-clicking the Chassis NI 9148, selecting New.....C Series Modules....), I can't add it: slot 4 shows

"Unknown (Slot 4)

This module is not supported by the current versions of LabVIEW and NI-RIO.  Contact the Module manufacturer for more information about how to use this module with LabVIEW."

(See attachment)

I have an up-to-date system according to NI Update Service (LabVIEW 2012 SP1 - Version 12.0.1f5 (32-bit)

I have downloaded and succesfully installed the AM-9898 driver (version 1.0.19) using the VI Package Manager.

 

The solution to the problem above was to upgrade my LabVIEW system to LabVIEW 2015 and include the FPGA Module.

This, I have don, and I also downloaded all the new RIO drivers.

 

However, when I now open my LabVIEW project, I get an error icon in front of the NI-9148 Module, stating

"The plug-in for the selected item is not installed on your system or the plug-in has an expired license. Please contact National Instruments". (see picture in attachment)

 

When I open the Remote Systems - Measurement & Automation Explorer, I can still see the NI-9148 (state: running), and I can even restart it.

 

What do I need to do to fix this?

 

Thanks in advance for any help.

 

Viewing all 5667 articles
Browse latest View live


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