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

IVI-COM driver problem--no registered classes warning when trying to connect TekRSA300IVI with Labview

$
0
0

Hi all, 

I am trying to control TekTronix RSA306B with Labview 2015(64bit) via an IVI-COM driver TekRSA300IVIDriver_1.0, according to a tutorial--Using an IVI-COM Instrument driver in LabVIEW  http://www.ni.com/tutorial/4505/en/, step by step.

However, it always gives an error warning as "There is no registered classes", which can be found in appendix picture.

I checked the total with installation instruction of Tektronix RSAIVI driver, but have no new found. I am confused for such prolblem, so could you help me to clarify it?

Thank you !!


Sorensen/Ametek XG series USB LabView Control

$
0
0

Hi there,

 

I have a Sorensen/Ametek XG 300-5 programmable power supply and I am trying to control the power supply using labview (V.2013). I connected the power supply to the computer via USB cable and followed all instructions in the manual to configure the USB port (http://www.programmablepower.com/dc-power-supply/downloads/XG_R850-1500-1700_Operation-Manual_M370430-01-rvG.pdf). It seens that the port simulates a COMM communication trough the USB slot. After installation, it appears the power source has a communication with the computer when we plugged the USB cable (some green light turned on in the front painel of the power source and the USB COMM was detected as COMM10).

However, after following all instruction in the manual to install the Labview driver (First IVI-C driver and then the XG Labview Driver V1.0.2 - Windows 32 bit for Labview 2013), I was not able to see the power source in Instruments Control inside LabView.

Using the “add instruments”, Labview found an instrument but did not recognize it as the Ametek power source.

I also tried to use some runtime programs that came with the drivers installation, but an error of instrument not detected ou not connected appeared.

Can anyone give me some help???

PyVISA with Keithley 2400 SCPI

$
0
0

Hi, I'm trying to ask a Keithley 2440 to loop through relatively fast sets of 4 wire measurements, report the data, and repeat.  I have tried RS232 serial communications with pyserial, which worked alright but was not able to communicate quickly and therefore had a low duty cycle of time collecting data vs. not, so I switched to GPIB (NI GPIB-USB-HS with PyVISA in Python 2.7).  Now I have managed to get the Keithley set up for the right current for the 4 wire measurement, but often have errors of the output not turning off after a given period of time and the Keithley has not successfully reported any values back to my computer with my recent attempts at these controls.  I got most of the SCPI commands from a coworker who was using a LabVIEW program to control his Keithley a couple of years ago.  Current code looks like this:

 

import visa
import numpy as np
from pylab import *
import matplotlib.pyplot as plt
import time

number_loops = 20
count = 10
DIVoutput = np.zeros((count*number_loops,5)) # make sure this is at least larger than loops*trig count!!!!
NPLC = 6
COUNT = 10

rm = visa.ResourceManager()
rm.list_resources()
('ASRL1::INSTR', 'ASRL2::INSTR', 'GPIB0::24::INSTR')
inst = rm.open_resource('GPIB0::24::INSTR')
inst.timeout = 25000 # in milliseconds

time.sleep(0.001)

print(inst.query("*IDN?"))
print(inst.query(':ROUT:TERM?'))

inst.write(':ROUT:TERM FRON')
print(inst.query(':ROUT:TERM?'))

inst.write('*RST')

inst.write(':FORM:ELEM VOLT,CURR,TIME;DATA SREAL;BORD NORM')
inst.write('Smiley FrustratedENSE:AVER:TCON MOV OFF')
inst.write('Smiley FrustratedYSTEM:AZEROSmiley FrustratedTAT OFF')
inst.write(':TRIGSmiley Very HappyEL 0.0')
inst.write('Smiley FrustratedOURCESmiley Very HappyELAY 0.0')
inst.write('Smiley FrustratedYST:AZERO OFF')
inst.write('Smiley Very HappyISP:ENAB OFF')
inst.write('Smiley FrustratedYST:BEEPSmiley FrustratedTAT OFF')
inst.write(':AVER OFF')
inst.write('Smiley FrustratedYST:RSEN ON')
inst.write('Smiley FrustratedYST:AZERO ONCE')


for i in range(number_loops):
#START OF LOOP

inst.write(':CURR:NPLC '+str(NPLC)+';')
inst.write('Smiley FrustratedOUR:FUNC CURR')
inst.write('Smiley FrustratedOUR:CURR 1e-3')
inst.write("Smiley FrustratedENS:FUNC 'VOLTSmiley Very HappyC'")
inst.write(':VOLTSmiley TongueROT 5')
inst.write('Smiley SurprisedUTP ON')
inst.write(':ARM:COUN 1;:TRIG:COUN '+str(count)+';Smiley FrustratedOUR:CURR:MODE FIX;')
inst.write(':ARMSmiley FrustratedOUR IMM;:ARM:TIME 0.01;:TRIGSmiley FrustratedOUR IMM;:TRIGSmiley Very HappyEL 0')
inst.write(':TRIG:CLE;:INIT')
inst.write('Smiley SurprisedUTP OFF')

b=inst.query_ascii_values('FETC?')
a=(inst.read())

inst.close()

 

I get errors like "UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position 3: ordinal not in range(128)" when I do this.  

 

 

Does anyone have an example of code that effectively gets 4 wire measurements out of a Keithley at faster than 1 Hz?  I'd be happy with anything that pretty much works and has a higher than 50% "up" time of actually taking measurements.  

 

Thanks in advance for any help.  

computer crashes for inductive load

$
0
0

Hello,

 

I my application, I am trying to test a 12V DC motor through a labview program i created.

Connection diagram is as shown in the figure attached.

I am using NI USB 6002's analog output 0 to generate a 0-5v signal which is then given to a differential amplifier. This is a unity gain amplifier. The output of this amplifier is then connected to a SMPS based 0-30V power supply as 'remote voltage' input. This power supply in turn generates 0-30v out put in proporting to the 'remote voltage' applied.

When there is no load or resistive load connected, the system works fine.

But then I connect a DC motor, the computer system just crashes.

 

Can anyone help me with this.

 

Thanks!

USB-8451 pull up resistor

$
0
0

Dear all,

 

I'm using the 8451 as i2c master, and for some reason (not important for this discussion) I need to use one of the 8451 pins as a 3.3V voltage source.I chose a DIO pin for the job and with Labview I managed to configure it properly to 3.3v with "push pull" driver type. My question is if there's an internal pull up resistors and if so, how could I configure it?

 

 

Thanks,

Or

Communication issues about Basler acA2040-180km camera and PCIe-1473R via Camera Link

$
0
0

Hi,

 

We have Basler acA2040-180km CMOS camera and trying to communicate the camera with PCIe-1473R-LX110 via cameralink. We have tried to follow the KnowledgeBase in NI (Ref.1 and 2) to establish the serial connection by the virtual serial port.

 

However, we modified the shipping example following by Ref. 2 and change the default FPGA from PCIe-1473R to PCIe-1473R-LX110. The project is sucessfully compiled but we cannot detect the camera in MAX. In the step 3 of the solution in Ref.2, we should be able to check if the camera status is OK when select the "Select CLSerNat Systems" in the MAX Tools. The image is shown below and more details in Fig_1

Fig_1_small.jpg

 

The camera is working fine with other cameralink framegrabber using Pylon 5. However, we just cannot see the camera in the camera status. We are sure the camera power is on and the LabVIEW project of the modified shipping example is running as shown in Fig_2.

 

Thanks in advance if there is any idea about this issue. We have searched some references, but cannot find similar issues as we have. If we made any mistake, please let us know.

 

Thanks.

Best.

 

Hardware:

  • Basler acA2040-180km CMOS camera
  • NI PCIe-1473R-LX110

Software:

  • Windows 7 SP1
  • LabVIEW2013 SP1
  • NI Measurement & Automation Exploer 14.0.0f0
  • FPGA, VISION modules are installed

References:

  1. http://digital.ni.com/public.nsf/allkb/A56C0DAD5FD5B23286257A61005DF16F?OpenDocument
  2. http://digital.ni.com/public.nsf/allkb/4B3A1D9D33408B49862579820072775C
  3. http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Serial-communication-is-not-working-or-keeps-disconnecting/m-p/3229397
  4. http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/My-Basler-acA2040-180km-NIR-is-not-visible-in-NI-MAX/td-p/2369520

controlling a instrument

$
0
0

Hi Everybody,

 

For a instrument which has LAN input is controlled from a PC, is it enough to make the Internet  connection of the instrument and PC? Is it necessary to use any device between the instrument and PC for controlling via internet?

 

Thank you.

the relationship between Force and Voltage and Torque in Inverted Pendulum?

$
0
0

how demonstrate the formula ?

the relationship between Force and Voltage and Torque?

how to prove that this formula?

plz help me tombe0.vt93@gmail.com

Cong thuc.PNG

 


Sending Pelco-D or P commands via RS232 to RS485 converter

$
0
0

Hi, 

 I am trying to send series of commands in decimal format using a RS232 to RS485 converter to a camera that has a zoom control. I have a program that will let me test the commands to the camera to make sure everythings is working proper.  I also try sending the comands using the program realterm in decimal format and it also works. But when I try to send the data using Labview I get no results. Here is the code to make the camera zoom in. 
255,001,000,032,000,000,033 ( to Zoom in)

255,001,000,000,000,000,001 ( to Stop zoom)

 The commands has to be sent in decimal format to the camera. And the photo don't show it but there is a 500ms delay between the Zoom in and stop commands I also try a longer delay.

I attached a photo on how I am sending the comands to the camera.  Can anybody tell me what I am missing?

 Thanks

JJM

 

ibnotify and nipalut.dll

$
0
0

Hi everyone

 

I am trying to build a custom application to use a NI GPIB-USB-HS adapter. The code is written in cpp and I use QT on windows 7 and windows 10.
For the moment, I compile in 32bit using either mingw 4.9.1 either visual studio 2013.

I use the gpib-32.obj to adress the NI library.

 

I try to use the ibnotify callback using :

ibnotify (id, CMPL,(GpibNotifyCallback_t) CallbackWrite, this);

 

However, I run into an exception created by the nipalut.dll.

Strangely, the same code works in macOS.


Does anyone has an idea what could be the problem ?

Thank you very much

Can the USB-GPIB-HS be put into slave mode (non controller mode)

$
0
0

Can the USB-GPIB-HS be put into slave mode (non controller mode)? I know the PCI versions can be but not sure about the USB-GPIB ones.

control via Ethernet

$
0
0

Hi Everybody,

An instrument which has LAN input was connected the internet and was seen in the MAX. When I opened the test panel in the MAX, error was given. VISA:  (Hex 0xBFFF003E) Could not perform operation because of I/O error. How can I overcome the error? Also, in the test panel, transmit buffer and receive buffer are zero. Do the buffers have to be zero?

 

Thank you.

modbus example serial slave

$
0
0

Hi,

i am using Modbus serial slave example to communicate with the modbus device.

this example works well when i use "Modpoll" at the other end but not with the "Real term " Sniffer  please help

 

 

Thanks in advance

USB-232 slow under Windows 10

$
0
0

I have a Labwindows/CVI 2016 application that communicates with a bunch of Eurotherm temperature controllers via RS-232 using a NI USB-232. I have been running it for several months under Windows 7 and it goes through and queries all the Eurotherms in 1.6 seconds, consistently. When I switch over to a Windows 10 computer this query time is very erratic, sometimes it might take 1.6 sec. but most times is in the 4 to 5 second range. I have the same version of the drivers on both computers (NI-Serial 15.0) and I'm using the native calls: OpenComConfig, ComRd, etc.

Andor luca is not shown in interface of NI-MAX

$
0
0

Good morning guys,

 

I have the following problem:
The camera is not displayed in the NI interface.

 

It's available:
- Andor Luca (recognized by PC, the camera is compatible with Labview) connected with USB Port
- Andor Solis Aquisition Software (after the installation I copied the SIFReaderSDK with LabViewSIFReaderVI into the folder Labview)
-Labview (with the Vision Aquisition Software)

 

 

Do I need anthor program of LabView?

 

greetings


420 Query-unterminated

$
0
0

when I try to communicate to Keithley Model 2000 by GPIB-RS232,I send "*IDN?\n" it is OK. When I send another command like ":CONFigure:FRESistance\n" ,the device show " ERROR -420 Query unterminated". I don't know why.Tell me!Thanks!

linking gpib-32.obj in Visual Studio

$
0
0

Hi... I have recently started migrating a large series of projects under a single VC++/MFC solution from VS 2005 to VS 2015 under Windows 7. I downloaded and installed NI-488.2.15.5. I ran the updates on the installation. Among the myriad compile/linker errors that I am getting is "LNK1107 invalivid or corrupt file: cannot read at 0x658D" when GPIB-32.obj is linked. 

 

  -  Is this actually a corrupt file and, if so, is there another to use? (Somehow I doubt that this is the problem.)

  -  Is there a linker flag that needs to be set/unset?

  -  Any other suggestions?

 

Visual Studio documentation on this is pretty sparce.

 

Thanks in advance for your thoughts

Looking for a driver for a NI PCMCIA-CAN Series 2

$
0
0

Hi, I have a NI PCMCIA-CAN Series 2 Card and need to download a driver for it. 

The following link is a old version driver for 

Windows XP/2000/ME/98/95/NT

http://www.ni.com/download/ni-can-2.1.2/262/en/

 

I have a Windows 7 64-bit operating system.

 

Does anybody know the link for a latest version driver for the NI PCMCIA-CAN Series 2?

 

Thank you. 

 

 

How to stop re-assigning serial port names?

$
0
0

Hello,

 

I have a generic PCIe serial device with four ports. It's not an an NI device, but the ports appear in MAX. Does anyone know why changes to the NI setup (e.g. moving an NI card from one PCIe slot to another) will rename my serial ports? Is there a solution?

 

Thanks.

 

 

NI-VISA and openSUSE Leap 42.1

$
0
0

Hi everyone,

 

I'm trying to use NI-VISA on openSUSE Leap 42.1 (it says here that Leap 42.1 is supported) but whenever I try to run ./INSTALL the following error comes up:

 

ERROR: Kernel source does not appear to be installed for the 4.1.12-1-default kernel. Installation of the kernel-source package for kernel 4.1.12-1-default is required to continue this installation.

 

I have installed the kernel source for kernel 4.1.12-1 through YaST and restarted.

 

The weird thing is that I can continue with the installation and everything seems to work fine (no errors). However, then when I try to use pyvisa I get an error saying:

 

libnipalu.so failed to initialize

Perhaps you need to run updateNIDrivers

 

and running updateNIDrivers gives me:

 

ERROR: Error locating kernel sources for the requested kernel version (4.1.12-1-default).

 

which brings me back to the original problem. Any thoughts on this would be appreciated, thank you!

 

Michael

Viewing all 5665 articles
Browse latest View live


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