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

GPIB-USB-HS Single read then time out

$
0
0

Hi

I am trying to use a GPIB-USB-HS to control an old HP 436 power meter. using Labview.

I have an Agilent 82357A USB to GPIB interface, and using that my routine which is a VISA open  followed by VISA read then close works fine every time I call it. Using the same routine with the GPIB-USB-HS it will read correctly once and then when called again it imes out with the HP436 stuck in remote. If I switch off the power meter and switch it back on aagin I can read it, but again only once.

Serching the forum I found reference to setting the EOS byte to LF. Using NI MAX I've done this , but it makes no difference. I've ried pretty much all combinations in the termination settings with the same result..

I've also found reference to sendign CR LF to terminate commands, but can't find any way of doing that using the VISA blocks.

The reason I'm wanting to use the USB-HS rather than just stick with the Agilent adaptor is a move away from 32 bit computers to 64 and the lack of 64 bit drivers for the old adaptor. It works with W7 32 bit so I could kick the can down the road a bit, probably unitl I retire and then it won't be my problem by forcing the test guys to use 32 bit W7, but I'd like to get it sorted properly, so If anyone has any ideas I'd apreciate hearing them.

Thanks

Peter


Driver for Agilent 34410A

$
0
0

I'm trying to connect to my Agilent 34410A through TCPIP but continously get error -1073807202. I am using Labview 2014 and just installed the drivers for the 34401A. I tried

 

Am I using proper syntax for my DMM address (IP = 192.168.100.123)? TCPIP0::192.168.100.123

I have also tried putting TCPIP0::192.168.100.123::INSTR as the web page for the DMM specified it would be that.

 

I'm not sure what to try next to be able to connect. I tried the attached example that came with the driver download and still see errors.

Can not access Kepco power supplier

$
0
0

Dear collegues,

 

it would very pleasant, if you help me in the following situation:

 

Unfortunately I am not able to access the power supplier of Kepco with Labview. It initializes and goes over into the remote status after contacting it with a vi. But unfortunately it is not able to set the voltage, which I am typing into my labview vi. The issue is curious - on all the other PCs the vi works as it should. Only on one PC, on which I am using x64 operation system and processor with the labview versions 2016 (x64) and 2011(x86). The connection is established by GBIP and a National Instruments GPIB-USB-HS adapter.

 

Thank you in advance, have wonderful christmas holidays and a great new years eve.

 

Best wishes,

 

Alex

cRIO-9067 and GPIB-ENET/1000

$
0
0

I have a cRIO-9067 and a GPIB-ENET/1000 that I am attempting to interface together.  I installed the NI-488.2 drivers on my host computer and can communicate with the GPIB-ENET/1000.  I am now trying to add the GPIB interface to the cRIO under "Network Devices," but I am unable to install the software drivers to the cRIO.  Is it possible to install the NI-488.2 drivers to the cRIO and add a networked device?  If not, are there any other suggestions to getting the hardware to interface together?

 

Thank you very much for your help.  It is greatly appreciated.

ibconfig options

$
0
0

why gpib/linux can use below option and gpib/windows can't?

IbcSPollBit0x16If the setting is nonzero then the use of the SPOLL bit in ibsta is enabled.

my application needs to know when the Controller has read the serial poll response byte, so i have to check that flag.

 

thank you!! Smiley Happy

use N loop to accquire N different instructors data via GPIB?

$
0
0

Hi

I have a idea that use N loop to accquire N different instructors data via GPIB?

If the GPIB bus will conflict ?

 

just like this

test.png

 

NI488 c console examples, build, but can't connect to GBIB-USB (windows)

$
0
0

The standard C examples compine and link ok, but none so far seem to communicate with GPIB0.

 

I am using visual C, and the command line in the readme for the build:


    cl /I"%NIEXTCCOMPILERSUPP%\include" FindInstruments.c "%NIEXTCCOMPILERSUPP%\lib32\msvc\ni4882.obj" /MD

 

no compile errors (I did coment out conio.h, it is not in vs c anymore?)

 

output after the run:

Error : Unable to open board
ibsta = 0x8100 iberr = 5 (ESAC)
Cleanup: Taking board offline

 

I can talk to the adapter with all the other tools in the install, and see my instruiments.

 

Compiled console examples can not find the USB adapter.

 

Any ideas?

 

Thanks

Randy

NI VISA shared components wrapper failed to install

$
0
0

Hello.

 

I am trying to install NI 488.2 from a CD, which also includes NI Visa 16.0 and more on a 64-bit windows system. I alerady had this installed, and I removed it in order to re-install again. I removed it using the program, though after removing I noticed I still had IVI Shared Components on Programs and Features, so I removed it manually.

 

Now, when attempting to re-install, it gives the error "NI VISA shared components 64.0 failed to install". Of course the VISA doesn't work correctly without it.

 

I don't know what can I do.

 

thanks for the help!


Which instrument for arbitrary signal commutation (matrix)?

$
0
0

I would like to test a bunch of sensors. Each sensor has a DB15 connector with mixed digital and analog signals (bw ~5MHz, Z ~120R).

I am looking for an instrument where I can control which couple of sensors I would like to interconnect to the measurement PC. I've seen commutation switch such as the Keithley 3706A, but these guys does not accept custom commutation board when I can populate my own connectors and my own relays.

So I am thinking to make my own commutation system with a MCU, a FTDI and a bunch of analog switch and relays.

I feel this is a very common need in the testing area and I would like to know what commercial solution can be used in my case.

Serial port not shown in MAX

$
0
0

Hi all,

 

I have connected an NI USB to RS485 cable connected and working.

 

Since it's a working project I did use abort button to stop the VI. Which is the reference of the RS485 is not closed. Will that cause the device to unregister it's port reference completely?

 

I have went through some of the discussion forums already and the solution does'nt match mine scenario.

 

My NI Device Motoring is up and running from startup. Also all I need to bring it back to list in MAX is to unplug and plug it back again.

 

Any suggestion o comments?

ViClose takes 15 seconds to return

$
0
0

I've checked the forums and found an equivalent post : http://forums.ni.com/t5/LabWindows-CVI/ViClose-is-taking-15-second-to-close-the-session/m-p/809879

 

Unfortunately, nobody responded to that post so here I am with the same problem. I have 3 sessions opened at the time viClose is called; one to the resource manager, one "Tx" session to a serial instrument, and one "Rx" session to the same serial instrument. I call ViClose on the resource manager to close all of them at once. The following is output from NI Trace

 

1960. viClose (0x00B1FA70)
Process ID: 0x00000FE0 Thread ID: 0x000000D0
Start Time: 19:09:15.718 Call Duration 00:00:15.014
Status: 0 (VI_SUCCESS)

NI PCIe-GPIB and windows 10

$
0
0

Can anyone tell me if the NI PCIe-GPIB card is compatible with Windows 10 32 and 64 bit? The data sheet shows Windows Vista as the latest. Surely it is compatible with a later versiion then that. 

Connecting an instrument through Serial without driver

$
0
0

Hi. I'm connecting a laser (Spectra-Physics MaiTai HP, manual attached) to a Windows 10 PC by LabView. First of all, I have and am connecting the instrument to the PC by a provided UI, successfully using RS-232 connection. Second, the goal of this question is to figure out how I could connect to the laser, give commands and queries using LabView to integrate the laser with the rest of my system. Finally, please see Chapter 6-10 of the manual for RS-232 guidelines.

 

Here's the question:

 

I tried connecting to the instrument by NI-MAX by selecting the proper COM port. I configured the port to whatever the manual listed (9600 baud rate, XON/XOFF enabled, 1 stop bit, no parity, and 8 data bits). Then I open the VISA test panel.

 

I was able to write, but not read or query the instrument using the command *IDN?\n nor READ:HUM?\n. The error was a simple timeout.

 

I troubleshooted by doing a loopback test (connecting pin 2 and 3 then querying --> success --> not a cable problem). Well, I use the same cable and was able to connect using the UI anyway.

 

I thought the problem was some kind of termination character, so I selected the enable Terminal Character option. My instrument will recognize LF or CR or both, but I chose LF just to choose one. The timeout error is still there.

 

I tried connecting by Putty. But I wasn't able to open a connection even.

 

Please advise me on what else to try.

 

Thank you.

serial poll

$
0
0
all most all article from internet tell us how to serial poll device, but I want to know how can I check whether my device has been serial polled by controller, it's from device's standpoint instead of controller's standpoint. thanks!

Obtaining an IVI Driver Session from IVI Logical Name in IVI-COM

$
0
0

Hello everyone,

 

I was wondering if someone can help me understand a few things. I am writing a program in C# using a C DcPwr library. I read that I can use the DllImport function but I'm having some trouble understanding some things.

The function I'm importing is 

ViStatus _VI_FUNC CPX400_init (ViRsrc resourceName, ViBoolean IDQuery, ViBoolean resetDevice, ViSession *newVi)

so I'm confused about two things

The first things is the _VI_FUNC. Can someone explain what that does and how it interacts with the C code.

The second is importing the C function into my C# application. How do I translate the declared types to C# types? I assume I can change ViBoolean to bool, and maybe ViRsrc to string, but how about the others? If I'm wrong, please let me know.

 


NI PXi instrument list that have built in SCPI parser

$
0
0

Hi,

Looking at implementing a NI based PXi station that mimics our hardware bench setup for production testing. Our hardware bench instrumentation is driven by MatLab and all of the instruments are SCPI based. Our MatLab code sends SCPI "strings" to the instruments for command and acquisition. Is there a list of NI PXi instruments that have a built in SCPI parser? If not, do you know if MatLab supports IVI drivers for NI PXi instruments?

Thanks

NI-VISA installation freezing on 64 bit Windows 10?

$
0
0

When trying to install NI-VISA 16.0 on Windows 10 (64-bit OS and 64-bit processor), NI's installer gets about 90% of the way through installation and then my PC freezes completely (i.e. Screen doesn't update, no mouse or keyboard interaction, need to restart my PC) and it fails to install.

 

I tried installing uninstalling all NI products and installing an earlier version of NI-VISA (15.0.1) just to see if that would work and received an error popup during install:

The "VISA.NET Shared Components 64-Bit" installation has failed with the following error:

VISA Shared Components 5.5 or higher must be installed before installing VISA.NET Shared Components.

According to IVI, these Shared Components should be included in the NI-VISA install from the vendor (i.e. NI), but apparently aren't or can't be found by the installer.

 

Anyone have any ideas on this or have any success installing NI-VISA 15.0/16.0 on Win 10 64-bit?

 

Thanks.

 

Keithley 2000 scan channel sequence always change

$
0
0

Hi,

   I would use Keithley 2000 and scan card for 4w resistance.
   The scan worked well except one question. The channel of output was not same each time. I means the output of channel order was 1,2,3,4,5 (first) and 2,3,4,5,1(second) and 3,4,5,1,2(third).

   It is not good for the data processing for the large number of data. Does anyone could give me some help?

 

Thank you

The path name is invalid using IVIDCPwr initialize

$
0
0

Hi, 

I want to control Rigol 832 Power Supply using standards IVI drivers

At first step, I only want to run the example included with LabVIEW "IviDCPwr [MSR] - Output DC Volts.vi"

I have download the instrument IVI driver from Rigol website: https://www.rigolna.com/products/dc-power-supplies/dp800/

I have set up it in the MAX as it is shown at the attached document.

The error appears at the initialitation of the instrument, returning: 

"Error -1074135029 occurred at IviDCPwr Initialize With Options.vi"

Possible reason(s):

Primary Error: (Hex 0xBFFA000B) The path name is invalid.

Complete call chain:
IviDCPwr Initialize With Options.vi
IviDCPwr Initialize.vi
IviDCPwr [MSR] - Output DC Volts.vi

 

Where is the error?

Thanks!

Keithley 6485 Error 1073807286

$
0
0

I'm trying to use a Keithley 6485 in a VI. However, I'm getting the

 

Error -1073807286 occurred at KE6485 Read Multi-Point.vi

Possible reason(s):

Driver Status: (Hex 0xBFFF004A) Error - A service request has not been received for the session

 

Googling this I'm not seeing any indication of how to fix this. Any suggestions?

Viewing all 5663 articles
Browse latest View live


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