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

NI4882.Board() exception

$
0
0

When using NI4882.Board (0) function, exception errors may occur depending on the combination.

Primary address is 0.

There are two exception

 

Error 1:
Even the combination that had no problem in the past (PCI-GPIB and NI Max ver. 17.0) became an exception and could not proceed.
After I updated driver, Board(0) became exception.

PC is windows7(64bit).

 

I changed the driver (14.0 / 17.0 / 20.0) and device (PCIe-GPIB) and tried it.

However, it could not be repaired.

PCI-GPIB and PCIe-GPIB can use on other PC(win7).
It seems driver is strange. but, I already wrote, uninstall->re-install did not solve this issue.

 

Error 2:
With GPIB-USB-HS +, an error always occurs on Board (0).
I can not use as controller (But, I could use as GPIB analyzer. So, I think Hardware is normal).

 

Both detail exception is below(Sorry, OS is Japanese)
System.TypeInitializationException
HResult=0x80131534
Message='NationalInstruments.NI4882.Internal.GpibDll' のタイプ初期化子が例外をスローしました。
Source=<例外のソースを評価できません>
スタック トレース:
<例外のスタック トレースを評価できません>

内部例外 1:
OverflowException: 算術演算の結果オーバーフローが発生しました。

 

Am I missing something setting?
Why OverFlow exception is happened?
What could be the cause and how to fix it?

 

Thanks!


About Instrument VI

$
0
0

Hello,

I am using RMX 4005 to measure the fuel cell voltage and current. I am using one of the example VI from the library. I am trying to use this example VI in different VI where I have USB DAQ 6001 connected with pressure and flow sensors but I am getting errors. could you please help me how can I modify this example VI and get all readings from USB DAQ and RMX 4005 in single VI.

Thank you

interfacing HM 7044

$
0
0

I have a hameg HM 7044 power supply and am trying to establish a communication between this programmable power supply and the pc using a RS232 connection and the overall control through a labview VI. I am unable to find the drivers for this HM7044 from the Labview website for downloading the drivers, or through the manufacturer's website.

 

I'd be really grateful if someone help me in this regard?

 

thanks in advance

Unable to connect to Agilent MSO7054B

$
0
0

Hi,

 

So I'm able to connect to a MSO-X4154 using ethernet, MAC laptop with NI-VISA, NI-488.2 drivers. This is a much newer scope model than the one I'm having issues with (MSO7054B).

I upgraded the MSO7054B firmware to latest. One difference I see is that the VISA string for working scope is TCIP0::INSTR whereas the string for the 7054 is TCPIP0::a-m7054b-340453::INSTR.

I can see the scope web page on the laptop.

 

Here is the error message:

 

INFO:scope_automation_logger:[Keysight4000XScope::connect]: TCPIP0::169.254.254.254::5025::SOCKET

CRITICAL:scope_automation_logger:Keysight4000XScope::connect]: An ERROR occurred: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.

INFO:scope_automation_logger:[Keysight4000XScope::teardown]: Program ended.

CRITICAL:scope_automation_logger:CRITICAL ERROR with trigger 4_negative: 

[Main::dispatch]: Scope connection error. Check scope is connected and IP address is correct in station config.

 

And here is the code we use to set scope params. We did not change anything for the different scope. Again this works with the newer scope model. 

 

{
"equipment" : {
"Keysight4000XScope": {
"scope_ip_addr" : "169.254.254.254"
}
},

 

It would be nice to be able to use this older model as we have many of these on hand.

 

Thanks

niVVGLui.mxx error when running resman

$
0
0

When I run resman on my system I get the message "The niVVGLui.mxx plug-in caused an exception in the CmxAggregateItemUI::GetIcon function in the MAX process." All of my hardware is recognized though and I can continue after I close out this message. I have searched the NI sight and I can't even find niVVGLui.mxx when I do a search. Anyone have any idea what might be causing this?

GPIB-USB_HS+ driver

$
0
0

I have a GPIB to USB adapter and need an older version of the driver  (McPherson Equipment says version 14)  I cannot operate a McPherson equipment with out it and it must be version 14.   I have tryed to find this driver b ut I can only go back to version 17

 

I just need the driver

 

thanks

 

Don Fronek

VISA ERROR 0xBFFF0030 (-1073807312)

$
0
0

Hi, I am stucked with a problem with communication between Labview and Keysight U2542A. I need to do single-shot measurements, but after a few measurements the hole thing drops down. After that I have to restart the program and the device too. 

Here is the error messege: 

 

! VI_ERROR_ABORT: Operation was aborted
Visa ErrorCode: 0xBFFF0030 (-1073807312)
! Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

 

I am desperated cause I do not know how to fix it. 

Thank you for any help.

Instrument I/O assistant problem

$
0
0

I am trying to interphase Hameg HM7044 programmable power supply with the pc, I am able to communicate with the instrument after i installed the drivers, but unfortunately the Instrument I/O assistant gives me an error each time saying that it was not installed correctly. I am using labview 2016, and i tried to uninstall and reinstall the instrument assistant but it still shows the same dialogue box or error. 

 

Also, i see only an instrument I/O assistant version 20.0 online, i guess this isn't compatible with the labview 2016 version, is there a instrument assistant for the 2016 version that i can download from somewhere? or if i could solve this problem in someother way?

 

thanks in advance


Replacement of N9030B with E4440A

$
0
0

Hi, I am new and have task to replace E4440a spectrum Analyzer with N9030 Signal Analyzer. What sequence or steps do I need to take. E4440a is installed and programmed in an ATE. Do I need to rewrite all VIs? 

Serial data from Matlab

$
0
0

Hi,

 

I want to send serial data from Matlab to NI 9870 and then read and save it as a text file from Labview.

So, I sent serial data to NI 9870 but I cannot receive it from labview now. There was an error when I run this code.

I attached Labview and Matlab codes.

 

NI 9870 and PC were connected using RS232-usb 

(NI cRIO-9022 what I have) 

 

Thank you!

Cannot find scanner LEAF35/45 in GPIB.INI file

$
0
0

Trying to get an old film scanner running that use gpib. Max recognizes that a device is there but when I try to run the software it gives me the error above.

 

When trying to communicate with the device using MAX the inquiry times out.

PCI 7344 card

$
0
0

We are looking for an old PCI 7344 card (4 axis card driving motors) over 15 years old (copyright 2001). Indeed, when we use a newer PCI7344 card, we have driver / firmware compatibility issues. The program for our instrument is written with Labview 6 and we cannot afford to rewrite it. If someone has a solution for us or an old card that is no longer in use but still works, we are takers.

Continuous sampling rate lower than 76Hz not possible with NI 9775?

$
0
0

Hi,

 

I am working with a cDAQ 9171 chassis and a NI 9775 DAQ.

 

I want to perform continuous data acquisition with a sampling rate of 25Hz. However, I get an error message displaying that the minimum sample clock rate is 76.2939 Hz. 

 

Is it not possible to sample continuously below this rate? 

 

Here is the error message:

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

Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.

Property: NationalInstruments.DAQmx.Timing.SampleClockRate

Requested Value: 25.0

Maximum Value: 20.0e6

Minimum Value: 76.2939

 

Task name: _unnamedTask<1>

 

Status code: -200077

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

 

Thanks in advance for your help!

Installed IVI Driver for Rigol DSA1030 RFSA, Still Not Working

$
0
0

So I followed many links in the forums and have gotten this far but now I'm stuck.  I have an Rigol DSA1030 Spec An and I need to be able to Connect to it with LabVIEW so I can automate an RF Calibration Routine.  The problem is when I run any of the VI's I keep getting the ERROR

IviSpecAn Initialize With Options.vi<ERR>
Primary Error: (Hex 0xBFFA0011) Function or method not supported.

 

So let me start off by saying I followed the directions at:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2fECAQ&l=en-US

 

I think I have the driver installed correctly, just today the Logical Name I gave to the IVI Driver appeared in the IVI Input allowing my VI's to even run. I can also say that in NiMAX the DSA1030 Appears under Devices and Interfaces and when I open a Test Panel NiMAX appears to be able to get basic info about the DSA1030 to display.

 

I guess the first question I have is can I use the VI's located in Instrument IO >> IVI Class Drivers >> Spec An to communicate with the DSA1030?  If so when I try to run IviSpecAn Initialize.vi (or any of the VI's in the window) I get the above mentioned ERROR message.  If not then what VI's can I use to communicate with the DSA1030?  I found an article on Rigol website that said another sub-menu should appear called rgdsa1k in the Instrument IO >> Instr Drivers but that hasn't happened yet either.
https://rigol.force.com/support/s/article/my-instrument-ivi-driver-does-not-appear-in-the-labview-tools-palette1

Any help or experience anyone can provide who has gotten LabVIEW to communicate with their Rigol DSA1030 RFSA would be appreciated.

VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.

$
0
0

hi,

I'm trying to program two separate instruments that are connected by GPIB cable using GPIB prologix. When I try to control each instrument separately, the code run separately but when I the full code, I got the following error:

VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.

 

I tried to increase time.sleep but it doesn't help. Any advice would be appreciated!


import pyvisa as visa
import time
import datetime

#setting up the power meter Newport 1830C
rm = visa.ResourceManager()
# print(rm.list_resources())
pwm = rm.open_resource('ASRL3::INSTR')
pwm.write("++mode 1\n")
pwm.write("++addr 4\n") #GPIB address
pwm.write("++auto 1\n")
# print("connected to: "+pwm.query("*IDN?\n"))
# pwm.baud_rate = 9600
pwm.write("C") #Clear Status Byte Register
pwm.write("O") #Auto-Calibration
pwm.write('F2') 


#setting up the laser Agilent 8163A with tunable laser HP 81689A in slot 1
lsr = rm.open_resource('ASRL3::INSTR')
lsr.write("++mode 1\n")
lsr.write("++addr 20\n")
lsr.write("++auto 1\n")
lsr.write("*RST")
time.sleep(20)
# print("connected to: "+lsr.query("*IDN?\n"))
lsr.write("sour2:pow:stat 1") #turns laser on
lsr.write("sour2:pow 100uW") # sets laser power
time.sleep(20)
# lsr.baud_rate = 38400

file_path = "...."
data= open(file_path+"/"+"power_data_"+datetime.datetime.fromtimestamp(
time.time()).strftime('%Y-%m-%d %H_%M_%S')+".txt", 'w',buffering=1)
data.write('wavelength [nm], power [W]\n')


wavelen_1 = 1530
wavelen_2 = 1576
for i in range(wavelen_1, wavelen_2):
wavelength = i
lsr.write('sour2:wav %s' %str(i*1e-9)) #sets laser wavelength in nm
time.sleep(5)
pwm.write("W"+str(i))
data.write(str(wavelength) +', ')
time.sleep(5)
power = pwm.query('D?\n')
pwm.timeout(5000)
data.write(power)
lsr.write("sour2:pow:stat 0") #turns laser off
data.close


Communication issues

$
0
0

Hi,

After a windows reinstallation in my desktop, I have installed labview, Ni 488.2 and other drivers via Ni package manger. However, My GPIB connected device (a SRS 830 lock in amplifier) is not at all detected in "Device manager". Reinstalling Ni 488.2 driver and a rebooting could not solve the problem. 

Also, I am not being able to see the option "Scan for instruments" in the NI MAX.

Your help is highly solicited. 

Thanks!

Ex Trig VI for Keithley 2182A

$
0
0

Hi, 

 

I am using Keithley 2182A, nanovoltmeter. 

 

To use the instrument in Delta mode measurement, the instrument needs to receive a trigger externally via another Keithley instrument (a current source). The 2182A is connected to the other current source via RS232 and TSP link. 

 

When I am doing a Delta measurement, I press "ex trig" on the front panel of the 2182A voltmeter as the last step to make the instrument wait for the trigger that I will press manually on the current source.

 

However, I do not find/see any VI for the Keithley 2182A that is equivalent to the EX TRIG button. There is no VI that can put the 2182 in a "wait for external trigger" mode. I have checked the VI family. 

 

Would anyone know of a VI that will put the instrument in ex trigger mode? Or would you know what I should do if I do not find the VI of a function that I want to perform? 

 

2182A labview VI family tree.PNG

 

Thanks a lot! 

Marconi 2031 signal generator with GPIB (Agilent 82375B)

$
0
0

Hello there!

I have a Marconi (Aeroflex) 2031 that I want to send commands to from my computer using C#. I am trying to do this with a GPIB device named "82375B" from Agilent.

Does anyone mind sending me a small code that just reads all available devices or just manually have to enter it and then maybe do the reset command.

If I got the basic things I can do the rest myself. Thanks in advance, been struggeling with this for a week!

PCI-GPIB 188513E-01 and Windows 10 and PCIe

$
0
0

Hi,

 

We are using a computer (OS Windows XP) connected via a PCI (PCI-GPIB/TNT5004 188513E-01) to an Agilent DMM. The current drivers are NI-VISA version 4.3 and NI-488.2 version 2.52.

 

We want to replace this computer with a new one and OS Windows 10. Presumably the new computer only has PCI Express slots. We assume it is necessary to replace the PCI-GPIB 188513E-01 board with a one suitable for PCI Express. What would that board's name be? Or is there another option?

 

Best regards,

Andreas.

Data acquisition rate differs from sampling rate?

$
0
0

Hi everyone,

 

I am working with a cDAQ 9171 chassis and a NI 9775 DAQ card.

 

I am performing a continuous data acquisition measurement with a sampling rate of 100Hz and a sampling size of 100 samples/channel. My understanding has been that this would yield 100 data points every second. However, I receive 100 data points around every ~0.3s. 

 

Am I missing anything here?

 

Best and thank you in advance

Viewing all 5663 articles
Browse latest View live


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