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

How to check equipment utilization ?

$
0
0

Hi ,

 

i am trying to monitor how many times the instrument status like how many times the communication has happened between PC and instrument in a day or if it is idle on a system . Is there any VISA command that can be used to check the number of times the instrument is called or any other way to do so ?

 

Thank you


NI DAQ interactions with a temperature control unit

$
0
0

Unfortunately, I will not be able to provide a screenshot or exact data. But here's the issue. We're needing to run a 5V PWM from an Arduino uno r3 through a Wavelength Electronics PTC K-CH 5. When hooking up the DAQ to the unit it's been reading as a certain voltage equivalent but once disconnected and reconnected, the value changes, any suggestions? When checking online, the most frequent solution has been an RC Filter.

 

Thanks & Regards,

nox player 6

Unable to connect cRIO to NI MAX

$
0
0

Hi,

I have been trying to connect cRIO 9076 in NI MAX but have no luck on it. I tried to reset and/or change the IP address (offline) but still can't get it connect even when I troubleshoot remote system recovery still no luck on connecting it. I'm not sure what have caused the problem.

Getting Started with Linux Host

$
0
0

Hello!

 

We have some software running on a CentOS7 PC system that we want to connect to some hardware interfaces (A/D, D/A, DIO, etc) to stimulate inputs and receive outputs from an embedded processor.

 

It appears that the modules we need are available in a PXI form and could be grouped into an appropriate NI PXI chassis.

 

What do we need in order to interface the CentOS7 PC to the chassis to control and collect the data?

Does NI-VISA provide an API that we can program to?

 

Just wondering where I can find the relevant information.

 

Thanks

USB-6361

$
0
0

Hello,

Does anyone know if USB-6361 DAQ has a software which allows to name, set-up ( adding gain, ... ) etc the various analog & digital signals from a PC ?

 

Thanks

Best regards

visa read no output show up from read buffer

$
0
0

Hello,

 

Is there a mistake in my program? my read buffer did not show up. i attached my VI file for reference. I dont know what to do anymore. i use arduino uno with HC-SR04. Thank you!!!

How to send GPIB commands over loopback address?

$
0
0

I've done a little research on this forum and found some basic stuff relating to sending GPIB commands via the NI-MAX test panel over the loopback address. To set this up myself, I opened NI-MAX, used the prompts to add a new device to the Network Devices section, did a manual entry of a LAN instrument, entered 127.0.0.1, and the resulting resource name was TCPIP0:127.0.0.1:INSTR. However, the button to open the test panel for this device is grayed out. I can ping the address, so I know I can reach it. What did I do wrong?

VISA close takes few seconds when using HiSLIP

$
0
0

Hi,

 

Using VISA close on HiSLIP session takes 2-3 seconds to complete. VISA close returns VI_SUCCESS so everything seems normal except for the execution time. Also communication using reads and writes is executed fast and nothing weird is going on. When using VXI-11, VISA close executes in less than a millisecond.

Is this normal or do I have something weird going on in my configuration?

 

Instruments are in a dedicated network with static IPs. There is only a L2 switch between the controlling computer and the instruments.

 

munaleipä


USB625:1 incompatible on linux?

$
0
0

Hello,

I really hope that question has never been asked before (i searched for quite a while now).

Context: I am working with a Thorlabs OCT system (Callisto) which i composed of a NI USB6251 card that control all the components inside. The Thorlabs company told me they don't have a linux compatible SDK and told me to check with the NI SDK. As of now I tried to connect via VISA and nidaqmx from my linux distribution (Scientific Linux 7 (CentOS based)) but I can't seem to find the usb device anywhere. I tried on a windows computer with NI MAX and it worked so now I really am stuck to this point.

 

So the question is: As I am not working on labview, is there a way to communicate with the USB6251 from my OS? If yes, is there example on how to do so?

 

Sorry if this sound like a dumb question, I am not really use to work on interface.

 

 

USB to RS232 Adapter: VISA Serial Write Works but VISA Serial Read Gets Timeout Error

$
0
0

Hey Everyone,

 

I am fairly new to LabVIEW so bare please bare with me. I am trying to receive data from a C0-08TD1 PLC that is connected to my PC via USB to RS232 adapter. The Baud Rate = 38400, parity = Odd, stop bit = 1, and data length = 8-bits (given to me when I connect the PLC to the CLICK PLC programming software). I am able to perform VISA serial write, however with VISA serial read I receive the " VISA: (Hex 0xBFFF0015) Timeout expired before operation was completed " error message. I learned this occurs by single stepping through the entire program. This appears to be the ONLY thing going wrong within the vi. 

 

Here is an image of where the Serial Read give me an error (one of my sub vi)

Serial_Command_VI.png

 

I have attached the main vi I am using, as well as the two sub vi inside of the main. So my two questions are: 

1. Is it possible for me to receive information from my PLC this way?

2. If so, what could I be doing wrong?

 

I would like to note that a majority of the content in these vi were created by an old coworker. He had it all up and running previously on his PC, and now I am trying to get it to work on my PC.

 

Thank you to everyone who read this post.

GPIB-ENET binary data send

$
0
0

I tried to cheap out and bought a Prologix gpib to ethernet unit.  It has an issue where you have to escape out any carriage returns, line feeds, escapes or pluses out of the binary data before sending it to the unit.  I am trying to send an arb waveform to a Agilent 33220 waveform generator over the intranet.

 

My only question is if I buy the GPIB-ENET/1000 does it have the same issue or will it work more seamlessly?  Can you send binary data through the gpib-enet without modification?

Thanks.

NI USB-8452 to +5V I2C circuit

$
0
0

Hi All,

Does anyone know whether NI USB-8452 can interface to +5V I2C circuit without any changes?

Thanks,

Sam

Communication with HP4194A via GPIB

$
0
0

Hello everyone,
I believe that there are many capable engineers, and i will appreciated it very much if someone can help me solve the problems i encountered.
I'm using an old instrument called HP 4194A impedance/gain-phase analyzer.In the beginning, we operate it manually, however, my boss ask me to control this instrument by program now. I am a beginner, i don't konw how to solve these problems at all.
i used a Agilent 82357B GPIB/USB converter to connect HP 4194A and PC. When I plugged the GPIB interface into the instrument, Agilent Connection Expert automatically recognized the instrument and sent the command, but received the following error message: The instrument failed to return an IDN string. Does it mean failing to connect the instrument.
Is there anyone that encountered the same problem? can you tell me how to solve this problem? All help would be gratefully recived.
/Regards John 洪

Basic SCPI connection with BK Precision 880 only works Intermittently

$
0
0

General problem: I have a BK 880 LCR that I need to communicate with using LABVIEW. This is an SCPI-compatible device and I have written a very basic code using NI-VISA. Currently, I am just trying to query the instrument ID using the *IDN? command. However, this only works some times (1 out of 20) and the remainder of the time I get the error "VISA Read in Untitled " with the code "-1073807339".

 

Detailed background:

 

Here is the code,

Capture.PNG

Where COM4 is the LCR meter (BK Precision 880). Here is the error screen I get when I run this code

 

error.PNG

 

Here is my NI MAX screen showing my driver installs and the COM4 device. Maybe I don't have the right drivers?

MAX.PNG

 

Lastly, here is the *IDN? command in the BK 880 documentation. This complete documentation can be found here https://bkpmedia.s3.amazonaws.com/downloads/manuals/en-us/880_manual.pdf and the SCPI information starts on PDF page 48880.PNG

I tried a few things in the LabVIEW code, like setting some of the serial bit and rate commands but nothing helped and I believe the device parameters listed in the NI MAX screen are the standard parameter values.

 

The LCR beeps at me when I send

*RST
*IDN?

But does not beep at me when I send just one of them.

 

Any help would be appreciated. 

 

NIMAX/Labview IVI.NET Issue

$
0
0

I bought a rohde&schwarz NGE103B Power supply and want to control it via IVI/Labview. Rohde&Schwarz offers a IVI.NET driver (RsHmc804x-ivi.net-x64-1_5_1_0.msi). After installation MAX lists the instrument driver module (see MAX1).

 

In MAX I added a IVI Logical name and a driver session which points to the instrument driver module. In Labview the logical name doesn't appear in the control when the class is set to "IviDCPwr". When no ivi class is selected the logical name appears. The reason for this is that there are no entries in the MAX for Published APIs. When I add a API for "IviDCPwr" (Version 1.0, IVI.NET) the logical name in labview appears when the class ist set to "IviDCPwr".

 

But when I try to initialize the device (see Labview1) I get a labview error:

"Error -1074134949 occurred at IviDCPwr Initialize With Options.vi

Possible reason(s):

Primary Error: (Hex 0xBFFA005B) File not found."

 

I'm using Labview 2017 and IVI Compliance Package 17.0.

 

Does labview support the use of IVI.NET drivers? Did I miss something?

 


Correct VISA version for WindowsNT 4.0 and Visual Basic 6.0

$
0
0

We have a VB6 application written circa 2000 for Windows NT 4.0. We don't have the software drivers that correspond to it. The board we are using is labeled PCI-MXI-2 and has a copyright date of 2004. This board is probably a replacement board since the software was written before year 2000. I know from the documentation that the VISA32.dll library is required, but I don't know which version of the VISA runtime I should download to be compatible with Windows NT of that vintage. I also don't know if any other software downloads are required. Does anyone have experience in this area. The software and hardware were built by Symtx of Austin, TX which is no longer in business.

Need help setting up GPIB with Agilent 34970A

$
0
0

I have a windows 10 PC and two Agilent /Keysight 34970A's. I am trying to set up a VI to communicate with one of these over GPIB to USB. I was able to use the example for serial to USB just fine, but the GPIB is stumping me. I was using the Advanced Scan example for the serial communication case, but I cannot find one for GPIB to try.

 

Are there any tutorials for setting up communications between Labview and an Agilent DAQ over GPIB?

 

Also are there any good tutorials for learning GPIB communications with Labview? I need to learn to set communications with a few other machines with GPIB

Tektronix TDS2024C usb issue

$
0
0

Hi,

    I have a TDS2024C and connected to PC by usb.

    NI Max can detect the device, but when I tried to send command through VISA test panel,  it doesn't work.

    is there any suggestions?

 

Thanks!

 

Keysight DSO3034T Screen Shot

$
0
0

Hi,

 

I am having trouble with the get screen command for a Keysight Oscilloscope (DSO3034T). Basically, the user specifies the output type of the data (BMP, 24-BMP or PNG), and the command returns image data in a 1-D array of U8. I am pretty lost as how to display this data afterwards. I don't have any experience working with BMP files, and I haven't found any helpful references online. I want to be able to display the image in LabVIEW, and save the image to a file, either as a BMP or PNG. Could anyone give me a hand?

 

Thanks very much!

Unknown string error when using keithley 24xx using LabviewNXG

$
0
0

I am using a GPIB-USB-B cable to communicate with a Kiethley 2430. The Labview version I have is the NXG and I downloaded the relevant 24xx drivers from the ni website. The NI MAX is able to detect the instrument and read and write to/from it.

The problem happens when I run one of the vis (ReadMultiple for example). The vi initiates and turns the instrument on but gets stuck in the "Fetch (Measurements).gvi" and shows an execution error (attch image) with the following explanation: "LabVIEW: (Hex 0x68B) The input string contains one or more invalid UTF-8 string sequences".

Does anyone have any idea what might be going on? Could the error be because I am using the older version of the GPIB cable (GPIB-USB-B) versus the HS or HS+ versions? Has anyone else used the B cable with Keithley and run it successfully with Labview?

Viewing all 5661 articles
Browse latest View live


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