How do I query the GPIB-USB-HS Interface Adapter Controller and return back the Vendor, Model, Serial Number and Status? I am coding in C#.
I have an NI Controller and Keysight Controller and would like to be able to detect which one is hooked up.
How do I query the GPIB-USB-HS Interface Adapter Controller and return back the Vendor, Model, Serial Number and Status? I am coding in C#.
I have an NI Controller and Keysight Controller and would like to be able to detect which one is hooked up.
Hi,
I am using Tektronix Function Generator AFG3102C and controlling it using its instrument driver with the PC running LabVIEW 2017.It is working fine with USB interface but the same VI is not working with Ethernet interface connection.I am attaching the snapshot of the screen.Please suggest the solution for the problem.
Thanks
Rohit Mishra
HI every one,
I have a GPIB-USB-B adapter,after installing of the NI visa and NI 488.2 , in my system(win10),the windows device manager find a " Unknown device"
also in NI MAX :Measurement & Automation Explorer device and interface i don't find the gpib-usb.
Please tell me how should i do to solve this problem .
thanks
Hello,
I'm struggling to resolve the problem with error 1073807339 (0xbfff0015). I referred to various solutions for error 1073807339 (0xbfff0015), but I'm stuck with something different problem.
I downloaded an executable runtime LabVIEW file from the instrument manufacturer website. So what I have to do is just connecting RS232 to my instrument driver kit and using LabVIEW runtime engine to operate my instrument.
Here is the information about what I'm currently using to operate my instrument.
OS: Windows 10 home
Program: LabVIEW 2019 (64 bit), NI-VISA 2019, LabVIEW Runtime Engine 2011 (32 bit, this is for operating my instrument with LabVIEW GUI)
Connection type: USB to RS232 serial link
Executable LabVIEW Runtime Engine file: LUdriver_kit_example_V38 (I have attached zip file)
I have checked the serial connection (COM port) first through NI-MAX and here is the result (https://www.dropbox.com/s/gyr20c1l9sbnlc8/NI-MAX%20serial.JPG?dl=0).
I've done the loop-back test and there wasn't any problem as well.
I'm pretty sure that there is no problem with COM port recognition. And the port setting is consistent with the instrument manual (please refer to page 23, https://www.dropbox.com/s/hma0xxvegisa8cc/User_Manual_Lumics_Driver_Kit_LU_DR_KxxAxxV_2019_11_05.pdf?dl=0).
The problems are as follows:
1. I need to repeat running and off executable LabVIEW runtime GUI program which is designed by the manufacturer 3 or 4 times to connect the instrument with my PC successfully. My instrument can be fully controlled by LabVIEW when the connection is successful. When the connection is failed, LabVIEW shows 1073807339 (0xbfff0015) error.
Here are the results when the connection is successful and fails.
(https://www.dropbox.com/s/3po4qmfyk4phmok/connected.JPG?dl=0)
(https://www.dropbox.com/s/wxsr6vzbacj8bgr/failed.JPG?dl=0)
Even though the error has occurred, LabVIEW can recognize the COM port. (Please ignore the different COM port number, I took the picture of failed connection result when I tried with different PC)
2. When I do Basic I/O test with VISA Test Panel and run Query or Read, I always see the error 1073807339 (0xbfff0015). I used supported commands of instrument and commands like *IDN?\n.
(https://www.dropbox.com/s/7fhisesgr65z84c/MAX%20Luversi.JPG?dl=0)
I would like to ask if those phenomena could be occurred by the problem related to LabVIEW or software? I got all confused because the instrument can be connected with Labview sometimes and it is random.
Could you please give me any comments on those problems?
Hi all,
I'm very new to Labview and I'm working through various videos and training courses. I believe I have LabviewNXG and NIVISA 20 installed correctly but I have found that a bit confusing.
I have 4 instruments connected through USB to my Windows 10 Pro laptop. These appear as USBTMC devices. In NI Max (and SystemDesigner) I can see these 4 devices and I can use the VISA test panel to send SCPI commands to each of them successfully. The HMC4083 (PSU) does require a \n terminator on a command to work correctly, the other instruments do not.
In LabviewNXG I opened the VISA Simple Query.gvi example which can be used to send a SCPI command to a named test instrument. This works for 3 of my test instruments without a problem. The HMC8043 is sent a command (*IDN?\n) and I see a message pop up on the device's UI to tell me it has received it (the specific identification command.) The read always results in a timeout error.
I have tried amending the Instrument profile in the .gvi project to set "Termchar EN" to true and use the TermChar (I don't know what to hook that too but it defaults to \n.) I've pasted an image below. This doesn't impact the other 3 instruments but the HMC8043 still has a timeout error on the read.
There is a white paper provided by Rohde & Schwarz which has this to say:
*Note4 - Termination Character '\n'
'\n' is a Linefeed (LF) termination character, hexadecimally represented as 0x0A. It serves as message termination character.
In case of RawSocket and Serial connection, for VISA Write operations you always have to terminate strings with the LF character, because that is the only way to tell the instrument that message has ended. To recognise the end of the response in VISA Read operations, you need to set the VISA attributes VI_ATTR_TERMCHAR_EN to TRUE and VI_ATTR_TERMCHAR to 0x0A. Otherwise, although VISA Read receives correct response, it finishes with timeout error since it still expects more bytes to arrive.
Some instruments require the LF regardless of the connection type. In any case, sending the message with the LF at the end is the most universal and always works properly.
According the SCPI standard, instruments must terminate responses with LF. In our example above, notice the LF at the end of the identification string response in the NI Visa Test Panel. RsVisaTester does not display white characters, but you can see them in the RsVisaTraceTool log.
I don't know if NI Visa automatically handles the TermChar as it works with the HMC8043 irrespective of any IO settings. I've attached an image of the IO settings and the commands work irrespective of the Enable Termination Character setting.
Gut feel tells me it's a simple setting in my VI project but I've searched and tried various properties in the Instrument Node but to no avail, and now I'm lost for other things to try.
Thanks
Andrew
I'm currently communicating with several instruments through LabVIEW via PCI-GPIB using multiple 'stacked' GPIB connections at the PCI card. If I switched to a computer with no PCI card, would I be able to use the GPIB-USB-HS to connect to the instruments? Since I wouldn't be able to 'stack' the GPIB connections, would I need an individual GPIB-USB-HS per instrument I'm communicating with? Would there be any issues with addressing the instruments by switching the connections like this?
Hello,
I'm struggling to resolve the problem with RS-232 serial communication problem. I referred to various solutions, but I'm stuck with something different problem.
I downloaded an executable runtime LabVIEW file from the instrument manufacturer website. So what I have to do is just connecting RS232 to my instrument driver kit and using LabVIEW runtime engine to operate my instrument.
Here is the information about what I'm currently using to operate my instrument.
OS: Windows 10 home
Program: LabVIEW 2019 (64 bit), NI-VISA 2019, LabVIEW Runtime Engine 2011 (32 bit, this is for operating my instrument with LabVIEW GUI)
Connection type: USB to RS232 serial link
Executable LabVIEW Runtime Engine file: LUdriver_kit_example_V38 (I have attached zip file)
I have checked the serial connection (COM port) first through NI-MAX and here is the result (https://www.dropbox.com/s/gyr20c1l9sbnlc8/NI-MAX%20serial.JPG?dl=0).
I've done the loop-back test and there wasn't any problem as well.
I'm pretty sure that there is no problem with COM port recognition. And the port setting is consistent with the instrument manual (please refer to page 23, https://www.dropbox.com/s/hma0xxvegisa8cc/User_Manual_Lumics_Driver_Kit_LU_DR_KxxAxxV_2019_11_05.pdf...).
The problems are as follows:
1. I need to repeat running and off executable LabVIEW runtime GUI program which is designed by the manufacturer more than 3 or 4 times to connect the instrument with my PC successfully. My instrument can be fully controlled by LabVIEW when the connection is successful. When the connection is failed, LabVIEW shows 1073807339 (0xbfff0015) error.
Here are the results when the connection is successful and fails.
(https://www.dropbox.com/s/3po4qmfyk4phmok/connected.JPG?dl=0 )
(https://www.dropbox.com/s/wxsr6vzbacj8bgr/failed.JPG?dl=0 )
Even though the error has occurred, LabVIEW can recognize the COM port. (Please ignore the different COM port number, I took the picture of failed connection result when I tried with different PC)
2. When I do Basic I/O test with VISA Test Panel and run Query or Read, I always see the error 1073807339 (0xbfff0015). I used supported commands of instrument and commands like *IDN?\n.
(https://www.dropbox.com/s/7fhisesgr65z84c/MAX%20Luversi.JPG?dl=0)
The instrument sometimes can be connected with Labview and it is very random.
So my questions are,
Can these problems be caused by software-related problems?
or are they caused by hardware (my instrument)?
Please give me any comments.
I am trying to communicate via USB to a Keysight Technologies DAQ970a. Windows recognizes the device, and i can communicate with the device through Keysight's software (BenchVUE) just fine. The device refuses to show up in MAX.
I have already done the following:
everything listed here: USB Device Missing in NI MAX but is Present in Windows Device Manager
I have been on the phone with Keysight, and followed all their recommendations.
I'm trying to avoid completely uninstalling/reinstalling LabVIEW/MAX.
Any help is appreciated.
MAX看到的NI VISA SERVER版本号是18.5,下位机显示的运行的是17.5,从MAX打开485串口VISA测试面板出错。
I'm getting a Windows error on both of my GPIB-USB-HS adapters:
This device cannot start. (Code 10)
An error was detected between two drivers or within an I/O driver
Just reinstalled all NI software, the device shows up in MAX, but won't discover connected instruments, and the above error shows up for the adapter in the Windows device manager dialog.
I'm running Windows 10 Pro on a Lenovo ThinkPad X1 Carbon 5th, Windows is up to date, etc.
This adapter has been successfully used just recently on a Linux system.
Any ideas?
Hi everyone, I'm very new to NI/LabVIEW but I need to automate a Thorlabs spectrometer. The provided driver is only compatible with LabVIEW, but my company is interested in integrating LabVIEW NXG instead. Is it possible (and if so is it a good idea?) to modify the driver to be compatible with NXG? Thanks.
Hello Everyone,
I'm looking for inst. driver for HP 83711a. It's synthesized CW generator of HP (Agilent).
I find everywhere and couldn't find. I would appreciate it if anyone can assist with it.
Thanks in advance.
I'm new to using Visual Basic and I'm very confused about using the National Instruments NI4882 code - specifically which to use for my purpose and the proper syntax. I've found very few related examples and nothing clear to me.
The configuration I'm trying to work with is a computer using two GPIB boards (USB-GPIB). GPIB0 is the controller and GPIB1 is configured as an instrument. My interest is for GPIB0 to pass commands to GPIB1 and eventually for GPIB1 to respond with an error code.
I've been trying to use the NationalInstruments.NI4882.GpibStatusFlags to determine that GPIB1 is being addressed to listen, but frankly I have no clue as to the proper coding. Most of the available NI code seems to be from the controller in charge perspective.
I appreciate your suggestions.
Hi guys,
The 8451 card supports multi master communication, but I can't figure out how to implement SCL line listening so that the other master knows the line is free.
I found a thread on the internet where something similar was already being solved, and it was mentioned that it must be solved by a bit banging technique.
I want use 8451 card + MCU + sensor, 2 master and 1 slave.
I know how to implement multi-master on MCU but i dont know how in the implemet on 8451 card.
Hi,
I am student research assistant using an existing Labview driver for my HP 4396B analyzer. It is capability of performing a Sweep, capturing the data, then transferring it to a *.txt file. My next task is capturing a screen shot of the analyzer screen in TIFF format then transferring it to my PC. There is a iBASIC code given by the Agilent-HP Programming guide as shown in the attachment. My problem comes from using this code's logic and creating a labview application from it. Currently using a built in function command SAVDTIF 'C:\TEMP.TIF' to capture the screen image onto the analyzer. I have been unsuccessful in executing the correct order of steps to transfer the binary data from the analyzer file to a new file in labview.
If anyone could walk me through this and give me other resources to understand instrument programming, that'd be amazing.
Thank you!
Greetings,
I am trying to communicate with 7265 lockin amplifier from signal recovery via RS232 interface. Here are the main problems that I am facing.
1) I have set internal oscillator frequency to 1000Hz. However, when i try to read it using FRQ[.] command, the response is 10^6 Hz which is 1000 times larger than the set frequency. Also, the lockin loses connection while communicating with the computer as you can see in the attached file. I have tried changing the RS 232 cable as well but still it doesn't resolve the issue.
2) Even if I try a simple code such as ID, although the instrument responds with 7265, it still loses communication with the computer and intermittently return 0 as value. Please help regarding the same.
I am running LabVIEW using Catalina. I would like to use an Arduino. Unfortunately, the only version of Arduino software that I have found does not run on Catalina. I download the VI Package Manager from http://www.ni.com/gate/gb/GB_EVALTLKTLVARDIO/US
and find out that the software is 32 bits and will not run on my machine.
Does anyone know how to get the Arduino code for Catalina 64 bit?
I am installing NI-VISA on CentOS7
Download Linux Device Drivers: https://www.ni.com/en-us/support/downloads/drivers/download.ni-linux-device-drivers.html
Install in Terminal
unzip unzip NILinux2019DeviceDrivers.zip
sudo rpm -i ni-software-2019-19.2.0.49152-0+f0.el7.noarch.rpm
sudo yum list available | grep "ni-software" | grep "visa"
sudo yum -y install ni-visa
After installation, I try:
cd /usr/bin
Can't find library libniPythonInterface.so
Make sure this library is installed in your LD_LIBRARY_PATH
search path, or in /usr/lib64
libnipalu.so failed to initialize
Verify that nipalk.ko is built and loaded.
Please advise if there is anything else that I need to install.
Aborted (core dumped)
Good morning,
I need to communicate with a device through Modbus using a port on the cRIO NI 9871 module. I would like to use a Modbus I/O Server to simplify the programming. I'm currently trying to test communications but I'm having trouble with passing data from master-->slave or slave-->master. Here is a summary of the setup:
cRIO 9030 with NI 9871 in slot 4
cRIO 9035 with NI 9871 in slot 2
I can write data using VISA test panels in NI Max so I know the serial ports see each other.
I've created a Modbus I/O Server on each cRIO. cRIO 9030 is a slave server and cRIO 9035 is a master server. My test VIs are extremely simple, I just write to a coil on one server and read the same coil on the other, just to test if data is getting through. I can't get any communication. When I try to configure each I/O server for Modbus serial, it provides a serial port menu that lists COM1 through COM32. I don't know how to find what these COM ports map to. I think my problem may be related to which COM port is setup in the server settings.
I found the following article to create the server programmatically, but I can't find this option in my version of Labview (2015).
http://zone.ni.com/reference/en-XX/help/371618K-01/lvdsc/dsc_create_config_io_server/
Any ideas? Thanks
Hi guys
I want to use labview to connect Agilent PNA Network analyzer using GPIB cable.
Labview cannot found visa resource name of it, just shows like below. I tried ways of reinstalling NI 488.2 and restart the NI GPIB Hardware Enumeration service, but still not working.
Any thoughts?
Thanks