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

EXCEL 365 VBA GPIB制御時 No valid COM I/O resource available. set the I/O property to a valid COM I/O resource.

$
0
0

Win8.1,EXCEL 2016で動作していたVBAを,WIN10, EXCEL 365で動作させたところ

測定器に最初の制御した所で
 No valid COM I/O resource available. set the I/O property to a valid COM I/O resource.

となりました。

対応方法等ご存じでしょうか。

参考)

EXCEL 2016は VISA COM 5.11 Type Library

EXCEL 365は  VISA COM 7.1 Type Library

 

 


Keithley 2635 problem

$
0
0

I have created a sub VI to measure voltage and current by Keithley 2635. In my testing, I set the Keithley 2635 as a voltmeter with 1V source level. I connected it to a metal but got a negative current. Why this happens? 

Obsolete Part Replacement

$
0
0

I would like to ask regarding NI product NAT9914BPD-9 which is already obsolete. Do it has a drop in replacement?

If no, is there any product that has a similar product with similar application, so that I can make a spec to spec comparison.

 

VISA concurrent communication

$
0
0
Question: With the utilization of VISA, is it possible for two different applications (A,C) to alternatively communicate with the same device (B) without causing trouble  on the GPIB bus ?
My current status is that this might be difficult when using plain GPIB (eg. nig-gpib.dll) as one has to share locks between A and C. Also multithreading in general can sometimes be tricky.
 
To illustrate my usecase, I created the following example.
 
3 Applications communicating over VISA/GPIB3 Applications communicating over VISA/GPIB
 

A: Is a legacy application which can unfortunately only partially be altered. Until now, it relies exclusively on on a GPIB library to communicate with the device (B).

B: Is a device which can only use GPIB but not VISA . Additionally it is a prober (e.g. UF2000 etc.) instead of a measurement device !

C: As (A) cannot be altered (and for now not be substitued), there are communication sequences where (C) also wants to talk with (B).

Further constraints: (A) and (C) reside on the same workstation and should  ideally share one single GPIB-Card. Most hosts have NI-hardware but I guess there exist some which don't have NI-hardware. Furthermore: (A) can run on various windows versions, Linux, Solaris 🙂 ...

 

From the sktech, there follow classical communication scenarios:

1. E.g. (A) sends a message M1 to (B) and blocks until the result arrives, (C) is not interested in the result. The same example can be created vice versa.

2. It is also possible that (A) sends a message M2 and (C) is interested in the result (this can be handeled by VISA-events ?!).

3. There may be phases in which C is not allowed to "interrupt" the communication between A and B. A theoretical aspect: If  deadlocks or

even livelocks (?) occur, how can this be avoided or minimized ? Timeouts in VISA ?

 

As I'm fairly unexperienced with VISA, I hope someone can point out if it is worth trying to establish this concept with VISA or not ...

 

Best regards,

TestcellGuy

Visa Serial Communication errors out after about 30-60 minutes of operation

$
0
0

I have a serial communication VI that we run as part of a ~70 minute test. This program is working and the first test station we set it up on is functioning fine. However when I installed on a second station with the same hardware the test throws a VISA error (Hex 0xBFFF0000) Unknown system error after 30-60 minutes of operation, VISA continues to throw errors until the device it's communicating with is reset. I tried swapping the hardware with the working test station and this hardware worked fine on the other computer. The code is also identical, the only difference is the computers, though both are running the same Windows 10 64-bit OS, though they may not have been configured the same way. Is there a Windows setting that may be causing this issue?

Keithley 2000, 2400 Commands?

$
0
0

hello guys 

I'm trying to figure out how to measure the resistance of my Keithley 2400. I'm using a gpib connection. 

my command and answer is,

to 2000 - *rst                

             -  CONF:RES

             -  RES:RANG 100

             -  SAMP:COUN 20

             -  READ?    

 

2000 return -   +9.20358133E-02,+9.22591203E-02,+9.16704017E-02,
                        +9.17854387E-02,+9.24215255E-02,+9.21576171E-02,
                        +9.23741573E-02,+9.25906975E-02,+9.30373116E-02,
                        +9.25568631E-02,+9.17786718E-02,+9.25094949E-02,
                        +9.19004756E-02,+9.22929547E-02,+9.31388149E-02,
                        +9.14876959E-02,+9.13049901E-02,+9.23606235E-02,
                        +9.22455866E-02,+9.29358084E-02\n

                        2000 measure the resistance 20 times and return it.

 

but,

to 2400 -*rst

             - CONF:RES

             - RES:RANG 100

             - ARM:COUN 20

             - READ?

 

2400 return  - +6.104358E-02,+9.999461E-03,+6.104687E+00,+7.852798E+04,+4.608400E+04,
                       +6.104344E-02,+9.999465E-03,+6.104670E+00,+7.852805E+04,+4.608400E+04,
                       +6.104395E-02,+9.999475E-03,+6.104716E+00,+7.852814E+04,+4.608400E+04,
                       +6.103338E-02,+9.999468E-03,+6.103662E+00,+7.852823E+04,+4.608400E+04,
                       +6.101945E-02,+9.999465E-03,+6.102271E+00,+7.852831E+04,+4.608400E+04,
                       +6.103386E-02,+9.999465E-03,+6.103713E+00,+7.852840E+04,+4.608400E+04,
                       +6.104242E-02,+9.999465E-03,+6.104569E+00,+7.852848E+04,+4.608400E+04,
                       +6.103513E-02,+9.999462E-03,+6.103841E+00,+7.852857E+04,+4.608400E+04,
                       +6.103062E-02,+9.999468E-03,+6.103387E+00,+7.852866E+04,+4.608400E+04,
                       +6.100636E-02,+9.999460E-03,+6.100965E+00,+7.852874E+04,+4.608400E+04,
                       +6.100209E-02,+9.999462E-03,+6.100537E+00,+7.852883E+04,+4.608400E+04,
                       +6.098814E-02,+9.999453E-03,+6.099147E+00,+7.852891E+04,+4.608400E+04,
                       +6.099421E-02,+9.999464E-03,+6.099748E+00,+7.852899E+04,+4.608400E+04,
                       +6.099845E-02,+9.999472E-03,+6.100167E+00,+7.852908E+04,+4.608400E+04,
                       +6.100159E-02,+9.999469E-03,+6.100483E+00,+7.852916E+04,+4.608400E+04,
                       +6.099147E-02,+9.999469E-03,+6.099471E+00,+7.852925E+04,+4.608400E+04,
                       +6.097873E-02,+9.999472E-03,+6.098195E+00,+7.852934E+04,+4.608400E+04,
                       +6.096312E-02,+9.999467E-03,+6.096637E+00,+7.852942E+04,+4.608400E+04,
                       +6.097284E-02,+9.999464E-03,+6.097610E+00,+7.852951E+04,+4.608400E+04,
                       +6.095522E-02,+9.999463E-03,+6.095849E+00,+7.852959E+04,+4.608400E+04 

      2400 seems to be measured 20 times. however, it seems to return something more. can I know what this is?

      and is there a command to set only the resistance value to return?

 

        

Can communicate with NI-USB GPB but not via Ethernet to Agilent E8358 via NI-MAx 21 or Labview 2021

$
0
0

Hi Community,

 

I have in my Lab a old Agilent Networtkanalyzer E8358A with Labview 2021 running via NI USB-GPIB adapter without issues with NI.-Max  and Labview 2021.

 

In a Windows 11, DOS Shell I can ping it with the TCP/IP (192.168.178.10) also without issues and can transfer data from the Agilent file system to the Windows 10 PC also with no problems.

 

But to improve the Data transfer speed I want use the Ethernet Interface in Labview or NI-Max programms but without success, under NI-Max it is not detected properly and I don't know why.

 

Also a right click in NI max on the newwork divice will not open the VISA test panel.

 

Maybe can someone give me a hint where I must enable or do something else to commuicate via TCP/IP with Labview.

 

Best regards

 

antenna guy

 

 

 

Error 0xBFFF0011 Occurs during LAN communication

$
0
0

I program with LABVIEW2017,VISA2017.

In MAX, an oscilloscope was added to communicate with the LAN, and the communication was normal at the beginning. After a period of time, the device could not be opened, and error 0Xbfff0011 was reported. Only after the device was added again in MAX or the computer was restarted, the communication could still occur.

Now I'm only going to turn this on once in the entire program,. But I've tried to write a program that keeps turning it on and off, and it doesn't go wrong, so what's the problem.


A weird communication failure occurred using a Keysight oscilloscope

$
0
0

I use Keysight oscilloscopes, models are DSOX3024T and DSOX4024 respectively,Labview and Visa are 2017 versions.Running the waveform reading program 20,000 times in a row on one computer is fine, but running it about 50 times on other computers will cause the oscilloscope to freeze,VISA error 0xBFFF003E(DSOX4024 about 200 times).The study found no problems with computers without USB3.0.

Because it is difficult to return the computer to USB2.0 driver, SO I used LAN communication, DSXO4024 before running the program can execute 2000 times or so crash, DSOX3024T is in the experiment. Share this experience with everyone, have similar experience can discuss

Omega CN616A

$
0
0

I am looking for information on how to communicate with an Omega CN616A Temperature controller over MODBUS / RTU using LabVIEW.  I have down loaded the Modbus Master, Plasmionique package.  I have a USB to  RS232 cable (COM 4).  Omega provides an application that communicates with the CN616A device, and I am able to use this.  I have tried different configurations in LabVIEW but I'm not able to read any data.

Note.  The earlier CN616 module was able to use a serial port, but the CN616A is only ModBus.

NI VISA .NET C# Serial Read in a loop

$
0
0

I am trying to build a test tool for a customer's hardware, the hardware will send "Ready" in Hex thru the serial once powered on. I've been thinking how to make the program actively listening this activity at the background. So far for some hours glancing in the library Help docs I could only think about using a loop and RawIO.Read() to constantly read from Serial until it hits the term "Ready". But this is so not elegant and inefficient and I don't see WaitOnEvent have similar functions to it. Anyone can point me into a right direction?

NI 488.2 license question

$
0
0

Hi,

 

We have purchased a Spectrum Analyzer and bundled with a vendor developed application. The application required NI 488.2 to run.

 

I can't find any license information about using NI 488.2.

 

Any official document or NI representative can confirm me NI 488.2 (including the components included in the 488.2 package) is free to use in our case?

 

After installing NI 488.2, I checked the NI license manager list is empty.

Attached the NI package manager screen for reference.

 

Thanks,

Notmen

Are these NI devices compatible with pyvisa?

$
0
0

Can I control the devices listed below with pyvisa?

USB 6008

USB 6363

USB 6210

Replacing GPIB device with RS232 device

$
0
0

I have an antiquated Belhman power supply that is GPIB controlled. This device is failing. We have equivalent Belhman replacement power supplies that have only an RS232 interface.

 

Can I use the GPIB to RS232 converter to effectively control the RS232 replacement power supply? 

Can the code remain as is unaltered? Below is an example of the Belhman initialization code in "C".

 

int InitBehlman1350ACPwrSupply ()
/* *********************************************************** */
/* This function initializes the Behlman 1350 AC Power Supply */
/* returning a PASS if the initialization was successful and */
/* a FAIL if unsuccessful. */
/* *********************************************************** */
{
int fail_flg, BOARD, gpiberr, reterr;
char ACPSBUFFER[71];

fail_flg = PASS;
FillBytes (ACPSBUFFER, 0, 71, 32);
BEHLMAN = OpenDev ("BEHL1350", "");
if (BEHLMAN > 0)
{
gpiberr = ibwrt (BEHLMAN, "CNF", 3L);
fail_flg = GetBehlmanACPSStatus ();
if (fail_flg == PASS)
{
gpiberr = ibwrt (BEHLMAN, "IST", 3L);
fail_flg = GetBehlmanACPSStatus ();
} /* end if */
}
else
{
reterr = MessagePopup ("BEHLMAN AC POWER SUPPLY ERROR","ERROR - DEVICE NOT OPEN !!");
fail_flg = FAIL;
} /* end if */
/* ***{ RESULTS }*** */
return (fail_flg);
} /* end function */

 

NI-488.2 Version previous or 15.5 needed

$
0
0

Hi,

I have an old PCMCIA GPIB card working in a laptop (also old, Windows XP). Due a HD crash I had to re-install windows, and now need the NI-488.2 driver compatible with the PCMCIA GPIB card, from the compatibility table I see the latest compatible is the version 15.5,  but the available downloads don't get that old.

Where can I get it?

Thanks,

Jorge.


Old version NI488.2 pci gpib driver

$
0
0

Solarisparc Nipcigpib version 2.3 driver.Currently, purchases and website downloads are not available. Even if you enter a serial number, it cannot be inquired because it cannot be authenticated. Please tell me how to get a for solaris driver.

PCI-GPIB board with Win98 driver needed

$
0
0

Hello all,

I have the NI PCI-GPIB board (183617C-01) and I would like to run it under Windows 98 (I am playing with old HP/Agilent stuff).

Is there any suitable driver available ?? I tried to install number of drivers available on the net, but with no success.

Any response will be appreciated

Regards

Ondrej

Failed to connect instrument to NI-MAX

$
0
0

Hi, 

I am trying to connect my FieldFox N9926A from Agilent Technolies to NI-MAX. I directly connect the FiledFox to my laptop using an ethernet cable. I have already detected it on my laptop using Keysight Connection Expert (shown in the second figure). The issue is that when I tried to add it to NI-MAX: "Network Devices" - "Add network devices" - "VISA TCP/IP resource", it is shown that "No VXI-11 LAN/LXI instruments were found on the pocal subnet".

Thanks a lot!

Heyi_0-1643170686169.png 

Heyi_1-1643170723465.png

 

 

changing port in NIMAX for a Network connected device

$
0
0

Hi all 

 

I am having a Keithely 2460 which is connected via ethernet cable and is having a fixed IP. In NIMAX, under Netwowrk device i am able to see the device. But under settings, when i try to change the port number, i am getting the following error message. ( see attached image) 

 

" There was a problem saving the settings for the device, Could not access the resource". 

 

But i can access the device and  use the web user interface via the IP Address. 

And if i click "Open Visa Test panel", i get the error: "Error opening resource: VISA: ( Hex 0xBFFF0011) insufficient location information or the device or resource is not present in the system" 

 

Anyone have any idea about this problem. 

 

I am having NIMAX 19.5.0f0

 

Thanks in advance 

 

 

Block transfer in Labview 2021 for an Agilent E4440A Spektrumanaylzer work via GPIB not viaEthernet

$
0
0

Hello Community,

 

I can transfer pictures in Gif Format in Labview 2021 via  NI USB-GPIB Adapter with the attached VI from a Keysight E4440A Spectrum Analyzer without issues with the Block Transfer function. 

I have an Dell Laptop that runs on Windows 10.

 It use that VI that someone in this forum give me a example years ago for transfer pictures from old GPIB vintage stuff.

 

But to improve the speed I want use the Ethernet function of the E4440A instead.

I can controll the E4400A via Ethernet without issues (ping in  DOS shell, MMEM Load etc., with Port 5025) over TCP:IP.

I added to the GPIB VI additional carriage return that is works without failure message maybe there is also a better way to to it.

But with this attaced VI I can't transfer the .GIF files via Ethernet and get a failure message that the VI is still not fineshed.

The pictures are safe inside the E4440A but not transfered to my PC.

The same VI via GPIB works fine.

Is there a timing problem or what kind of modifikation must I do that I can storage pictures via Ehternet works properly.

 

If someone has an other better example  or share an  Idea (vi) to transfer Data or pictures via Ethernet instead of using GPIB or the 3.5 Floppy disk it will be very welcome to improve my stuff in the lab.

 

Thx

 

Antenna guy

 

Viewing all 5694 articles
Browse latest View live


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