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

VISA USB communication issue - Resource valid, but VISA can't access - Tektronix PWS4000 Series

$
0
0

I'm attempting to control a Tektronix PWS4205 programmable DC power supply using the LabVIEW samples that came with the driver.  Eventually I want to program the cycle On/Off time of the voltage output to a motor while logging current over time.

 

My current issue:

 

The VISA resource name for the instrument is displayed in the control.  When I attempt to run any of the example VIs or just the Initialize.vi I am unable to communicate with the instrument.  

 

Error displayed:

 

The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you selected the correct instrument and it is responding, try disabling the ID Query.

 

I am able to use SignalExpress to output voltage and measure current on the power supply, but not when using example VIs.  I'm not sure why I can communicate using the same VISA resource name in SignalExpress, but not through the VI.

 

Other info:

LabVIEW 2009 SP1 

Windows 7


Error USB2000 ocean optics Matlab toolbox

$
0
0

Hi,

I am having an error trying to use the ocean optics USB2000.

I downloaded the Matlab toolbox and installed the Omni Driver. I followed the readme by adding path to classpath.txt and librarypath.txt but getting the error:

Warning: A Java exception occurred trying to load the com/oceanoptics/omnidriver/api/wrapper/Wrapper class:
Java exception occurred:
java.lang.UnsupportedClassVersionError: com/oceanoptics/omnidriver/api/wrapper/Wrapper : Unsupported major.minor version 52.0

	at java.lang.ClassLoader.defineClass1(Native Method)

	at java.lang.ClassLoader.defineClass(Unknown Source)

	at java.security.SecureClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.access$100(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.net.URLClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at java.lang.Class.forName0(Native Method)

	at java.lang.Class.forName(Unknown Source)

	at com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:181)
 
Warning: A Java exception occurred trying to load the com/oceanoptics/omnidriver/api/wrapper/Wrapper class:
Java exception occurred:
java.lang.UnsupportedClassVersionError: com/oceanoptics/omnidriver/api/wrapper/Wrapper : Unsupported major.minor version 52.0

	at java.lang.ClassLoader.defineClass1(Native Method)

	at java.lang.ClassLoader.defineClass(Unknown Source)

	at java.security.SecureClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.defineClass(Unknown Source)

	at java.net.URLClassLoader.access$100(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.net.URLClassLoader$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.net.URLClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at java.lang.Class.forName0(Native Method)

	at java.lang.Class.forName(Unknown Source)

	at com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:181)
 
Error using instrument/delete (line 82)
Operation failed: An error occurred while executing the driver disconnect code.
OmniDriver was not found or could not be loaded. Possible reasons are javaclasspath.txt or classpath.txt is not configured
properly to load OmniDriver.
If this error is not an instrument error, use MIDEDIT to inspect the driver.

Error in icdevice (line 308)
                delete(obj);

Error in Spectro (line 1)
spectrometerObj = icdevice('OceanOptics_OmniDriver.mdd');

 Instrument control toolbox:

https://www.mathworks.com/hardware-support/ocean-optics-spectrometers.html

Instrument driver:

https://www.mathworks.com/matlabcentral/fileexchange/38572-ocean-optics-spectrometers-matlab-instrument-driver

Page I used to make the script (copy paste): Fetch Spectrum through Ocean Optics Spectrometer using MATLAB Instrument Driver

 

NI-VISA ver 17 Install Ubuntu 16.04

$
0
0

Tryng to instalkl NI-VISA on a ubuntu 16.04

But get following error when tring to install with 

sudo bash INSTALL --nodeps 

 

 

 

Installing NI-VISA for Linux version 17.0.0f1...
Pre Installation .
Post Installation .
Pre Installation ..............................................................................
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing... ################################# [100%]
Updating / installing...
1:ni-pxipf-errors-17.0.0.49152-0+f0################################# [ 2%]
2:ni-kal-17.0.0.49152-0+f0 ################################# [ 4%]
3:nissli-17.0.0-f0 ################################# [ 5%]
4:nirocoerri-17.0.0-f1 ################################# [ 7%]
5:ni-orb-errors-17.0.0.49152-0+f0 ################################# [ 9%]
6:ni-mxdf-errors-17.0.0.49152-0+f0 ################################# [ 11%]
7:ni-mdbg-errors-17.0.0.49152-0+f0 ################################# [ 13%]
8:ni-apal-errors-17.0.0.49152-0+f0 ################################# [ 14%]
9:ni-pal-errors-17.0.0.49152-0+f0 ################################# [ 16%]
10:ni-pal-nikalmod-17.0.0.49152-0+f0################################# [ 18%]
/var/tmp/rpm-tmp.bglXbL: 4: /var/tmp/rpm-tmp.bglXbL: /sbin/chkconfig: Permission denied
warning: %post(ni-pal-nikalmod-17.0.0.49152-0+f0.x86_64) scriptlet failed, exit status 126
11:ni-pal-17.0.0.49152-0+f0 ################################# [ 20%]
12:ni-orb-nikalmod-17.0.0.49152-0+f0################################# [ 21%]
13:ni-orb-17.0.0.49152-0+f0 ################################# [ 23%]
14:ni-mdbg-nikalmod-17.0.0.49152-0+f################################# [ 25%]
15:ni-mdbg-17.0.0.49152-0+f0 ################################# [ 27%]
16:ni-mxdf-nikalmod-17.0.0.49152-0+f################################# [ 29%]
17:nidimki-17.0.0-f0 ################################# [ 30%]
18:ni-pxirm-nikalmod-17.0.0.49155-0+################################# [ 32%]
19:nisslcerts-17.0.0-3.0 ################################# [ 34%]
20:nicurli-17.0.0-f0 ################################# [ 36%]
21:nimdnsresponder-17.0.0-f0 ################################# [ 38%]
/etc/init.d/nimdnsd: 66: /etc/init.d/nimdnsd: /usr/local/natinst/nimdnsresponder/bin/nimdnsResponder: not found
22:nisyscfgi-17.0.0-f0 ################################# [ 39%]
23:labview-2015-rte-32bit-15.0.1-8 ################################# [ 41%]
24:nidimi-17.0.0-f0 ################################# [ 43%]
25:ni-visa-sysapi-17.0.0.49152-0+f0 ################################# [ 45%]
26:ni-mxdf-17.0.0.49152-0+f0 ################################# [ 46%]
27:libnipxiepmu15-17.0.0.49155-0+f3 ################################# [ 48%]
28:nipalki-17.0.0.49152-0+f0 ################################# [ 50%]
29:nivisak-17.0.0-f0 ################################# [ 52%]
30:nivisa-17.0.0-f0 ################################# [ 54%]
/etc/init.d/nilxid: 66: /etc/init.d/nilxid: /usr/local/vxipnp/bin/niLxiDiscovery: not found
31:nitargetcfgi-3.0.0-f1 ################################# [ 55%]
32:nisvcloc-17.0.0-1 ################################# [ 57%]
33:nispyi-2.8.1-f0 ################################# [ 59%]
34:nispylogsupp-17.0.0-f0 ################################# [ 61%]
35:ni-pxirm-resources-17.0.0.49155-0################################# [ 63%]
36:ni-pxirm-17.0.0.49155-0+f3 ################################# [ 64%]
warning: %post(ni-pxirm-17.0.0.49155-0+f3.x86_64) scriptlet failed, exit status 1
37:libnipxisvc2-17.0.0.49155-0+f3 ################################# [ 66%]
38:labview-2015-rte-15.0.1-8 ################################# [ 68%]
39:niiotracei-17.0.0-f0 ################################# [ 70%]
/var/tmp/rpm-tmp.bWbA2D: 296: [: -a: unexpected operator
40:nipxipfi-17.0.0.49155-0+f3 ################################# [ 71%]
41:libnipxisvc2-17.0.0.49155-0+f3 ################################# [ 73%]
42:nisyscfgi-17.0.0-f0 ################################# [ 75%]
43:nivisa-17.0.0-f0 ################################# [ 77%]
44:nivisa-config-17.0.0-f0 ################################# [ 79%]
45:nivisa-devel-17.0.0-f0 ################################# [ 80%]
46:nivisaserver-17.0.0-f0 ################################# [ 82%]
47:nidimi-17.0.0-f0 ################################# [ 84%]
48:ni-visa-sysapi-17.0.0.49152-0+f0 ################################# [ 86%]
49:nicurli-17.0.0-f0 ################################# [ 88%]
50:nipxipfki-17.0.0.49155-0+f3 ################################# [ 89%]
51:ni-mxdf-17.0.0.49152-0+f0 ################################# [ 91%]
52:ni-mdbg-17.0.0.49152-0+f0 ################################# [ 93%]
53:ni-orb-17.0.0.49152-0+f0 ################################# [ 95%]
54:ni-pal-17.0.0.49152-0+f0 ################################# [ 96%]
55:nissli-17.0.0-f0 ################################# [ 98%]
56:nispylogsupp-17.0.0-f0 ################################# [100%]
cat: /etc/natinst/linux/linux.dir: No such file or directory
Post Installation ..............................................................................
Updating modversions database to include newly installed drivers...

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /media/efri/NIVISA1700L AND/OR
www.ni.com/patents

NI-VISA for Linux Installation completed successfully.

 

If i anyway try to initialize from py-visa i got following:

 

libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers

 

 

Any suggestions

EDVR(0xe0140035)

$
0
0

Bit of a longshot this one, I've just put together a win98 PC that runs VB6 to control a 'legacy' test system.  The PCI GPIB card will communicate with the test instruments using the NI software, but the VB6 software has the EDVR error.  It uses the IBFIND routine, re-writing the software to use IBDEV is not an option.  I've tried different drivers, 2 different GPIB cards, and different PCI slots.  The GPIB configuration utility template is identical to another test system running the same VB6 software.

Any hints on how to further diagnose this problem?

Lecroy driver

$
0
0

Hello,

 

I am trying to get the signal of a Lecroy HDO oscillo using the driver.
The oscillo is triggered by a pulser and I would like to get the signal of the oscillo after each trigger received from the pulser.
In the driver I found VI to trigger the oscillo from Labview but none that gets the trigger received by the oscillo (sent by the pulser).
Can you help me?
Thank you

 

generate a sine wave but receive a square wave

$
0
0

I used a AFG1022 to generate a continuous sine wave. But I received a square wave with PXI-6366 as the picture shows when I set the amplitude of the wave 4vpp. And when I set the amplitude of the wave 1vpp, I can receive nothing. I want to know why I receive square wave when the input signal is sine wave.

2A0CD3ADD2BD2C4167B41C8E9F4354BD.png

康奈尔大学学.历\办毕业.证书\微551.190.476\教育部认证\澳洲.美国.新西兰.英国.韩国.加拿大原版文.凭\修改成绩单\学位.证书

$
0
0

康奈尔大学学.历\办毕业.证书\微551.190.476\教育部认证\澳洲.美国.新西兰.英国.韩国.加拿大原版文.凭\修改成绩单\学位.证书

制作澳洲新英格兰大学毕业大学学历证书文,凭微信551,190476;代办澳洲毕业,证学位修改成绩单。

$
0
0

制作澳洲新英格兰大学毕业大学学历证书文,凭微信551,190476;代办澳洲毕业,证学位修改成绩单。


制作美国圣迭戈加利福尼亚大学毕业大学学历证书文,凭微信551,190476;代办美国毕业,证学位修改成绩单。

$
0
0

制作美国圣迭戈加利福尼亚大学毕业大学学历证书文,凭微信551,190476;代办美国毕业,证学位修改成绩单。

制作美国加州大学圣塔芭芭拉分校毕业大学学历证书文,凭微信551,190476;代办美国毕业,证学位修改成绩单。

$
0
0

制作美国加州大学圣塔芭芭拉分校毕业大学学历证书文,凭微信551,190476;代办美国毕业,证学位修改成绩单。

俄亥俄州立大学哥伦布分校毕业.证@微信551.190476改成绩单GPA.买加拿大大学毕业.证

$
0
0

俄亥俄州立大学哥伦布分校毕业.证@微信551.190476改成绩单GPA.买加拿大大学毕业.证

伍斯特理工学院大学毕业,证@微信551.190476改成绩单GPA,买加拿大,澳洲,英国,美国大学毕业。证

$
0
0

伍斯特理工学院大学毕业,证@微信551.190476改成绩单GPA,买加拿大,澳洲,英国,美国大学毕业。证

美国克拉克大学毕业,证@微信551.190476改成绩单GPA,买加拿大,澳洲,英国,美国大学毕业。证

$
0
0

美国克拉克大学毕业,证@微信551.190476改成绩单GPA,买加拿大,澳洲,英国,美国大学毕业。证

美国哥伦布分校学.历\办毕业.证书\微551.190476\教育部认证\澳洲.美国.新西兰.英国.韩国.加拿大原版文.凭\修改成绩单\学位.证书

$
0
0

美国哥伦布分校学.历\办毕业.证书\微551.190476\教育部认证\澳洲.美国.新西兰.英国.韩国.加拿大原版文.凭\修改成绩单\学位.证书

办理美国明尼苏达大学毕业.证@微信551.190476改成绩单GPA.买美国大学毕业.证

$
0
0

办理美国明尼苏达大学毕业.证@微信551.190476改成绩单GPA.买美国大学毕业.证


办理美国印第安纳大学伯明顿分校毕业.证@微信551.190476改成绩单GPA.买美国大学毕业.证

$
0
0

办理美国印第安纳大学伯明顿分校毕业.证@微信551.190476改成绩单GPA.买美国大学毕业.证

Communication to Vötsch oven

$
0
0

Hello, how to communicate to a Vötsch oven?

(in the past the name of the company was: "Haraeus Vötsch"     now: www.weiss-technik.com)

How to find USB device ID after set up in NI VISA

$
0
0

After NI VISA creates and installs the driver to a USB device, it is required to find the VISA instrument description to the USB device. 

 

You can easily find that long string in MAX if the driver is properly installed. But my question is what if you don't have MAX installed in the PC. How do you find the descriptor string without MAX?

Device_in_MAX

How does switch matrix card PXI 2535 work without GND?

$
0
0

Hi guys,

 

I am using switch matrix PXI 2535 for continuity testing. When i see the datasheet i found that there is no GND reference, i mean there is no GND from connector. can anyone tell me how does the card work and what would be the GND reference for the instrument is it Tester GND or anything else?

 

Regards,

Alekhya

Instrument I/O Assistant causes VISA error 0xBFFF0072, VISA resource available but cannot access it

$
0
0

I'm running LabVIEW 2017 on a desktop PC.  The PC is connected via a USB-to-serial adapter to an RS-232 serial port on a Tektronix DMM4040 multimeter.

 

I place an instance of "Instrument I/O Assistant" onto a VI's block diagram. Using the Instrument I/O Assistant "wizard" dialog, I can communicate with the DMM4040 as I create the sequence of steps to be executed--e.g., Select Instrument, Write, Query and Parse, etc. If I click on the wizard's "Run>" button, the script runs fine; everything works.

 

Now I click on the wizard's OK button to close the dialog and render the code in the Instrument I/O assistant node on the block diagram. When this process completes, I click on the VI's "Run" arrow (CTRL+R) to execute the VI.

 

At this point the error dialog shown in Figure 1 appears:

 

Untitled.png

Figure 1

 

If I close all LabVEIW programs, restart LabVIEW, open the VI, and then run the VI, the program runs normally; no error dialog appears.

 

If I now open the Instrument I/O Assistant wizard, and then immediately click OK to close the wizard, I get the error message again when I run the VI.

 

So it appears the Instrument I/O Assistant code has a bug(?) that is perhaps failing to release system resources associated with the virtual COM port the DMM4040 is using, and this is causing the error.

 

Viewing all 5661 articles
Browse latest View live


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