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

Visual Basic 2005 codes for using ActiveX supplied by Jobin Yvon Spectrometer (iHR320)

$
0
0

I am writing VB2005 codes using calling the ActiveX (COM) components for the spectrometer iHR320.

Usually calling com object resulted in some control in remotely connected iHR320 successfully.

But in my case, some ActiveX call results in OnReceive-like events that must be

caught in a sub-procedure written in main body of form (not in COM object source).

 

JY provided example source codes in VB6. Therefore, as long as using

the VB6 compiler, the iHR320 can be controlled successfully.

 

Previously when I used VB6, writing some subprocedure like

 

Private Sub Objects_Initialize(ByVal e As Long......)

can catch this event fired by ActiveX.

 

Private Sub Objects_Initialize(ByVal e As Long......)

Objects.GetSlitWidth()

.....

End Sub

 

But, it's not possible to catch in VB2005. I tried to add "handles ....." after

the finishing paraenthis of the subproc arguments, but it was in vain.

 

Private Sub  Objects_Initialize(ByVal e As Long......) handles Objects.Initialize

 

 

How should I do to work around. I tried to have questions to Jobin Yvon,

but there is no response.

 

I heard that it corresponds to "OnReceive" eventhanlder in the language of c++.

 

Please share your successful experience about the migration from VBb related to

the connection with ActiveX (COM) objects. I am expecting responses

from those who is familiar with VB2005 as weol as C++.

 

LabView is too expensive for me. It is not option for me.

 

Thanks in advance fro your kind response.


GPIB-USB-HS+ on CentOS 7?

$
0
0

Hi,

 

I'm not sure if this question is appropreate for this forum, if not, please excuse me.

 

I've been struggling to install the driver for GPIB-USB-HS+. I couldn't see any error during the installation, but when I try to run gpibexplorer, the window pops up and disappears right away with the following message:

 

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

 

So I did updateNIDrivers without any error again. After rebooting, it still says the same thing.

 

I did this on CentOS 7 (3.10.0-229.14.1.el7.x86_64, 64bit version, apparently). Does anyone have an idea?

gpib enet from java

$
0
0

Hi,

I have a NI GPIB-ENET/100 on which I have gpib devices connected. I would like to access those devices from a Java environment on a linux (debian) machine. There is a linux driver available, but not supported for debian.

In this topic :

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/polling-gpib-enet-unit-over-tcp-ip-using-java/m-p/74360/highlight/true#M4481

it is suggested that  if I have the .so libraries, then it becomes possible from a Java environment. So where can I find those libraries ? All I found at the moment is the linux driver.

 

Thanks.

to control KIKUSUI PWX1500MH in labview 2012 enquiry

$
0
0

Dear All,

we purchased a KIKUSUI programmable power supply PWX1500MH, and we are doing programming in labview 2012 to control it and doing measurement.

I have downloaded KIKUSUI drivers KikusuiPwx_1_0_4_0(x64) and labview instrument driver import wizard to import the drivers into labview successful. I write

a simple labview program and using LAN port to communicate with the PWX, we set up Logical name and  driver session in NI MAX. now I have a few questions:

 

1. Power on PWX, run labview software, it calls iVIDCPwr initialize with options.vi, configure voltage lever.vi, Configure output enabled.vi, iVIDCPwr close.vi. it works.

 

2. when I manually press button in PWX to local mode, tune some button to set output voltage then exit, run software again, it has error in  iVIDCPwr initialize with options.vi,

    to say failed to open VISA resource, error code is -1074118124. why this error occurs? how to clear it? how to clear PWX error/Jam/Alarm in software if there has any. I didn't

    find it. currently only power off the PWX and power on again to clear the error.

 

3. in KIKUSUI website, it provides communication interface manual in

    http://www.kikusui.co.jp/kiku_manuals/P/PWX/i_f_manual/english/00-intro.html this manual introduce SCPI commands to control PWX series,

    since we have imported KIKUSUI PWX drivers into Labview as Kipwx vis. how to use KIKUSUI SCPI commands in labview to control PWX1500MH, any examples?

 

 

I have sent email to Techsupport@kikusuiamerica.com and kikusui@kikusuiamerica.com. initially they answered my enquiry regarding labview device driver import wizard, but later on,

no emails reply any more, but we are urgent on it. if anybody can help on this enquiries, we greatly appreciate your kindness and helps. Thanks a lot

 

attached are some information for reference.

 

Joe Guo  

 

how to use labview as virtual printer by parallel port?

$
0
0

hi guys, I try to use labview to read the info of a tester equipment (cirris 1100R+), this equipment send to print a report by parallel port with protocol ascii centronics, i want to read this info with the pc and decodify to show it in a vi, i try to read the port LPT1, using VISA driver without result, I also try with IO port DLL with the same result, i follow the next literature:

link: http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB

Unable to see Newport ESP301 USB instrument in VISA resource list

$
0
0

I am trying to communicate with a Newport ESP301 controller via USB, using the NI-VISA or PyVISA library.

 

Here is some information about my machine:

python -m visa info

 

Machine Details:
   Platform ID:    Linux-3.16.0-53-generic-x86_64-with-debian-jessie-sid
   Processor:      x86_64

Python:
   Implementation: CPython
   Executable:     /usr/local/bin/python
   Version:        2.7.10
   Compiler:       GCC 4.8.4
   Bits:           64bit
   Build:          Nov 24 2015 14:35:43 (#default)
   Unicode:        UCS2

PyVISA Version: 1.8

Backends:
   ni:
      Version: 1.8 (bundled with PyVISA)
      #1: /usr/local/vxipnp/linux/lib64/libvisa.so:
         found by: auto
         bitness: 64
         Vendor: National Instruments
         Impl. Version: 15728640
         Spec. Version: 5243904
   py:
      Version: 0.2
      ASRL INSTR:
         Please install PySerial to use this resource type.
         No module named serial
      TCPIP INSTR: Available 
      USB RAW: Available via PyUSB (1.0.0b2). Backend: libusb1
      USB INSTR: Available via PyUSB (1.0.0b2). Backend: libusb1
      GPIB INSTR:
         Please install linux-gpib to use this resource type.
         No module named gpib
      TCPIP SOCKET: Available 

 

 

lsusb:

 

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 008: ID 104d:3001 Newport Corporation 
Bus 003 Device 007: ID 04b3:310c IBM Corp. Wheel Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

 

Attempting to use the PyVisa library:

 

>>> import visa>>> rm = visa.ResourceManager('@py')>>> rm.list_resources()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/pyvisa/highlevel.py", line 1560, in list_resources
    return self.visalib.list_resources(self.session, query)
  File "/usr/local/lib/python2.7/site-packages/pyvisa-py/highlevel.py", line 238, in list_resources
    raise errors.VisaIOError(errors.StatusCode.error_resource_not_found.value)
pyvisa.errors.VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.>>> exit()

 

 

Attempting to use the NI-VISA library:

 

>>> import visa>>> rm = visa.ResourceManager()
/usr/local/lib/python2.7/site-packages/pyvisa/ctwrapper/functions.py:1225: VisaIOWarning: VI_WARN_CONFIG_NLOADED (1073676407): The specified configuration either does not exist or could not be loaded. VISA-specified defaults will be used.
  ret = library.viOpenDefaultRM(byref(session))>>> rm.list_resources()
(u'ASRL5::INSTR',)>>> exit()

 

 

Why am I unable to see the USB instrument in the resource list? Any help is appreciated. Thank you in advance.

Disign GPIB interface using NAT9914+stm32F103 microcontroler

$
0
0

hi,

    I am design a GPIB interface board based on the NAT9914 and stm32F103 microcontroler,but I don't know how to read/write the registers,can you give me an example?such as provide me two functions Output(U8 add,uint data);Input(U8 Addr); I have read some document ,but I don't know what's the Addr means,please see the photo bellow,I use PORTD to read/write the registers,what is the address of register relate to the microcontroler? thank you!

gpib_stm32.JPG

Isochronous Endpoint with USB RAW

$
0
0

Hello,

 

I'm new to this forum. I just want to implement a USB-interface with the USB RAW block in Labview. By USB device has isochronous endpoint. I'm using NI-VISA driver. I just want to know if it is feasible to have a ioschronous transefr with my USB device.

 

Thanks in advance for the help.

 

Best Regards


overflow Keithley// GPIB Problem ?

$
0
0

Hello ,

I am working on a Relay-test  program the hardware is composed from the Keithley to take the mesearment and a Pickering card to match all the pins with the Realy matrix  .

My problem is when the keithley is on , i get the error message "Overflow MΩ" and the program cant find the pickering card .

When the Keithley is off the program can find the Pickering card but of course i can t take the meserments from the Matrix . 

I started to debug the prorgamm and i have noticed that i have different values in both situations . As a beginner i couldnt find the reson of this conflict . 

i screen shoted where i have  found different  values

 

any help is welcome! 

Thanks Capture1.PNG\Capture2.PNG

NI5132

$
0
0

HI, I am jus trying  to read some values ( frequency and phase)  from Ni5132 in my program but them are wrong. I tested the scope using  Ni MAX  and the data was correct. 

 

Someone can help me out. 

GPIB explorer setup with secondary ethernet port

$
0
0

I have GPIB explorer installed on a computer with two ethernet ports connected to two different networks. I have tried to set up GPIB ENET controllers on both networks but GPIB explorer sees only the box connected to the network on the primary ethernet port.

 

Is there any way to point NI 488 programs at a specific ethernet port? Each box has a static IP address so I'm not sure why this is not enough info to find the controller.

 

All help gratefully received.

 

Christina

Struggling with setting up a RS-485 connection from a mass flow controller to NI cDAQ

$
0
0

I am an absolute beginner starting from the ground up trying to connect the RS-485 port from a Sierra Instruments mass flow controller (MFC) to the NI cDAQ.

 

The intended pathway that someone before me laid out for the connection is:

 

1) Cable from MFC COM1 to the 4-Port Ethernet Interface for RS485/RS422 (DB-9 to DB-9)

2) Ethernet cable from 4-Port Ethernet Interface for RS485/RS422 to NI cDAQ

 

I am struggling to understand exactly how the pins should be lined up for the 1st part of the interface. The pinout for MFC COM1 is given below:

485 pinout.PNG

 

The pinout for DB-9 male shown in NI's Serial Quick Reference Guide is shown below:

485 pinout.PNG

 

I am not sure which pins at the MFC side should connect to which pins at the ENET-to-485 side. The obvious one is ground-to-ground (Pin 7 to Pin 1). Beyond that I'm stumped. Trying to read up references online has just served to confuse me even more at this point...

 

Any help would be much appreciated!

 

how to comunicate power analyzer CVM-C10 to labview?

$
0
0

Saludos.
Estoy intentando comunicar un equipo analizador de redes modelo CVM-C10-ITF-485-ICT2 Marca Circutor con Labview 2015 en un computador portatil (Windows 8.1), para lo cual estoy utilizando un convertidor RS485-Rs232 Modelo QX-201 y un cable barato RS232-USB. El aparato aparece en el administrador de dispositivos con un puerto COM (lo cual quiere decir que esta bien conectado, cierto?).
La cuestion es que cuando intento establecer comunicación corriendo el siguiente ejemplo de labview:

C:\Program Files\National Instruments\LabVIEW 2015\examples\Instrument IO\Serial\Continuous Serial Write and Read.vi

Y espero una respuesta para el comando *IDN?, el equipo no responde y se me genera un error 1073807339 que indica que el tiempo para establecer la conexión ha expirado.
Intenté comunicarme via Hyperterminal pero no obtengo tampoco respuesta al comando *IDN?. Tambien revisé que tanto en el analizador de redes como en el VI de labview estuvieran configurados los siguientes valores: baud rate:9600 data bits:8 parity:none stop bits:1 ; y aún asi no funciona.

Si alguno de ustedes por favor ha hecho antes o trabajado antes con estos equipos y labview y tiene alguna idea de como intercomunicarlos, por favor ayudeme ya que yo soy primiparo en esto, ademas estuve buscando en la pagina de circutor y no hay ninguna información de como verificar que el analizador CVM-C10 esta comunicandose con el PC.

Agradezco su ayuda de antemano,

Could not get NI-MAX to see GPIB device

$
0
0

Initially NI-MAX would not see a Keithley DMM connected to a GPIB card installed in a PCI slot in this computer. In order to get a GPIB card made by HP-Agilent-Keysight to work, I downloaded "Agilent IO Connection Expert" version 16.3. This software immediately found the instrument that is connected to it when I hit "Add an instrument".  Still NI-MAX could not see the instrument, but I read from one of your posts that you have to enable NIVISA Tulip.dll. I found in NI-MAX under NI-VISA 15.0, General Settings -> Passports, an unchecked box for NiVisaTulip.dll so I checked it.  After that I opened the Agilent Connection Expert, went to Tools -> Agilent 488 -> Agilent 488 Options tab, and tried to check the box "Enable Agilent GPIB cards for 488 programs". It came back with the message "Connection Expert could not enable Agilent 488 because a file is in use. Reboot you PC and try again."          Rebooting and trying again had no effect.  So what am I missing here?  Are there some other settings in NI-MAX that I need to make?

In NI STS T2 tester - what is purpose of TTL0,TTL1,TTL 2,TTL3 in system block(P143)?

$
0
0

Hi ,

 

Iam unable to find community NI STS T2 tester.If community exists,please send the link to me ,else please forward below query to corresponding technical team related to NI STS T2 tester

 

Please explain the puropse of TTL0,TTL1,TTL 2,TTL3 pogo pins in system block(P143) in NI STS T2 tester.

 

 

Thanks & Regards,

Srinath.

 


Updating GPIB-ENET/100 Firware to C.9

$
0
0
I inherited an older GPIB-ENET/100 and I need to update the firmware to ver C.9. I haven't done it in a long, long time and I vaguely remember there is a trick to do it. I searched this forum and didn’t find anything that helps. I followed the steps in Help file and I don’t think NI revised Help for the latest version of NI MAX (ver 15.0). There is no “UPDATE” button in the preferences window. I haven’t found the “UPDATE” button anywhere. I also have a service request and NI basically told me to do the same steps as in the Help. Has anyone updated the firmware using the latest version of NI MAX 15.0??

gpib explorer communication ok with ENET/100 but NOT with ENET/1000

$
0
0

Hi,

 

I am having trouble with gpib explorer and ENET/1000 communication.

 

I can happily communicate with ENET/100s, but cannot communicate with ENET/1000s. symptoms are as follows:

 

Searching the network for GPIB controllers does not show ENET/1000s.

I manually add the ip address (using gpib explorer and selecting enet/1000) and the message comes back that there is no such device (though I can access the configuration page through a browser).

I then tried to add manually again, but this time telling gpib explorer that the controller is an enet/100. The message comes back that this device is not an enet/100, which tells me that there is some kind of communication.

 

I also explicitly opened the ports listed in this http://www.ni.com/white-paper/12402/en/#toc3 recent white paper from NI (UDP port 44525 and TCP 5000, 5003, 5005, 5010, and 5015)

 

I am running on 64 bit Red-Hat with the latest ni4882 and firmware and both devices are on the same subnet.

 

All help appreciated,

Christina

Getting errors during installation of NI-488.2 drivers on CentOS 7

$
0
0

Hi,

I am trying to install the NI-488.2 drivers provided here, on a fresh install of CentOS 7 (centOS 7 seems to be available for x86_64 architectures only).

 

First error I get during the installation is the following  :

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

So I guess this is because of some missing 32 bits library, I look on the web and end up doing :

yum -y install glibc.i686

The previous error seems fixed but then I get this one :

Warning :nikali post installation failed! /tmp/nikaliPostInstall.log follows:
nikal: ERROR: Error locating kernel sources for the requested kernel version (3.10.0-327.el7.x86_64).

which is weird, because the requested kernel version seems to match the one I get with uname -a. I tried to install the kernel-devel package but does not solve anything.

 

I tried to reboot and execute /usr/local/bin/gpibexplorer just in case and encountered a problem with libgcc_s.so.1 and libgl, which I installed.

I also ran updateNIDrivers which seemed to succeed and rebooted.

Finally, running gpibexplorer seems to work for a bit (a window appears) and then crashes instantly with the following error message :

libnipalu.so failed to initialize

I did not find a solution to fix this last issue yet.

 

Thanks for your help.

 

Vector VN8900 stopped working after opening MAX

$
0
0

Hi Everyone,

 

I seriously hope this is the right forum since this issue is rather odd.

 

Yesterday while I was playing around with my setup consisting of a Vector VN8900 + 8970 connected to a PXI 1085 + 8880 we had some issues that were purely related to CANoe 8.5. When we got the rest bus simulation to work with CANoe we wanted to take some measurements with the SC-Express cards in the chassis so we opened NI MAX. Right as MAX started up our rest bus simulation aborted and the VN8900 was no longer reachable over USB. Resetting, reinstalling and plugging into another USB Port didn't work.

 

I tried the device with my Laptop which worked fine yesterday. This morning I tried it again with MAX open and it showed the same behaviour. I give it an outside chance that it has something to do with an USB Stick being pulled out at the same time (unsafe, of course), but I'm pretty sure it is caused by MAX. Is there a possibility, that MAX has somehow reserved the resource- as it was used by another software, no less- and now doesn't want to give it free? I would have expected to be able to fix this in MAX somehow, but I can't find the correct options.

 

Any ideas are greatly appreciated!

Serial Communication Failure with VISA Read

$
0
0

I am able to successfully communicate with the device, however, the output reads the default value everyother time. The VISA Read function reads the command everyother time instead of the value. When ran consecutively eventually the VI stops running and LabVIEW must be restart in order for the VI to communicate again. What is the cause of this? How can I fix it? Attached are two VI's that display this problem when ran. Thank you.

Viewing all 5663 articles
Browse latest View live


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