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

Unexpected Error in NI MAX

$
0
0

Hi All,

            I see this Error when I try to open the NI-MAX. Please let me know how can this be solved ? Please find the attachments. Looking forward to ur reply


close multiple serial port instances

$
0
0

Hi All,

 

This has been annoying me for a while but I have never bothered to look into it until now!

 

I have a VI that is used fo developing tests.  I communicate with a serial device through com1.

 

The people using this VI regulary shutdown the VI without using the GUI and the shutdown button.  On the next intialise a new comport port reference is instantiated and after a while this cna grow to be quite big so that it appears a list appears in the visa control,e.g.

 

com1

com1(1)

com1(2)

com1(3)

com1(4)

 

Also, see attached screenshot.

 

VISA FIND RESOURCE only shows the aliases and not the instances.

 

Is there a way that I can look at all the open references and close them all programmatically before initiating a new reference?

 

 

Thanks,

Sean

Keithley 2000 not identified on NI Measurement and Automation Explorer using GPIB

$
0
0

Hi,

 

I have recently used NI MAX and NI TestStand along with IVI drivers to get my devices working(using USB). It worked for TG5011 function generator and TDS1002B Oscilloscope successfully.

 

Following the same procedure: I started off with 2000 model  DMM from Keithley with GPIB.

I am facing trouble in finding my device on NI-MAX devices and interfaces.I am using a KUSB-488B GPIB to USB adapter to connect it.

I can interact with the device from VISA Interactive Control and KUSB Diagnostic tool and can see the device in Windows Device Manager and KI-Configuration Utility. Surprisingly I cannot see GPIB Board in NI-MAX.

 

Please help.

 

System Details: NI-VISA 5.2 installed on Windows 7, KUSB-488 driver installed in NI Command Compatibility mode.(only one ieee_32m.dll is present),Un Installed NI-488.

 

Thank you

Sahithi

 

 

GPIB control using C# with Visual Studio 2012?

$
0
0

I have downloaded NI 488.2 3.1.1 and am trying to figure out how to create a C# program with GPIB controls.

(i.e. what references to add, what dll's to import, etc)

 

I do not want to download Measurement Studio and I have seen some examples online but they are not too helpful for a beginner in this subject. Any starter information or code would be extremely helpful

How identify the GPIB Address and VISA interface ID (LABVIEW)

$
0
0

Hi,

I want my VI automatically identify / detect which GPIB addresses are connected. Also, is it possible to query an instrument, such as "*IDN?" as MAX do it.

 

I found the "viFindRsrc" function for VB but I´m not sure how to do it with LabView.

 

I'll apreciate your advices!!

 

Cesar

gpib-usb-hs and matlab

$
0
0

Hi to all,

 

I worked this last semester with GPIB-USB-HS and an HP laptop (Vista 64-bit) and matlab with Instrument Control Toolbox. It really worked fine until yesterday. Laptop is not mine, but the department I'm working for, and someone took it and re-install NI software (almost 4 GB) with and .exe dated on 2011, i don't know why...

 

Unluckyly, when I took the computer to the lab again, and run the automation and measurement tool, the computer crashed into a blue screen. I read in this helpfull forum, and I unistalled the NI software with the Vista application administrator.


I installed again the software that NI provides with the GPIB-USB-HS, and the automation & measuremt tool worked, but matlab displayed this message when I do the fopen command (the gpib command seems to work fine):

 

"The specified board is not installed or configured properly."

 

As long as the computer is not mine, I don't want to format it.

Any help would be appreciated

 

Load setup files on HP4155 thru labview

$
0
0

Hello,

 

I'm working on a program to automate diode testing. I'm trying to use labview and an HP4155C using the GPIB connection to run a V-I measurement and save the data to a spreadsheet. Is there anyway to have labview prompt the 4155 to load it's saved MES files into memory? I currently have the MES files all saved on floppy disk in the 4155 itself. I found a VI for "Get file setup parameter" but I'm not sure how to make it interact with the 4155 to load the MES file.

 

Any help would be greatly appreciated,

 

Konrad

After applying fix for using Agilent E5810A LAN/GPIB with NI-VISA 5.2 or greater, I receive error code 0xBFFF00A5 with all configured instruments

$
0
0

After upgrading to the latest MAX, it could no longer detect the instruments attached to my Agilent E5810A LAN/GPIB. I applied the fix suggested in "NI KnowledgeBase" "Using NI-VISA 5.2 or greater with the Agilent E5810A LAN/GPIB Gateway" and it sort of worked. Now when validating an instrument attached to the E5810A, TCPIP0::[IPADDRESS]::gpib0,6::INSTR"[VISA Alias]", MAX just return error code 0xBFFF00A5. And to boot, all instruments that previously where working are now returning the same error.

I also applied "KnowledgeBase" "Error -1073807195 When Using VISA Test Panel with GPIB Instrument" and it did not help. All passports under NI-VISA are selected to no avail. When trying to open a VISA session or verifying connection all I get from MAX is error 0xBFFF00A5 - The interface type is valid, but the specified interface is not configured".

Tried reverting to the original state, (un-checking "NiVisaTulip.dll"), but it did not make any difference. Seems that I am stuck.

 

Any help on this matter will be greatly appreciated.

 

Opus20


how to find instrument Information programatically

$
0
0

I am trying to find all the connected instrument to the pc through GPIB bus programatically, i am using VISA Find Resource.vi but it is only showing the GPIB addresses, we also want to get the Instrument Information connected to that particular address like we get in max when we scan for instruments.

i am not getting how to do this.

 

Thankyou

Ritu Choudhary 

LabVIEW autodetect correct Com Port or USB resource

$
0
0

I would like to program LabVIEW to automatically find the correct resource or com port when using 3 USB-to-serial adapters with FTDI chips. Does anyone have any ideas about how to accomplish this? I have tried 2 different approaches with no success:

 

1) Create a driver using the NI Driver Wizard, and run the adapters in RAW mode (I could not retrieve any hardware identification unless in this mode). This allowed me to get a serial off of each adapter in my VI and make a distinction but I do not know how to program communication well enough in RAW mode to be able to read and write with VISA Serial as I would normally.  I also could not find any examples or tutorials on setting up RAW USB to be run as if it was using VISA and a com port.

 

2) I attempted to have the VI access the registry values that Windows keeps the com port numbers in, these are assigned by the FTDI chip serial. This method failed when using the Read Registry Value Simple function with the error "-604" "remote access registry denied". I can fix this by manually changing the registry permissions but that is too complicated for the client users.

 

If anyone has any suggestions that would be very helpful. The ultimate goal is when a client plugs in all three serial adapters, the VI can find and distinguish them correctly (by previously knowing the adapter serial or other identifier) without having to manually decide which com port Windows decided on and entering them.  This is a problem I have faced many times in the past and still have never come up with a solution.

Thanks!

 

VISA not working with Agilent 54622D and 33220A with NI- USB-GPIB

Serial communication through an USB-to-serial converter

$
0
0

Hello all,

 

I have a pretty basic application that communicates through an RS-232 port with a motor driver (made in-house). I have developed it on a desktop computer (Windows7. LabVIEW 2009), with a true serial port. I worked fine, as expected.

 

I had to move it to a laptop, for a sort of traveling test stand. Windows7 again, no serial port though, I had to use an USB-to-serial adapter. I installed LabVIEW Runtime Engine, VISA runtime, moved my executable - it did not work. No errors, just the motor did not move.

 

I installed LabVIEW on the laptop, copied the source over, and rebuilt the executable there. It still did not work. But if I run the software from the source, it works!

 

I have also noticed something else: my program does not exit LabVIEW when I exit my main vi (I forgot to do that). If I launch my executable and I exit it (beacause it does not work), I still have the front panel open. If I restart it from the Run (arrow) button, it works, it communicates with my driver.

 

I don't know if it's the serial converter (this is the only hardware change between my working and my non-working setups), or something else I am overlooking. I would appreciate any hint on how to solve this problem.

 

It may not be relevant: I have another instrument in the setup, connected through a USB-to-GPIB adapter. I have no problem reading from it, even when using my non-working executable.

 

Thank you!

 

Connecting to HP 8508a vector voltmeter

$
0
0

I am currently building a setup for some laboratory testing that will eventually run through labview and have been connecting several machines through GPIB. This has been going well and discovery and communication through NI MAX with the other machines has been established by simply using their plug-n-play drivers from the NI website.

However, despite downloading the driver for the Hp 8508A it is not detected by MAX. I have attempted several proposed solutions including

  • power cycling
  • Making sure of no address conflicts 
  • updating NI-VISA
  • turning on NiVisaTulip.dll

I am certain that the GPIB board is operational as I have connected to 3 other instruments all of which work nicely. I am however worried about a passage I read in the users manual of this machine :
"At Powere on, the instrument assumes a local state. Under local control HPIB commands will be ignored. To gain control... the controller must put the instrument into the remote state. This is accomplished by sending the instruments HPIB listen address. "   It later mentions that this address is (HPIB address +32) and should be put onto the bus in command mode but isnt clear on how and i have little experience in GPIB.

I am not certain this listen address part is the issue behind MAX not finding the instrument, as i would think that the instrument would be detected even if it wasnt accepting commands. Regardless, any advice on either part would be most appreciated.

Devantech TPA81 Read Temperature Array "Physical Channel not Be Specified"

$
0
0

Hi, I am new to Labview.

 

I need to use a TPA81 thermal sensor in my Dani robot project so I found the "Devantech TPA81 Read Temperature Array" example in Robotics Examples. I connect my sensor to a USB-I2C converter and then connected to my PC. I run the program but the problem "the physical channel is not specified" always exists. How to choose the physical channel in labview for the clock channel and data channel ?

 

Could anyone please help me and thank you in advance. 

 

Jason

Labview visa Usb driver in windows 8

$
0
0

How to create drivers for usb for interface through labview visa in windows 8?Will it be the same procedure as in windows 7 or different?Please someone guide me as soon as possible.


Labview Visa Usb VI

$
0
0

I am sending an array of samples by using visa usb communication.The size of each sample is 12 bits, because of the resolution of the ADC and the buffer size

of the USB is 8 bits. The program must split each sample to two bytes (each sample should

be divided to the least and most valuable part) in order to use the USB buffer. There for each

sample occupies two buffers of the USB and it can send 32 samples of signal per each

transaction, because the USB port can just transact 64 bytes together at highest speed.I have developed a program to reconstruct analog signals from those samples.

If I send array consist of four different signals seperated by some special characters and I have to display four different signlas separated by special characters .Please suggest me any modifications in attached VI to separate four signals and display them.This attached vi is to display just one signal

Labview Visa Usb VI

$
0
0

I am sending an array of samples taken by adc to labview via visa usb.Now I want to reconstruct the original analog signal using those samples.

The size of each sample is 12 bits, because of the resolution of the ADC and the buffer size

of the USB is 8 bits. The program must split each sample to two bytes (each sample should

be divided to the least and most valuable part) in order to use the USB buffer. Therefore, each

sample occupies two buffers of the USB and it can send 32 samples of signal per each

transaction, because the USB port can just transact 64 bytes together at highest speed.Will anybody please help me to write a VI to perform this task.

TTi AWG TGA12104 and labview : missing AWGUSB.DLL file

$
0
0

Hi,

 

I am trying to control an arbitrary waveform generator (tti tga12104) using Labview and the GPIB interface.

 

I downloaded the TGA12100 series driver and installed it.

At first, I did want to use waveform manager plus, a software that can download or upload waveform to the generator. I got an error when I open it "missing awgusb.dll". I looked for this file and found it, but right now I don't know where to put it.

 

I also try to open a VI program that was on the TGA120100 driver file, and I got the same error with the dll file.

 

I'm new in Labview and instrument control, any ideas on the source of the error ? If you have any tutorial, feel free to share, I'm a little bit confused...

 

Thanks in advance !

I am intermittantly getting error -301706 when trying to program a 24C11 EEPROM with a USB-8451.

$
0
0

I have a USB-8451 setup for I2C communication with a 24C11 EEPROM in a test system. One out of every ~20 attempts at programming the EEPROM will fail with the error code -301706 "NI-845x:  The device reference is invalid. Verify that the supplied device reference contains a valid device name." When I check MAX, the 8451 is indeed missing from the device list. This is happening on three identically configured systems. I have tried replacing the 8451 controller and re-installing the drivers to no avail. The EEPROM is not bad, I can take it to a different system and it will program fine. I would appriciate any ideas on what to look at next. Could an I2C bus fault cause the 8451 to de-enumrate in windows?

Digital output (0/5volts) using USB or RS232?

$
0
0

Dear Friends, i need to switch on and off some device using some transistor ....ect. I would like to switch on/off using USB or RS232 from Labview... i just need to provice whethere 0 or 5 volts in order to do so..... please help me out.

Viewing all 5662 articles
Browse latest View live


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