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

Any drivers for Tektronix DMM4050 communication via GPIB-USB-HS?


usb to serial communication problem

$
0
0

 

I have a program that is looking for an input from a Click PLC(which is basically being used as an I/O device).   the click plc is hooked up to the computer using a USB to rs-232 cable.  

 

the program will run fine for anywhere between 10 minutes and 2 hours before it appears to stop communicating with the PLC.  There is ultimately a timeout error, that is returned.  We have tried different PLC's and different computers with no luck. the only way to get it back up and running again is to restart the computer.  upon restart, the program will again run for a number of minutes.

 

within the labview program we initialize the communication using the VISA configure serial port VI at the beginning of the program.  we then go into the main program loop and call sub vi's(that use the MB serial master query.vi) to check the status of "coils"/or  bits on the PLC.  when one goes high, that kicks the program into sub loops.    

 

my question is, should we be opening or closing the serial communication port in each "main loop" or is it valid to configure the serial port once and leave it "open" indefinitely, or do we need to open/close the serial communication port each time through the high level loop?

 

I thought it might have something to do with overflowing a buffer, but in putting in a "VISA bytes at serial port" i get a 0 returned at the start of each main loop.  As a precaution, i also have put in a "VISA flush I/O buffer" at the beginning of the main program loop but it doesn't seem to change anything.   

 

thoughts?

HiSLIP communications problems

$
0
0

I have a computer-controlled instrument that NI-MAX doesn't recognize. I need to communicate with it over ethernet, so I decided to implement a HiSLIP server. I chose HiSLIP, since according to Wikipedia, is intended to replace VXI-11 (also, it looked a lot simpler to implement than VXI-11 did).

 

I was able to get a server to handle the synchronous and asynchronous channel setup for a single client (NI-MAX). I have the server running on a different computer, listening on port 4880 (the HiSLIP server port). I set up a manual VISA TCP/IP resource on the client machine: "TCPIP0::192.168.0.4::hislip0::INSTR" - I then tried to validate the instrument in NI-MAX. On the server, I reported all of the packets to debug the connection process:

<< synchronous session >>

NI-MAXSmiley FrustratedYN

ServerSmiley FrustratedYN-ACK

NI-MAX:ACK

NI-MAX: HiSLIP Initialize message. client protocol version: 0xffff, client vendor id: 0xfefe (NOTE: this appears to be an error in NI's client code: the protocol version should very likely be 1, the vendor id should be 0x4e49 - )

Server: HiSLIP InitializeResponse message. overlap mode: synchronous, protocol version: 1.0, session id: 1

 

<< asynchronous session >>

SYN, SYN-ACK, ACK

NI-MAX: HiSLIP AsyncInitialize, session id: 1 (which is what it should be)

Server: HiSLIP AsyncInitializeResponse. server vendor id: <I supplied a correct code, extracted from a Wireshark pcap file.>

NI-MAX: HiSLIP AsyncMaxMessageSize. (NOTE: there appears to be a malformed packet sent by NI. The standard specifies that there be an 8-byte size sent)

Server: HiSLIP AsyncMaxMessageSizeResponse max message size: 272 (which is 256 + 16).

... after this, everything becomes strange. NI-MAX reports that the "instrument" is successfully opened, but the icon still shows a red disconnected icon.

 

We have an instrument that has a HiSLIP interface, but right now I don't have access to it. Has anyone else had any experience with communication over HiSLIP with NI-VISA/NI-MAX? The NI end of the communication appears to be strange, and does not conform to standards?

http://ivifoundation.org/downloads/Class%20Specifications/IVI-6.1_HiSLIP-1.1-2011-02-24.pdf

 

 

 

Can´t see AD 7760 in MAX

$
0
0

Hi All,

I am trying to control AD7760 board along with EVAL-CED1Z. I installed appropriate drivers for it and after connecting to my PC through USB, I see device working correctly in device manager. Hovewer, NI MAX doesn´t detect it, nor can I see it in LabVIEW. Any suggestions on what might be wrong?

Using NI Zeroconf/mDNS for non-NI devices

$
0
0

I need to discover zeroconf devices on the network. I see that NI VISA uses some sort of mdns. Perhaps dns-sd. Is it possible to access this functionality within labview or CMD to list all devices? 

 

It would be nice because then I wouldn't need to install Bonjour or create my own application using ZeroConf C# library.

Control Power supply via GPIB-RS232 converter

$
0
0

Hello,

 

I had a general question on connecting a power supply to my computer. The DC Power Supply I currently have (Agilent 6675A) has a GPIB port and my computer has a USB port. So, any GPIB to USB converter would do to connect, correct? Or is it necessary I get a GPIB to USB converter from National Instruments specifically to be able to control the supply through LABVIEW?

 

Thanks

 

Agilent 33220A DC offset + OPAMP offset is not as it should be when i use labview

$
0
0

Hi there,
The output of Agilent 33220A can be maximum +5V. I need more than +5V, so i made a simple DC amlifier circuit connected to the 50ohms output of the instrument. (I need 2*Vin)

When i set manually the output of the intrument as "High Z" then all is fine.
Then amplification works as desired.: I tried 0...4V input->0...8V output.

 

Then I tried to set output in the Labview as follows:
Offset voltage = 1V.


DC amplifier board disconnected:
When I connect my voltmeter to the output of the function generator i measure the same as I configured in labview: 1V

DC amplifier board connected:
When I connect my amplifier circuit to the 50 ohms output of functioin generator,  then i get some strange amplification value. 2.59V
Measurement voltage should be 2V.

I tested amplifier circuit and it works fine without labview.
In short I can't get higher than 5V in the output of amplifier circuit no matter what i do in labview, but when i set things manually all is fine.

 

Have you got any ideas why this happens?
agilent.jpg

NI-VISA 18 Installation hangs on 0% in Windows 10 x64

$
0
0

nifreeze.pngStuck on 0%

Trying to install NI Visa 18 in Windows 10 64 bit but the installer gets stuck.

I tried to turn of the Windows Firewall, and run the installation program as an Administrator. Still, the installer gets stuck on 0%.

Trying  to cancel doesn't work either, I have to terminate the process.

 


GPIB not recognized in Win10

$
0
0

Dear all.

 

our software is not able to find the GPIB0. NIMax also doesn't show it. However, it appears as a USB device (see attached screenshot) and also seems to work properly according to the device manager.

 

We have reinstalled it without success.

 

Any ideas?

 

Driver version is NI4882_1850f1

Win 10 Enterprise 2016

 

Thank you,

Carolin

myRIO UART Arduino Due Issue

$
0
0

Hey Guys!

I'm using an Arduino Due to send measurement data to my myRIO1900 via the UART Port. The setup worked when I had the Arduino connected to my PC via USB cable and my LabVIEW code run on my PC as well. I then transferred the LabVIEW VI to the myRIO and changed the Serial port. I connected the Arduino Due with the RX/TX Pins and unplugged the USB cable. The Arduino shows at first the expected behaviour and displays my measurement data. After a while (10s) it seems like the RX Port of the myRIO stops reading new data (its Buffer is not full - I check that with the "bytes at Port" Node). When I restart the VI it does exactly the same and stops in lack of data after approx. 10s again.

 

Does anyone have an idea what is the reason for my data stopping after that short period?

Thanks for your help!

Tobi

SOS - Cannot detect hardware in NI MAX

$
0
0

Hi all,

This is the first time I am writing a NI forum post and I have been developing on LabVIEW for <6 months so please be patient. The situation is the following: we have an old testing platform that uses a NI CAN and ULx and currently works just fine on the old PC. However, our IT wants to replace the PC as it is considered legacy and it cannot be kept. Therefore I installed the Runtime engine and all the latest required drivers on the new PC but the hardware is not being detected. After many hours of uninstalling and re-installing I have given up and brought the PC which I use to develop LabVIEW code and connected it to the hardware as I thought that this should have everything sorted on it and that maybe I am missing something. I am still not able to detect the hardware and moreover when running the LabVIEW program and not the build I get the error: 10001 from the ULx VIs  I have checked in NI MAX under software and I have everything on my development PC that the original PC has (just newer versions). I have also looked for NI configuration files that the last developer might have left behind but I cannot find anything. I really have no idea what the issue might be specially as I use NI CAN on my development PC on a daily basis but when I connect it to the test rig CAN there is no CAN data coming in.

I have also followed all the steps in:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7OaSAK

I have also attached some images with what NI MAX detects ( sorry for the phone picture on the old PC but due to security reasons, the PC is not connected to any networks).

If anyone could help me out it would be greatly appreciated - I shall spam you with Kudos.

Thank you.

 

Missing "NI Veristand" folder in vi.lib (C:\Program Files\National Instruments\LabVIEW 2018\vi.lib)

$
0
0

I am trying to use custom device from github for serial communication task with PXIe 8135RT controller RS232 comm port.

I downloaded the package from below link:

https://github.com/NIVeriStandAdd-Ons/Instrument-Custom-Device

Now when I try to open the project (Instrument Addon labview project) from above package, it searches for Custom Device API.lvlib but not able to locate it, so I cannot open and mass compile the project. What is the issue? Why is it not able to locate Custom Device API.lvlib and why is it that I can not see NI Veristand folder in vi.lib folder (C:\Program Files\National Instruments\LabVIEW 2018\vi.lib)

Missing Custom Device API.lvlib: Using Serial Port of PXIe Controller in NI Veristand to connect Plant Model variables to send and receive serial commands using Custom Device Approach

$
0
0

I have PXIe 1085 chassis and PXIe 8135 RT controller in my HIL setup. My plant model contains plant for GPS which communicates with ECU Under Test over Serial Communication. I don't have serial IO card on chassis. I understand that Serial Comm Port on RT Controller can be used for this purpose. How should I get this working? One of the ways that I got to know was custom device. From GitHub I downloaded "Instrument Addon" package and I understand I can control serial port of RT Controller using this. I would need to add this in Veristand as a custom device. Now question that I have is that when I open this project(Instrument Addon labview project) for compiling, it doesn't open as it tries to search "Custom Device API.lvlib" but it doesn't find the same. Whats the issue? Also I am not able to "NI Veristand" folder in "vi.lib" folder (C:\Program Files\National Instruments\LabVIEW 2018\vi.lib). Is it because of order of installation of softwares? I installed Veristand first and then Labview. Please suggest solution.

I installed below libraries as well:

https://forums.ni.com/t5/NI-VeriStand-Add-Ons-Documents/VeriStand-Development-Tools-VIPC/ta-p/3632685 : VeriStand Development Tools.vipc ‏7321 KB

and

https://forums.ni.com/t5/NI-Labs-Toolkits/NI-VeriStand-Custom-Device-Project-Wizard/ta-p/3538685 :  "ni_tmpl_veristand_custom_device-1.0.0.20.vip "

 

 

How to use Instrument Addon (github) library for creating custom device to use serial port of PXIe8135 in Veristand?

$
0
0

I have to use serial port of PXIe 8135 RT Controller for simulating GPS plant signals for one of the HIL applications. I am trying to use "Instrument Custom Device" downloaded from below

https://github.com/NIVeriStandAdd-Ons/Instrument-Custom-Device

I installed all related packages like Instrument-Custom-Device-Classes-master, VeriStand-Addon-Inline-Async-API-master etc. The LabVIEW version I have is 2018 32 bit. I have LabVIEW RT installed along with application builder.

I am not able to use this package, whenever I am opening the Labview project file (Instrument Addon.lvproj) I can see many items missing.

Can anybody help me understand what is that wrong I am doing? Snapshot of the project view is attached.

 

IVI driver correctly installed doesn't appear in driver sessions NIMAX

$
0
0

Hi,

I work with LabView 2018, Ni Max 18.0. I have installed an IVI driver for a power supply. The installation was succesfull, it can be found in file IVI Foundation\IVI\ and in IVI Foundation\VISA as the other drivers as niScope, niDCPower,an so on. But when I run Ni Nax, it doesn't appear in the Driver Sessions list ??? I have deinstalled and reinstalled several times, nothing. I work under windows 10. It works under windows 7, I can see the driver in Driver Sessions. Is it possible that it comes from Windows 10?

 

Regards

 

 

 


MultiPort USB Hub and identical HID devices (pid vid)

$
0
0


Where several HID rfid reader devices are used and they are all identical vid pid and no serial #, using VISA how do I prefix the port # to the rfid tag read before being passed to Excel ?  That is Excel will be able to differentiate between ports and list tags by ports.

 

The prefix, and how to, is the problem.

 

Thanks

Charles

Tektronix TBS 2014B Waveform/Y-Value Decimal Precision Problem

$
0
0

Hello everyone,

I am currently working on a LabVIEW project (LV 2013) where I need to collect a data point from a Tektronix oscilloscope every 5.04 seconds and display it in real time over a period of 4.5 hours. At the end of that period I save the data to .csv file. The problem I am having is the data points have very low decimal resolution and seem to cut-off at 2 decimal places. This creates an issue when the data is processed as I need as great a decimal precision as possible. When I compare this method of data acquisition to the TEKXL Excel Add-in (Currently being used), I see the data precision can be much higher (EX: TEKXL Data point: 0.3395438194; LabVIEW Data point: 0.34). I am using the driver and VIs that come with them to acquire the waveform. The oscilloscope is communicating via USB. I have attached my stability test VI and the "Fetch Waveform.VI" that I am using to acquire the waveforms and data points, and a pdf to view. I was hoping to please get some insight on this issue. Thank you.

 

NOTE: After troubleshooting I have found that the "Fetch Waveform.VI" constructs a waveform with Y-Values already in that low precision, however I do not fully understand that VI. I suspect I would need to do some alterations in that VI. Also, I am a novice LabVIEW user and I know my VI has rookie mistakes and is not as clean as it could be but these are issues that I can fix and this decimal precision issue is the crutch of the entire purpose of this VI.

 

Connecting Oscilloscope

$
0
0

hi i want connect the real oscilloscope to labview.can you help me?

NI PCI-1426 Library and Drivers

$
0
0

Sorry in advance if this is not the correct location to post this in.

I'm trying to install an NI PCI-1426 frame grabber and I'm getting a complaint from my app that the SDK and library aren't installed.

 

I've tried installing the NI-IMAQ package, which the documentation for the 1426 calls for, and the device was able to properly install the drivers, but I'm failing to find the library and SDK for this device. Are these still available anywhere?

 

Thank you!

issue with CHROMA 69200-1 connected over Ethernet and IVI Driver

$
0
0

Trying To connect CHROMA ATE 69200-1 with Labview using IVI drivers provided by NI.

Did all the configuration in MAX and successfully got reply for identification query from system.It means System is connected properly over ethernet.

 

Now i tried to do the same thing from Labview...the identification query worked if i send it through NI VISA....but if i want to use driver files provided for IVI... then i am always getting 

"CHR69200 Initialize With Options.vi<ERR>Primary Error: (Hex 0xBFFC0011) Identification query failed."

 

Attaching Images for MAX config and VI.

 

 

Viewing all 5674 articles
Browse latest View live


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