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

Changing GPIB-ENET/1000 Static IP Address

$
0
0

I am trying to set up a new GPIB-ENET/1000 with a static IP address. I have tried using the Ethernet Wizard and when I tried setting it up I received an error message saying "Interface configuration has been cancelled ". I also tried using NI MAX to configure the device however whenever I try save the settings to the GPIB, I get a message saying "Applying Settings" and runs in a never ending loop. 

 


GPIB Control of SR830

$
0
0

Hi, everyone.

I'm a beginner level in Labview.

I want to measure and save data using Lock-in-amplifier SR830, pre-amplifier SR570, and Keithley sourcemeter 2600 series.

But, I have only one GPIB yet. so, Lock-in-amplifier is only connected with GPIB. (Other instruments set by analog control)

 

I used and modified SR830 examples provided by Labview to measure and save automatically data. This code worked well(data read and save).

However, The data results were quite different when running Labview program and when it is not. (data become very larger than analog control without labview --> it causes output overload error.)

(all setting values in Lock-in-amplifier were same.)

 

So, I have a question. If I have multiple instruments connect with each others and only one instrument is connected with GPIB, when run the labview program for GPIB connected instrument, can I have a issue in above case? or This issue is caused by just code problem?

 

I'm sorry for my poor English.

Please give me any comment or advisement.

 

Thank you

tjdgjs15_0-1580111172974.png

GPIB communication lost every now and then, after upgrade from LabVIEW 2009 to 2018

$
0
0

Hello all,

I have recently upgraded a test stand computer from Windows XP to Windows 10, and LabVIEW 2009 to 2018. The system has 8 instruments connected on GPIB, via an NI-GPIB-USB-HS.

Every now and then, the instruments simply "disappear" and the software can no longer communicate with them. When this happens, the scan for instruments in MAX does not find any instruments. We need to power all instruments down, then up for them to re-appear.

I tried to plug the GPIB-USB-HS through a self-powered USB hub - this has helped me fix similar communication issues on test stands where I had multiple USB devices. This time it seemed to make the problem occur less often, but it did not eliminate it.

 

Has anybody experienced something similar? Anything you suggest me to try? I believe the GPIB cables are good and connected right (they worked before the upgrade). I realize this can be just a coincidence.

 

I attached a snapshot of the software and devices in MAX, when no device is detected.

 

Thanks.

max software finding gpib card

$
0
0

My computer device manager finds the gpib card and driver, but labview will not communicate with the card.

I run MAX software and on the Comm 1 I get an open visa test panel icon. when I select GPIB I do not get this option.

I cannot get any VI to control the GPIB card . What have I done wrong??

 

 

GPIB-ENET/1000 Installation Troubles

$
0
0

Hello,

 

I am running into problems trying to install a recently purchased GPIB-ENET/1000 unit. When I run the GPIB Ethernet Wizard the device is not detected. Selecting "Refresh List" produces nothing.

I've tried to use NI-Max to see if the unit is detected without any luck.

 

I am running Windows 10 on a Dell OptiPlex 3060. The GPIB-ENET/1000 is connected directly to the computer with a straight-thru ethernet cable.

 

I am running a static IP configuration (TCP/IPv4) as follows:

IP address: 192.168.10.206

Subnet mask: 255.255.255.0

Default Gateway: 192.168.10.1

Preferred DNS server: 192.168.10.12

(Windows is forcing me to make an entry - this is what our sys admin set it to)

 

I don't think I have an issue with my cable or Ethernet adapter as I am able to communicate with other devices without issues.

 

Can some one clue me in as to what I'm doing wrong? We can not support DHCP since we will eventually have other devices on the network with fixed IP addresses and require that our control applications be used without the need to reconfigure,

 

Any help greatly appreciated!

Thank you!

 

 

 

NI PCI-5122 Windows 10 Driver

$
0
0

With the demise of Windows 7, does anyone know if there is a driver for  Windows 10? I have installed Windows 10, the NI PCI-5122 is seen in Device Manager and is listed as PCI Device. When I try to install the older driver taken from Windows 7, I receive an error saying that the driver could not be loaded (corrupt or missing) with a Code 39 error number?

 

I have removed antivirus software aswell, same issue when I attempt to install the Win 7 driver?

 

Anybody out there have any ideas? I cannot find a newer driver anywhere.

Comunicación Linx SPI con modulo MAX 6675

$
0
0

Buenas Tardes, estoy tratando de comunicar mediante SPI de linx el modulo MAX 6675 que lee temperaturas de termocuplas, utilizando Arduino uno. EL programa no presenta errores sin embargo no esta leyendo los registros. 

El clock del modulo esta conectado al pin 13 del arduino uno. 

EL pin CS esta conectado al pin 10 del arduino y esta configurado asi en CS channel. 

El  pin SO esta conectado al pin 12 del arduino. 

Si alguien me puede orientar por donde encontrar la solución. 

Test functionality of MAX for NI-CAN

$
0
0

The Measurement & Automation Explorer (MAX) provides features for VISA devices that allows you to write to and read from the device via a "VISA test panel".

 

What kind of functionality does MAX provide for CAN devices (e.g., the CAN interface devices sold by NI).

 

I am asking because we are looking into potentially buying a CAN interface device however we would like to know what CAN functionality is supported by MAX (I don't see how I can see this without plugging in a CAN interface device, which we don't have yet).

 

E.g., is there a test panel with similar features to the VISA test panel, that allows you to read/write to/from the device. What kind of functionality does MAX provide for CAN devices? If anyone has screenshots that would be particularly useful.

 

Not sure if this is the suitable location to post this in but oh well.


Continuous data acquisition from Keithley 6517A using LabView

$
0
0

Good morning everyone, 

 

I am a new member here as I am also a new user of LabView. As such I have no expertise whatsoever hence I am making a query here to ask a favor from the experts of LabView who also have worked with Keithley equipments (in particular 6517A).

 

I want to use LabView to acquire and store data from Keithley 6517A using a GPIB USB cable. My prime concern using this combination is to measure resistance (R) and charge (Q) for a given time length. For my research purposes, I want to:

 

1) Record the resistance of a certain material over a length of time while setting the parameters in LabView like measurement time (or in alternative start/stop command for measurement), number of readings (data frequency), applied voltage and range of current (either fixed or autorange).

 

2) Record the charges of a certain material over a length of time with (for the time being) just a start/stop command for measurement and number of readings (data frequency).

 

As said before, since I am not an expert, I have found a colleague who does have some working experience with LabView but he still is a bit stuck in making a .vi suited for me.

 

Anyone of you is kindly requested to have a look in the attached .vi file which he was able to modify (for now, it is just for measuring resistance). As per my requirements above, can anyone help us in correcting the problems that we are facing that are:

 

1) The resistance of a known resistor is not getting measured correctly by LabView. Manually using Keithley 6517A gives always the correct resistance value. Where could be the problem?

2) The program itself is a bit complex for me e.g what does the reading option means and what is its use? What is enable average filter, display resolution, filter count, auto range value and aperture integration time? I just want the following commands at my disposal: start/stop button or time command, data frequency, applied voltage, range setting (either auto or manual).

 

Let us focus on these things and find a solution for which anyone of you who would help me would do a great favor for me and my research work...

 

Thank you and have a nice day.

Configuring Advanced Sequencing

Control USRP-2945 with python

$
0
0

Hello,

Is it possible to control the USRP-2945 device with python using some kind of library?

 

Thanks so much,

Mario

Using the USB 8451 to write files to EEPROM

$
0
0

Hello,

 

I want to write a .srec file to the EEPROM of the bq40z50 using the USB 8451 interface. For this, i want to communicate with the SMBus of the device using the LabVIEW example "General I2C write.vi". My idea is to read the file in text format (as a string in LabVIEW) and convert it to a byte array, so that every entry in the array stands for the ascii value of a character in the text file. To communicate with the USB 8451, i use the clock rate 80 kHz (tried 100 kHz before), I/O Voltage Level 3.3 V (can´t change this without getting an error message), I2CPullup to false, timeout 35ms, address size 7 bits.

I dont know which device address to use. The default address is 0x50, but i tried various values i found in data sheets. I think because of this, i get the error 301742:

NI-845x: The slave did not acknowledge an address and direction byte transmitted by the I2C master. Reasons include the incorrect address set in the I2C configuration or the incorrect use of the 7-bit address. When entering an address to access a 7-bit device, do not include the direction bit. The NI-845x Basic I2C API internally sets the direction bit to the correct value, depending on the function (write or read). If your datasheet specfies the 7-bit device address as a byte, discard the direction bit (bit 0) and right-shift the byte value by one to create the 7-bit address.


Can you tell me if my attempt is correct? What device address should I use? Is it possible at all to use this example for SMBus devices?

 

Many thanks

Sven

High precision time stamping with USB-8452

$
0
0

I have the USB-8452 module for I2C & SPI. 

Does it allow internally for a high precision / resolution time stamping of data?  

 

I'm interested in logging message sending / arrival times, between my target device and the NI module. For a simulated I2C and SPI devices(s). 

Do I have then to use / rely only on times that my host system running LabView allows - such as laptop with Windows 10 on it?  Or this USB-8452 can do accurate timing internally?


Thanks for your answer in advance.

Software cmpatibility between GPIB-232CT-A and GPIB-RS232

$
0
0

Hello,

I control GPIB instruments from a Linux box via GPIB-232CT-A.  I don't use any NI drivers, simply send low-level GPIB exchange commands from a dedicated program written in C.  For example, in order to send *IDN?\n to device at GPIB address 15 I would write two strings to the GPIB-232CT-A (via the serial port of the Linux box):

  wrt #6 15\r\n

  *IDN?\n\n

The old GPIB-232CT-A boxes are slowly dying, and NI does not seem to sell them any more, so my question is: will these commands still work with the newer GPIB-RS232?

The old GPIB-232CT-A is very well documented here: http://www.ni.com/pdf/manuals/370898a.pdf.

My second question is: is there a similar document for the newer  GPIB-RS232?

 

Thank you!

Is it possible to control Agilent 6673A power supply over GPIB via PC without Labview?

$
0
0

Hi:

  I am trying to control a power supply (Agilent 6673A) via PC through GPIB-USB interface. I have googled several websites, but still do not have a clear idea of how to implement such task.  From what I know, I should get one of:

https://www.ni.com/en-tr/support/model.gpib-usb-hs.html 

and I need to download drivers for power supply Agilent 6673A from

https://www.keysight.com/main/software.jspx?ckey=2267056&lc=eng&cc=TR&nid=-11144.0.00&id=2267056

but other than that, I really don't have a clue as how to proceed.

 

The good thing here is, my application will only be based on turning the power supply On/Off and, recalling a value.
Therefore, I am not sure that It will need to set up Labview. 

 

I will be glad to know if there is a way to use the device driver in such a C++ or C# application to turn the supply On/Off and recall a value OR assign a value to the outputs.

 

Thanks in advance

Sarp


NI MAX sees multiple devices, but can't correctly identify which are present.

$
0
0

I am currently trying to get NI MAX to recognize that an Agilent B1500A, a Keithley 2400 Sourcemeter, and a Lakeshore 331 Temperature Controller are present and hooked up to a Keysight Technologies 82357B USB/GPIB Interface. NI MAX currently sees over 30 devices when only 3 are present. When I plug in and unplug new devices, the amount "present" does not change. Does anyone have any suggestions as to what I should do to try to identify which device is which?

 

*The image below is from when only one device is connected to the GBIP/USB. The device connected has a GPIB address of 5. 

How to turn on and off power to USBs on RoboRio?

$
0
0

We are wondering if there is a Wpilib class that is able to turn on and off the power to the USB port on the RoboRio. Is there a way to do this? We are using a USB camera and are trying to conserve power for other purposes.

'.obj' is not a supported source type in BCB x64

$
0
0

Hi all,

I plan to convert our GPIB remote program from x86 to x64, but in BCB x64, '.obj' is not a supported source type (gpib-32.obj).
linker error:
[ilink64 Error] Error: Unresolved external 'ibdev' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O
[ilink64 Error] Error: Unresolved external 'ibsta' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O
[ilink64 Error] Error: Unresolved external 'ibonl' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O
[ilink64 Error] Error: Unresolved external 'ibwrt' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O
[ilink64 Error] Error: Unresolved external 'ibrd' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O
[ilink64 Error] Error: Unresolved external 'ibcntl' referenced from C:\C++PROJECT\CALIBRATOR_X64\WIN64\DEBUG\GPIB_CLASS.O


It's there any other suggestion or replaceable resource?

 


Thanks and best regards,
Ann.

How can I connect myRIO and Raspberry Pi with UART port?

$
0
0

Hello,

I have a project and I have to connect myRIO and Raspberry Pi with UART port. But I don't know how can ı make communication myRIO and Raspberry Pi with UART port? 

 

Thank you for your helping.

Inconsistent serial communication with temperature bath

$
0
0

I'm trying to set up a VI for monitoring and controlling a temperature bath, thermocouple, and hygrometer, that will be used to control a variable humidity, variable temperature, data collection setup. The attached VI is meant to check for any changes in bath Set Temperature, make any changes necessary, then monitor the various temperature/humidity inputs and indicate when they stabilize. 

 

I think everything works except for the serial communication with the temperature bath, which works inconsistently. The probes suggest the commands are going in when they should (i.e. when I make a change), so I think the case structure is functioning properly.  When I start the program the bath responds to changes in Set Temperature, but after a few changes it stops responding. I'm also getting strange readings on the Bath Temperature indicator. At first I was struggling to get any communication with the bath, then found success by writing in termination characters as strings, but I think this may also be the source of problems. I attached the pages of the manual relevant to serial control.

Bath: VWR Refrigerated Circulating Bath 89202-982. Same controller as a PolyScience one, which has some useful documentation.

 

Obligatory: I'm brand new to LabVIEW. Any general comments on the VI are definitely welcome. 

Viewing all 5662 articles
Browse latest View live


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