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

GPIB VBIB-32.bas and NIglobal.bas code conversion from VB6 to Vb.net/ C#

$
0
0

Hello folks,

 

I'm working on converting an application written in Visual Basic 6.0 into Vb.Net or C#. The VB6 application uses GPIB to communicate with the external device and has used the following module -  VBIB-32.bas and NIglobal.bas. I had made some syntax modifications and have renamed modules to VBIB32.vb and NIGLOBAL.vb. I would like to know whether is there an official NIGLOBAL.vb and VBIB32 module files for vb.net or C#.

 

It would be of great help if someone can help with anything. Please note I have installed NI 448.2 dll and have added to project reference and added to namespace. It shows no syntax or runtime  error, but the program doesn't give the desired output.

 


E2740: IEEE-488: (NI EDVR) DOS Error on Fluke 5520A calibrator communication

$
0
0

Hello,

 

I am trying to port a Fluke 5520A from an old WinXP system to a new Win10 system.
I've been successful in porting everything Fluke related (which is a quite old database system).
The communication with the Fluke 5520A should be by a GPIB-Card, so we purchased a CONTEC GP-IB(PCI)-FL GPIB board.
Everything went smoothly, but now, when starting a calibration process, the following error occurs:

 

E2740: IEEE-488: (NI EDVR) DOS Error

 

I talked to the CONTEC support and they told me that their GPIBxx.dll will replace the old ones on the system.
They said that their driver talks by utilizing their GPIBxx.dll's.
But since this seems to be a NI error, I thought about asking the Fluke support, whether they can use the GPIBxx.dll's provided by CONTEC.

 

So then I talked to the Fluke support and they told me that we have to use the NI (MAX).
They also told me that I have to configure my card(s) correcly, because thats a common problem with this error.
But I am 100% sure that everything is configured the way it should be.

 

Interestingly, without the CONTEC drivers, the system wont even recognize the installed card at all.
But even with them installed, the NI MAX wont find the card. Also, with installed NI-488.2 drivers from NI, NI MAX wont find any GPIB boards
except for the (non-existing) NI GPIB Network Card.

 

So my question now is:
How to resolve the above mentioned error (E2740: IEEE-488: (NI EDVR) DOS Error)?
It seems a bit odd to me, that a 400 EUR card wont be able to communicate to a GPIB device, while its commands are usually standardized (SCPI, if I recall correctly).

 

If you need any more info on it, please ask!
Thank you so much in advance!

Setting up serial connection to 7225 Lock-in amplifier

$
0
0

Hey everybody,

I am aware this topic was discussed to some extent in other threads, but after reading them I was still not able to find a solution to my issue.
I am trying to connect to a Signal Recovery 7225 Lock-in amplifier through RS232 serial communication. In NI MAX, I set all parameters according to the manual, 9600 bauds, 7 (or 8, neither works) data bits, 1 stop bit, even parity, DTR/DSR Echo, terminator for both read and write on 'termchar', which is set to 'carriage return' (\r).

According to the manual, the command 'ID' (or also 'ID\r') should have the amplifier respond with its ID '7225'. However, when I hit the 'query' button, I seem to be able to send the command as I get echo-ed back 2(or 3 if I used 'ID\r') bytes, however, the read fails after timeout expired (0xBFFF0015) as the instrument does not respond, so I assume the command settings are still not quite right? In the NI I/O trace also codes 0x08361E38 and 0x038793C0 show up, which I was unable to find anywhere on databases. I did install all NI-VISA USB/RS232 drivers, according to the instrument documentation it does not require one of its own.
Perhaps someone who made a similar instrument work knows what settings I am missing, or perhaps a different mistake.
I am attaching you all material that could be helpful.
Really really really would appreciate a tip or two.

Best regards,

Hannes

P.S.: In the attached instrument documentation, serial communication is referred to in 6.3.02 and following, and the appendix lists all commands alphabetically.

NI-488.2 driver for Mac OS is not working

$
0
0

Hi  - I'm trying to install NI-488.2 driver on a Mac to use GPIB-USB-HS to control an instrument with Matlab. But thus far, I'm unable to successfully use the driver. Here are further details:

  • MacBook Air - 10.14.1 OS
  • NI-488.2 version 19.5 for macOS
  • Hardware to be used with GPIB-USB-HS

The installation completes successfully with no error messages. It creates a directory under Applications called, National Instruments. However, running Application -> NI-488.2 -> GPIB Explorer, I get an error message popup that says: "The attempted operation failed." If I run, Application -> NI-488.2 -> Troubleshooting Wizard, I get an error message popup that says: "The Ni-488.2 software is not correctly installed on your system. Please follow these steps: 1. Restart your system. 2. Reinstall the NI-488.2 Software. 3. Run the Troubleshooting Wizard again." I have tried to do this a couple of times, with no luck. I end up with the same error message and the status shows failure at "Ni-488.2 Software Presence Verified" step.

 

I would greatly appreciate any assistance. Thanks. 

PXIe-8431/16 error

$
0
0

I have 7 PXIe-8431/16 serial modules in my PXI system.  My controller is running NI Linux RT.  2 of the 7 modules are initializing ok, but the other 5 are giving the following error:

 

[    3.835107] niserial 0000:15:00.0: Couldn't register serial port 0, irq 31, type 2, error -28

 

When I view the system remotely from MAX, all 7 modules are showing up but only 2 of them are expandable to view the 16 channels.  I know 112 serial channels is a lot, but I cannot tell if this is a driver issue, a HW issue or an OS issue.  Does anyone know how to solve this?

MAX cannot detect the GPIB devices

$
0
0

Hi NI

i install the driver and list as the picture, but the MAX can not detect the GPIB devices, what should i do?

1.png

2.png3.png

4.png

Using USRP 2900 Wirelessly

$
0
0

Is there any method by which we can use NI USRP 2900 without connecting it to the host PC via USB cable?

GPIB Windows XP Driver

$
0
0

Hello everyone,

 

I can´t find a driver for this card for Windows XP on the Webside. Does anyone else here has this driver or can I get it somewhere else?

 

kind regards Thomas


Fail to communicate using a USB resource on Linux

$
0
0

Dear community,

 

I come here hoping to get some some ideas and suggestions about a problem I am having connecting a spectrometer device (a ThorLabs product) via a USB interface on a Linux environment. This device requires a VISA implementation to work and to that end I downloaded the NI-VISA libraries from https://www.ni.com/en-gb/support/downloads/drivers/download.ni-linux-device-drivers.html#350003 and installed them on an openSUSE-Leap15.1.

 

Thus far I managed to pick the device control drivers source code from ThorLabs and compiled it with GCC, linking the VISA libraries provided by the NI-VISA package. To initialise the device from the compiled libraries I need to pass the USB resource name and here is where my problems start, since it seems my system is unable to find it.

 

Here's what I've done to so far:

- Using the command 'lsusb -v' in Linux shows the vendor (0x1313) and product IDs (0x8080), but not the serial number. Also the product ID is not what I expect to see, which is 0x8081.

- Used pyvisa ResourceManager class to list all interfaces with the libvisa.so backend did not return my device, even when passing the query '?*'

- Knowing that it is a RAW instrument I using NI-VISA Driver Wizard following this page but surprisingly the USB option is greyed out. Maybe this could already help figure out what's wrong.

 

Tried this before on a Windows machine with the NI-VISA libraries and it worked flawlessly, so in a way I know what I am looking for.

 

I feel that I am close to solving this but I am out of ideas. Any help would be greatly appreciated.

data extraction from Agilent 4155A using NI driver Agilent 415X

$
0
0

Hi everyone, 

 

I want to interface an Agilent 4155A (parameter analyzer instrument) with my PC, and use a GPIB-USB-HS+ cable to extract an I-V curve from the Agilent. 
I have NI MAX, NI 488.2, VISA, and the NI instrument driver Agilent 415X. 

 

First off, I am not sure if the driver Agilent 415X can be used with full functionality with Agilent 4155A? Should I be creating my own instrument driver project? 

 

Secondly, I am using the following code to extract a data curve that my instrument has. I am not using my labview code to control the 4155A , but just extract data from it. I want to read the curve on my 4155A and write it to excel files on my PC. 
mylabviewtrialcode.PNG
I was wondering if something is wrong/missing from the code since it gives me an error? If I am just doing data extraction should I be using 488.2 driver for GPIB control or NI DAQmx instead of an Agilent driver? 

(17 is the address of my GPIB0. I successfully scan my instrument using MAX, and I successfully read&write command "*IDN?\n" in VISA control. )

 

Thank you so much for your time reading my note, and for responding. I do realize this might be a basic question (I am new to LabView and not an expert on data transfer through gpibs yet). 

Arachnid Dart Board Target Interface Board RS422/RS485 Communication line

$
0
0

I own an Arachnid electronic dart board from the late 80's, and want to capture the data from the dartboard (and eliminate the manufacturer motherboard) in order to write my own custom games.  

 

There are two components: 

      1) Motherboard that sends clock signal, +5v and ground to the dartboard Smart Target Interface Board (STIB)

      2)  Smart Target Interface Board (STIB) that collects the dart hits from a dartboard contact matrix and sends the result as serial data using one wire to motherboard after each dart hit.

 

The motherboard (schematic attached) is connected to the STIB via RJ11 using a 6 wire flat phone cable and I'm trying to reverse engineer the decoding of the output so I can eventually remove the motherboard and add my own Rasberry PI (or similar) so I can program my own games.

 

The STIB (schematic attached) uses a 76176 RS422/RS485 chip.  BUT, it only uses the "A" with the "B" being NC (not connected).  On the motherboard side there is no RS422/RS485 receive chip.

 

I own a USB to RS422/RS485 adapter, and Arduino Mega 2560 and tried wiring it up as many possible ways I can think of using UART, SPI, I2C, to monitor the serial port.  Nothing intelligent / repeatable comes across. I've spent many hours on this already and I'm at a dead end.  

 

I have a lot of programming / logic skills but minimal circuit / schematic skills and I'm willing to try whatever is suggested. 

 

I have some questions:

    1. Why no "B" wire on the transmit lines? Is one wire RS422/RS485 possible?  Thought 2 wires are necessary for differential.   

    2.  The Driver Enable / Receive Enable on the STIB are hard connected to +5, I'm guessing because they know it's the only node and will always be enabled?

    3. Could this be using an RS422/485 on the STIB but reverting to something else since it's only using one wire?

    4. What is the 10k resister on the motherboard pin 37 DAT1?  Is that possible a terminator to fool the RS422/485 comms to somehow think there is differential? 

    5. I don't currently own an oscilloscope but thought of buying the Siglent SDS1104X-E 100Mhz digital oscilloscope 4 channels standard decoder.  Is that a good one?  Should I use an oscilloscope to further reverse engineer and see what is coming across that single data line?

 

What suggestion do you have for me or thoughts on this design?


Thanks so much.  I've done my due diligence but I'm stuck and could use the help - thanks in advance. 😞 

 

Jamie

 

VISA Write Error

$
0
0

Hi I created my own driver package using the NI-VISA Driver Wizard. I am running an old LabVIEW program on a Windows 10 machine and continue to get a VISA Write failure. I have created my own .pfx certificate on my local machine and placed it in the Trusted Publisher and Trusted Root and digitally signed the catalog file created from the INF made by the Wizard yet it continues to fail at the same step. I know this is not a communication issue (I can read, write, and query through the VISA test panel). I have mass compiled the LabVIEW project too. Can I get some assistance regarding the certificate? I have read through the NI websites multiple times and still do not know what is going wrong.

GPIB-USB communication by delphi code

$
0
0

I tried to write a code in Delphi to control my instrument(Keithly6221). The instrument is connected and as soon as I run the programme it shows -113 error(undefined header). and i can't communicate with the instrument. please suggest me How to overcome issue.

SCPI commands for continuous sine waves

$
0
0

I am trying to control a power source instrument and I am able to apply a sine wave but only for one period. I can put the visa write in a loop but then there is pretty significant lag between cycles

Any help would be appreciated.

Obtaining Data from Two Fluke Norma Analyzer

$
0
0

Hello All,

 I have two Fluke Norma 5000 Power Analyzer. I need to save data from two power analyzer in PC. Using Norma Software I able to  see only connection option for a single Analyzer. Is there a work around to store data from two power analyzer in PC using LAN or other communication mode. I am newbie to NI systems so please could you give references related to this issue. Thanks


Single (BLS) ou/or Multi Buslace (BLM) mode

$
0
0

English Below

 

Bonjour a tous,

 

Je suis a la recherche d'informations concernant la caractéristique du BusLace sur la carte GPIB-PCIe Ref : 780575-01.

Nous avons un montage part rebond et le fournisseur d'appareils connectés nous indique qu'il nous faut le Multi Buslace Mode (BLM).

 

Merci a vous pour vos futures réponses et bonne journée

 


Good morning all,

 

I am looking for information regarding the characteristic of BusLace on the GPIB-PCIe card Ref: 780575-01.

We have a rebound assembly and the connected device supplier tells us that we need Multi Buslace Mode (BLM).

 

Thank you for your future answers and have a nice day

Classic Soft Front Panel (SFP) instead of Instrument Studio

Conexión de LINX y arduino LEONARDO

PCI-8431/2 with Nvidia Jetson AGX Xavier

$
0
0

Hi All,

 

Is there a driver for the PCI-8431/2 compatible with the Nvidia Jetson Xavier (ARM v8.2)? Or at least are there anything that I can try to compile?

 

Sincerely yours,

PXI-8430

$
0
0

I cannot access the serial ports on my PXI-8430/4 card. I have run the NI-Serial troubleshooter and get all 4 ports verified. 

kathyleak_0-1603146378438.png

 

However when I run NI Max the card does not show in the 'Devices and Interfaces' section and I am unable to access them in Labview. Is there something I have missed in setting up the system?

kathyleak_1-1603146535268.png

 

Viewing all 5667 articles
Browse latest View live


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