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

Does NI VISA 15.0 supporting .Net 3.5 version

$
0
0

Hi.

 

We are trying to use NI VISA version 15.0 for communication with a network emulator. The version's readme says it supports .Net 3.5. However, we were unable to use the NI VISA library in a C# project with .Net 3.5 version. The build error says the DLL needs .Net 4 version. The project builds if .Net 4 version is used.

 

Can anyone help us in knowing whether NI VISA 15.0 supports .Net 3.5v as mentioned in the readme or am I missing something.

 

Thanking you for your time.

 

 


Connect SRS SR830 DSP to LabVIEW via GPIB USB HS

$
0
0

I have a lock-in amplifier that i want to connect to labview, it connects to the PC via GPIB USB HS. I believe neither the GPIB nor the SR830 are DAQ compatible devices. I have read NI's "Connecting Instruments via GPIB" page but when I get to searching for an instrument connected to the GPIB, my GPIB entry on the right has no drop down options.

NIMx capture.PNG

TLDR, what is the easiest way to hook up a GPIB USB HS deivce to Labview, I am not very tech savvy but I understand the basics of labview.

NationalInstruments.NI4882 used in a UWP c# program crashes at runtime because NationalInstruments.common dll is not found

$
0
0

I am successfully controlling an antenna measurement controller via a National Instruments GBIB-USB-HS through a visual studio 2013 example project provided by National Instruments. I am trying to convert the example project to a custom library to be called from a UWP program. When calling a function from this library the NationalInstruments.common dll cannot be found. 

 

Please view a more detailed explanation of this problem at the Stack Overflow link below:

https://stackoverflow.com/questions/63196775/i-am-able-to-call-functions-from-a-class-library-net-st...

 

How to control AC Source GW APS7100 using GPIB

$
0
0

Hi there,

 

i want to control APS71000 using GPIB but there is no labview example provided, can anyone help me on this problem. I want to set an output voltage, measure power and measure current.

NI myRIO-1900 drivers for windows 10 to use with Labview 2020 community edition

$
0
0

I have a myRIO-1900 and recently downloaded LabView 2020 Community Edition on my Windows 10 laptop.  How do I make the two work.  I cannot find the right drivers for this device.  Any help is appreciated.

Haroon

COM PORT is NOT PRESENT in NI MAX

$
0
0

Hi everyone, i need help. The com port shows in device manager and in NI MAX, but my problem is the status in NI MAX states NOT PRESENT. But when i re-plug or reconnect the USB cable, it states PRESENT. My issue is it happens every time I shutdown or restart the PC. 

 

note:

what i'm doing is, i'm trying to print in labview using GK888t zebra printer.

Unable to add USRP 2954 (hardware) in NI Labview NXG 5.0

$
0
0
Hi, I am unable to detect USRP 2954 in the NI Labview NXG 5.0. But I can ping USRP 2954 from my laptop command widnow. Please let me know what can I do to detect the USRP 2954 in NI Labview NXG 5.0. Thank you Shravan

VISA Continuous Measurement Program - Basics

$
0
0

Hello all,

 

I have a vague understanding of the DAQ interface and VISA API. I have some standard HP34401s and other instruments connected through GPIB (but using VISA). Without having to buy a new piece of hardware for data logging, I'd like to achieve the following in real time:

 

  • Output data from all DMMs to a table or array nicely, with a time index (relative seconds; absolute time and date is overkill)
  • Plot real-time data from all sources separately (scaled appropriately with math modules and automatically re-scaling plot size)
  • Be able to output data from the plots into neatly formatted CSV files at the user's command, at the end of the session
  • Display the screen of an infrared camera software on the same LabVIEW front panel as the plots (IMAQ driver?)

Details: 

 

Based on user input on experiment duration, gather data from three different DMMs (and other instruments, later on) per second but display them simultaneously as well as plot in real time. The image below shows a simple prototype of what I'd like to achieve. Currently I'm able to view all measurement values, but only after the loop is terminated (as expected).

 

I've also tried putting the indicator array inside the loop to view data in real-time, but of course it does not retain the value per each index; it only increments to the next row and deletes the previous cells per each iteration. Given this background, I'd like to:

 

Any guidance on these will significantly reduce my project time. Thank you all in advance. 

 

DMM_LoopQuestion.PNG

 

 

 


Setting up Newport 1830-C with GPIB

$
0
0

Hi, I'm trying to connect the Newport 1830-C optical power meter up with Labview via a GPIB controller. I can successfully use the GPIB controller and cable with a different power meter but when I try to use it with the Newport I get an error. I've tried using NI-MAX and the device is there. If I go to the device and click "Open visa test panel" I often get the error:

Error opening resource:
ASRL3::INSTR

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it. Sometimes I can get onto the visa test panel - then if I go to input/output and click write, there is no error, but as soon as I click any of the options that require a response I get a timeout error. What could be the problem with this?

Using NI devices in Ubuntu 18.04 from code

$
0
0

Hello,

 

I want to use NI devices in Ubuntu 18.04 from my code (C, C++ and/or C# with Mono)

I installed the NI device drivers.

What are my next steps?

 

Best regards,

Michael

Read binary data with VBA

$
0
0

I trying to receive binary data from an instrument using Excel VBA but can’t figure out how to do this.

I’m using the VISA COM library and the instrument is communicating trough Ethernet defined as a socket. I have no trouble sending and receiving ASCCI data when the data is terminated with a defined termination character.

 

However, I’m also need to be able to read binary data. The data does not contain any header or termination character. The only thing I know is how many bytes that will be sent.

I cant find any function in VISA COM where I can define the a number of bytes to receive.

Is this even possible with VBA?

Licensing lacking

$
0
0

This is regarding SignalExpress not launching because of licensing issues. I get the message that my project (which used to launch without issue) contains elements that require licensing. How can I tell which license is lacking? The only issue is that this software hasn't been used for about two years.  Other than that, absolutely everything is just as it was when the program worked properly.

GPIB timeout ignored when ENET network drops

$
0
0

We have a LabVIEW application that uses GPIB write and GPIB read to communicate with a meter using an NI ENET.  This has worked for many years.  Recently, we discovered when the network connection to the ENET is disconnected, the GPIB write and GPIB read will hang and never timeout, no matter what value is wired the GPIB write or GPIB read timeout input.  This requires using Task Manger to stop and exit the LabVIEW application before the program can continue.

 

Is there any way to detect the ENET is no longer connected and if so to then force the GPIB write or read to abort so the program can continue without having to use the Task Manager to abort the program?

 

This is an issue with both ENET/100 and ENET/1000.

About the crash of the Agilent 33512B signal generator instrument control demo

$
0
0

I am performing instrument control on the Agilent 33512B signal generator.I encountered the following problems:
When I use the instrument driver demo provided by NI, it is possible to use the demo for the first time after the instrument is turned on.When the demo program ends, and then run again, the demo will crash.I have to turn off the power of the 33512B signal generator before the demo will stop.Is this what is the reason? thank you!
See the attachment for the demo I used.

 

----------- 使用的硬件和软件版本---------------

PC : Windows 10 / 64-bit / all NI files are saved in D

drive Labview : 2017/2020 trial / NI max

Function generator : 33512B, connected by USB cable

Drivers : DAQmx / NI VISA17.0 / Agilent 3352X Series

-------------------------------------------

关于安捷伦33512B信号发生器仪器控制demo崩溃的问题

$
0
0

我正在对安捷伦33512B信号发生器进行仪器控制。我遇到如下问题:
当我使用NI提供的仪器驱动demo时,仪器开机后第一次使用demo时是没有问题的。当demo程序运行完成结束后,再重新运行该demo,该demo会崩溃,点击结束运行,电脑无反应。我必须关掉33512B信号发生器的电源,demo才会停止。这就造成我每次仪器开机,demo只能运行一遍,然后想运行第二次,必须重启33512B的电源,请知道的大能指导,万分感谢!
我用的demo见附件。

----------- 使用的硬件和软件版本---------------

PC : Windows 10 / 64-bit / all NI files are saved in D

drive Labview : 2017/2020 trial / NI max

Function generator : 33512B, connected by USB cable

Drivers : DAQmx / NI VISA17.0 / Agilent 3352X Series

-------------------------------------------


845x randomly returns error in the middle of the test

$
0
0

I am using NI845x USB to I2C/SPI module. It works fine mostly but I get the error -301742 during the middle of the test while communicating over I2C and no way to recover that. If I start my application again I get the same error over and over. But strangely, if I wait 5 min or so and then try again, it works fine for another 30 min to 1 hour.

I did use this function to increase the timeout after reading the error.

 

ni845xI2cConfigurationSetAckPollTimeout(i2cHandle, 1000)

 

What am I missing?

Any help is appreciated.

Labview 7.0 file not found in my original disk

$
0
0

I have changed the mother board of my original computer as my original mother board was faulty and NOT repairable. I want to run the same original hard disk of mycomputer on new  mother board. Windows 2000 and Labview 7.0 are installed on my original hard disk and they were running perfectly fine on my original computer. My small control panel SCADA was running on my original computer and hard disk. On new mother board when I start my SCADA application it is asking NI disk and it is asking tnidaq.msi file. I do not have this file in any of my LABVIEW installation CD. Please help me how to solve this problem. I am not able to install new version as this is 15year old SCADA and do not want to change anything except mother board. Please help me..

GSP930 -Spectrum Analyzer trying to connect with Labview

$
0
0

Can anyone suggest me that how to interface the SA via Labview using the Drivers . 

 

Also can anyone help me in getting the instr.lib and user.lib from the files . 

I am not getting the driver details in the Functions Palatte-> Instrument IO for my GSP930

Communication issue between NI Max and NI UMI-7764

$
0
0

Hi, 

 

I am currently trying to control an XY rig using UMI-7764 and board PCI-7730. The issue is that when I send a signal from NI Max it suggests that motion execution was successful, however, the hardware does not move (the xy rig does not respond). I have done some measurements on the ports of the UMI-7764 and there seems to be power going in to the device. The XY rig used to be connected to a Windows 7 computer, but has been moved to a Windows 10 computer as it was not possible to conduct the necessary firmware updates on the Windows 7. Any thoughts or assistance would be appreciated. Thank you!

 

Emma

Best practice to connect with multiple serial devices

$
0
0

Hello Everyone

 

I want to establish communication with 16 serial (COM) devices at the same time and I need to know the best way to make this possible and efficient these are my ideas:

 

-Make a for loop in the VISA serial port configuration and read the buffer data in an array

-Make 16 parallel while loops and obtain the individual data of each instrument

 

Attach code example with 4 serial (COM) instruments

 

If you have any information of the best way to make thie please let me know

 

Kind regards

Viewing all 5661 articles
Browse latest View live


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