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

IVI error will not run PXI cards calibration

$
0
0
I had an NI automatic update done a week or so ago and it wiped out my ability to run NIMAX, Calibration Executive, and see any of my PXI card plugins. I am using a PXI-1033 mainframe and calibrating multipe PXI cards. I was able to fix NIMAX and I can now see my mainframe and cards in the mainframe, but I cannot communicate with the cards. When I start my computer I get a "found new hardware wizard" looking for a PCI Device but have no luck when I downloaded all the drivers once again. In MAX the card is there but says "windows does not have a driver associated with my device" even after installing it three times. When I tried running Calibration Executitve I get the error message "ProcessModel\QueryDriverVersions\specificDrivers\cex_Read_NI_SCOPEVersion.viat step QueryDriver Versions LabView: The VI is not executable. Most likely the VI is broken or one of its VIs cannot be located. OPen the VI in labview using flie>>Open and verify it is runable."

How can i plot two different parameters (Light Depend Resistor and Temperature values) by using serial communication?

$
0
0

Hi Everyone,

I am new on Labview platform and working on "mbed" platform to plot two different parameters versus time. My question is that: How can i see their waveform chart seperately? I mean, one waveform chart should be Lighting depend resistor (centigrade) values versus time, and other one is Temperature values versus time. They should be continious signals. I exactly did not know, where do i put waveform chart on my block diagram. And i guess, i need two. If true, how can i seperate LDR values and Temperature values. I have added my code and my vi file print screen (my vi file is exactly same as Continious Serial Write And Read Demo Examples). Please somebody helps me.

King Regards,

Cem 

ASRL_WIRE_MODE

$
0
0

Hi,

 

Using VISA, at program startup I am querying all available ports (for access and properties). In order to distinguish between RS232 and RS485 I use the attribute VI_ATTR_ASRL_WIRE_MODE.

 

Surprisingly, the call returns VI_ASRL_WIRE_485_4 although the port definitely is RS232, this is also confirmed by reading the port description which says: NI PCI-8430/8 (RS232).... (in accordance with NI-MAX)

 

The original software has been developed with CVI 8.5; since I recently upgraded from VISA 5.3 to 5.4 I suspect some incompatibility, could it be...?

Some other software is also running on the same computer so the run time engine is CVI2013.

 
Thanks!

Obtaining an IVI Driver Session from IVI Logical Name in IVI-COM

$
0
0

Is there anyway to obtain a IVI driver session from a IVI Logical Name in C#? The IVI Logical Name is obtained from NI MAX. I am using an Agilent 34980A IVI-COM Driver. The Agilent 34980A IVI-COM Driver does not provide this capability as far as I know for obtaining the IVI Driver Session from the IVI Logical Name.

 

I initialize the driver by using the “Initialize” method and pass in the Logical Name as one of the arguments. My Agilent 34980A Instrument is initialized after the call is made to the method. I verified this with NI-Trace.

 

But here is my dilemma. I have 2 or more Agilent 34980A Instruments in my test setup. Each Agilent 34980A has its own unique IVI Logical Name. I only know the Logical Names in my C# code. I managed the IVI Logical Names but I need a way to logically associate each driver session to each IVI Logical Name. Sure I can lug around the driver sessions in my code and associate it to the IVI Logical Names. Maybe there is another way to do this with IVI Config Server.

 

For example I need to reset the Agilent 34980A Instrument further down in my code by calling the following statement:

 

 

driver.Utility.Reset();

 

 

// driver handle session was defined earlier on in IviSessionFactoryClass

 

 

.

// I need to know which IVI logical name is assigned to which driver session. When I call the reset method, I don't know which Agilent 34980A I am resetting.

 

 

 

Is there an API call in IVI Config Server that serves that purpose for obtaining the driver session based on the IVI Logical Name? I did find some call for IVI-C for finding a specific driver handle based on the lVI Logical Name. But I did not find a call like that for IVI-COM.

 

 

Any help on this would be very grateful.

 

Sending GPIB GET to multiple instruments using VISA

$
0
0

Hello all,

 

I am trying to start simultaneous acquisition on two Keithley 486 devices using the GPIB GET ("Group Execute Trigger") functionality, using VISA. However this doesn't succeed, neither programatically, nor using the "VISA interactive Control" application.

 

What I am trying:

 

(1)   I set up my Keithley devices for acquisition-on-GET, i.e., they are armed and waiting for a GET trigger.

 

I am quite sure this is done correctly, because if I assert the trigger on the instruments seperately, they start acquiring as intended.

 

(2) When I assert the trigger on the interface instead ("GPIB0::INTFC"), nothing happens -- the devices stay armed and do not start acquiring.

 

I have tried to do this both programmatically (using PyVISA that talks to the VISA DLL), and using the "VISA interactive Control" application. In the latter, selecting the "GPIN0::INTFC" device, going to the Advanced/Triggers tab, and pushing the "Assert Trigger" button doesn't work.

 

 

My questions:

 

- should this work, or is my expectation that this should work incorrect?

- what could I try to make it work?

 

MMA 7631 accelerometer with arduino uno

$
0
0

hello,

I am trying to develop the vi for accelerometer , i have developed a sample vi but it is showing error again and again. i tried to figure it out but unable to solve. i am having MMA 7631 accelorometer and arduino 7631. i am ataching a vi. please reply for the issue. i have even used firmware for accelerometer too. check out the attachment too.

Scanning and getting the date on USV-Stick

$
0
0

Hello,

 

i want to measure volt with agilent 34972a and simultaneously save the data on a usb stick.

the problem i have is that when i start my Scan, every time i´m Scanning agilent creates a new folder with config and data. So if i scan for like 10 minutes and do about 1000 scans, i get 1000 folders.

But i want and need is one data-file for each measurement, not for each scan!

 

I think the problem is that i´m repeating one trigger within my while-loop and agilent thinks that i am starting a new scan. Yet i tried everything to change that but either i´m not able to see the reading via labview or i can´t get the files within one data-file.

 

I really don´t know what else to try ...

Btw i´m using Labview 2012 and i´m working with the Agilent 34972a

 

Here my programm:

 

 

NE 500 syringe pump continuously changing flow rate

$
0
0

Hi

 

I have NE 500 syringe pumps and try to program using labview. Attached is the VIs from the pump company. I want to change the flow rate while the pump is running. It seems for this VI, the flow rate can only be changed after pausing the VI. I am trying to make the pump able to do step rates and rates changed as a function of time. Is there a way to do that? Can I modify the VI or I have to do it in a completely different way?

 

Appreciate any help


using viGpibCommand and CIC errors

$
0
0

Dear all,

 

My hardware is an NI GPIB-USB-HS interface, connected to a windows 7 machine. I have two GPIB devices connected for testing.

 

I am trying to send low-level GPIB commands using viGpibCommand. The reason I need to do this is because I want to implement a GET trigger with multiple listeners. This cannot be accomplished with the viAssertTrigger() functionality, as far as I am aware.

 

However, when I try to send commands using viGpibCommand(), I get "VI_ERROR_NCIC: the interface associated with this session is not currently the controller in charge".

 

Indeed, the VI_ATTR_GPIB_CIC_STATE attribute of the session to my "GPIB::INTFC" controller shows 0 (not in control). It is the system controller though (VI_ATTR_GPIB_SYS_CNTRL_STATE shows 1).

 

My question is: what do I need  to do to be able to send raw commands using viGpibCommand?

 

Is it possible to see GPIB traffic as caused byVISA commands?

$
0
0

Hi all,

 

Is it possible to snoop the GPIB traffic generated when controlling GPIB via the VISA library?

 

In particular, I would be interested to see the exact sequence of GPIB commands that are sent when a viAssertTrigger() is sent to a particular GPIB device.

 

The "NI IO Trace" utility shows the traffic in terms of VISA calls, but I want to dig deeper.

 

rs232 sense line for event driven signal

$
0
0

Hi,

 

My vendor specification states:  "If utility power fails, the UPS sends a signal by bridging pins 8 and 5 through a RS232 interface." I am trying to setup labview to sense this signal through the RS232 interface. Is it possible to do this? It doesn't seem like a common RS232 protocol.

 

Thanks,

Tuan

i want to open a html file in word and save it as docx programmatically using activex

$
0
0

can i open a .html file in microsoft word and save it as a .docx file programmatically ?

GPIB connection fault after checking connection in NI MAX

$
0
0

Hi,

 

I have a problem with a system I am using.

I am connecting to 3 Keithley 2410 power supplies in labview using the Agilent 82357B USB/GPIB Interface.

 

The labview program works... but if I check the GPIB connection in NI MAX or in Agilent connections expert before/ during using labview then Labview can no longer connect to the power supplies. It can originally connect to the first two and then the third connection fails following by them all failing.

 

Any help would be much appreciated,

 

Thanks

E

NI-DMM vs. IVI-DMM - Soft Front Panel

$
0
0

Hello All,

 

  I have been developing a testing application that will eventually use a PXI-4070 DMM (currently simulating it in NI MAX).  I had been using the IVI DMM functions, but ran into a problem when I couldn't do a diode test (diode test is apparently not officially standardized by IVI yet).  So I switched to using the NI-DMM functions. For the most part, it was a pretty seamless transition, but there is one thing I have not been able to replicate with the NI-DMM simulation that I could do with the IVI-DMM.  When I used the IVI-DMM functions, and ran the VI, a popup opened that allowed me to enter in the simulated value that I wanted the DMM to read.  I can't get this to work with the NI-DMM functions.  Is it possible?  If so please let me know how to activate.  Thanks.

 

GSinMN 

Advice needed - Java/Linux GPIB

$
0
0

Hi,

 

I need to leverage an existing Java/Linux application which is controlling a Standford Research Systems SR620 counter.
Today textual commands are sent to the counter via the counter's serial port using the standard Java API.

 

My colleague would like to use another counter for the measurement part of the application. Namely an HP 53132A. This
counter cannot be controlled by a serial port but accepts commands on the GPIB port.

 

I did somme research and have the feeling that I could solve the problem this way :

 

- I buy an NI GPIB-USB-HS controller (I prefer it to a card because I can also make tests on my Windows desktop machine)
- This controller is shipped with a Linux driver. I should be able to install it on my target machine
- This controller is shipped with the VISA library, containing a C API to send commands on the GPIB bus
  Using Java Native insterface I should be able to call the C functions from my Java application

 

I also saw http://jpib.sourceforge.net/ but I have the feeling it is not very active

 

As anybody already tested this kind of chain ? I would appreciate any other piece of advice as well

 

Thanks and regards

 

Vincent


Getting the measured multiple values from multiple channels of Agilent DSO-X 2014A 4-ch oscilloscope

$
0
0

           Hi, all

I'm Sean Ahn, using LabVIEW 2013 sp1 with Agilent DSO-X 2014A  4-ch oscilloscope.

As attached vi file, I’m trying to get the measured multiple values from multiple channels of Agilent DSO-X 2014A  4-ch oscilloscope. But every time I try ‘Read Measurement : Statics’ I get the error message ‘hardware missing’ from oscilloscope, while ‘Read Measurement : Continues’ setting gives no problem working very well (but, it gives only one measured value-the last one in the list.).

 20140731_213254.jpg

In the user’s guide from Agilent, the error message is described as below.

-241, Hardware missing

This message can occur when a feature is unavailable or unlicensed.For example, some serial bus decode commands are only available when the serial decode options are licensed.

 

I already tried both USB and ethernet connection between PC and oscilloscope to get the same result. :-(

How can I solve this problem? Or is there any other way to get multiple values from multiple channels using ‘Read Measurement : Continues’?

 

Thanks in advance

Sean Ahn

Yokogawa UP550 RS-485 Communications

To send multiple operation commands to serial port

$
0
0
My AC power source is able to communicate to PC via serial port using LABView and I can perform any operation by giving commands in Hex individually, But when it comes to the parallel operation of all the commands or to put them in a particular sequence. I am failing to do so.

KEITLEY GPIB-USB device is not recognise any instrument in labview

$
0
0

Hello, 

          I am doing noise measurement of device with Dynamic Signal Analyzer (DSA) Hp 35670A. I need to automate the measuremnt process with help of labview. I have installed the drivers for DSA hp 35670A by find an istrumnet driver help menu in labview. While doing this labview was showing that DSA hp 35670A is connected to system, since i have connected the DSA hp 35670A to my system via KEITHLEY GPIB - USB 488A connecter. I have also installed driver for KEITHLEY GPIB - USB 488A connecter. But when i try to see the same in NI - MAX it is not showing that the DSA hp 35670A is connected to system. I have also attached the snapshot with the post. It is clearly seen that nothing is seen under the name of GPIB connecter KUSB 488A.So NI - MAX is not detecting instrument. So plase suggest me how to get rid of this problem.

          Thank you.

KEITLEY GPIB-USB device is not recognise any instrument in labview

$
0
0

Hello, 

          I am doing noise measurement of device with Dynamic Signal Analyzer (DSA) Hp 35670A. I need to automate the measuremnt process with help of labview. I have installed the drivers for DSA hp 35670A by find an istrumnet driver help menu in labview. While doing this labview was showing that DSA hp 35670A is connected to system, since i have connected the DSA hp 35670A to my system via KEITHLEY GPIB - USB 488A connecter. I have also installed driver for KEITHLEY GPIB - USB 488A connecter. But when i try to see the same in NI - MAX it is not showing that the DSA hp 35670A is connected to system. I have also attached the snapshot with the post. It is clearly seen that nothing is seen under the name of GPIB connecter KUSB 488A. So plase suggest me how to get rid of this problem.

          Thank you.

Viewing all 5661 articles
Browse latest View live


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