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

USB4000 in LabView 2012

$
0
0

I have an Ocean Optics USB4000 spectrometer. It was working fine with the acquire continuous waveform example program in LabView2011.  Then someone in my lab updated our software to LabView2012, and it is no longer recognized by Labview.

 

I installed the new LabView 2012 version of the driver and deleted the old 2009 driver's .inf file, but it still won't recognize the device.

 

When I try to run the program, I get the following error: 

 

Error -1073807302 occurred at Property Node (arg 1) in Ocean Optics 2000 4000.lvlib:Initialize.vi->Ocean Optics 2000 4000 Acquire Continuous Waveform.vi

 

Possible reason(s):

VISA: (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).

 

In the Visa test panel for the device, the Bulk Out Pipe Status, Bulk In Pipe Status, and Interript in Pipe Status each have an "Invalid Property Value" for their current value and the history data says "Error VISA: (Hex 0x3FFF0082) The specified object reference is uninitialized."

 

Does anyone know how to fix this?

 

Thank you kindly!


Better Understanding of IVI COM Adapters

$
0
0

I have found many very incomplete information on IVI COM adapters and the way they work. Most articles or forum thread I found typically include a "magic" step that I can't seem to overcone on my own, hence my posting here.

 

What I would like to know is this:

1. Say, I have an IVI C driver, is it possible to use those "IVI COM adapters" in a way that I can use only the IVI COM specification (in other words, have an IVI COM wrapper for IVI C)?

2. If so, could anyone provide me with advice/guidance as to how I should proceed to achieve this?

 

The information I could gather seemed to me that this works the other way around. To be clear, what I want to do is download an IVI C driver and find a way to use it using the IVI COM specification (if at all possible)

gw instek: higher output voltage

$
0
0

Hey All,

 

I am currently using a GW Instek PSM-2010 programmable DC power supply and I have been trying to progarmmably increase the voltage output while performing temperature ramps on my sample. At the present time, I am only able to reach a voltage of about 1.2 with a max current of 20 amps. Theoretically I should be able to operate at 8 V when using a max current of 20A. Does anyone know what driver VI will allow me to reach this capability? Or does the problem lay within the temperature ramp programming that was established by my predecesor? When I try to change values in some of the driver VI's that are used in my programming, they seem to reset to a default value. Any insight would be much appreciated. Thanks! - A_babs

sbRIO-9642 connect with PC by Ethernet

$
0
0

I am using sbRIO-9642 connecting PC by Ethernet

I can find my device in the MAX as following:

2.JPG

1.JPG

 

It is always shown as "No configured".

And I used command window to show all the devices connected with my PC as following:

 1.JPG

I can't find the device with MAC address: 00:80:2f:13:84:76

 

How to solve this BIG problem, it's a bit annoying!

 

Thanks a lot

COM Ports do not show under serial and parallel in NI Max

$
0
0

Hello,

 

I'm trying to connect an Arduino mega2560 board with labview but it doesn't show up in NI-MAX., in fact Serial and Parallel Ports are not identified in MAX. I have followed these steps https://decibel.ni.com/content/docs/DOC-15971 and installed all software without errors however Labview simply doesn't recognize my com ports.

 

There is an error showing under devices and interfaces and i suspect it is connected with MAX being unable to communicate with the serial and parallel ports.

 

I've installed NI-VISA, NI-DAQ, NI-488.2 the arduino IDE, LIFA and drivers as well. The firmware was also uploaded to the board.

 

I've already tried multiple installations on different systems and different boards with the same results. I must be doing something really stupid but at this point I'm lost and a bit desperate. I would be really grateful if someone could lend me a hand.

 

Note 1: Added screenshots and a notepad with my system information so its easier to understand what I have installed.

energy meter

$
0
0

can anyone tell mi how to connect energy meter having port rs485 to labview. we have to aquire data from energy meter using modbus RTU

TDS6604 vi problems

$
0
0

Currently I am trying to use the tkdpo7k driver set to control a Tektronix TDS6604 O-scope to read a series of waveform pulses that can occur between 500ms to 5s apart.  What I am currently doing with an older scope is:

  • Configure the scope (vertical horizontal acquisition mode trigger etc.)
  • Tell the scope to acquire the waveform.
  •  Once the next waveform is acquired I process the information.

When I try using the equivilant plugins for the 6604 in my program I cannot get it to wait till a new waveform is acquired in fact I do not even have to have a waveform present it just runs straight through.

 

Any thought or suggestions will be helpful

 

James

interface Atmega8 microcontroller

$
0
0

i want to interface Atmega8 microcontroller through usb.please tell me how to it


NI 9188 and CompactRIO chassis

$
0
0

Hi!

 

Currently i need a cRIO system that can interface with DELTA ASD-A2 servo drive controller. So, i need a CANopen interface onboard my cRIO. While searchig NI hardware i've found a NI-9881 CANopen module. But in the requirements tab i see "module requires the NI cRIO-911x/906x/908x chassis". And i have a 9073, 9074 and 9075 chassis. Why not use the integrated chassis and controller for NI 9188 (i guess, there is some serious reason for that)? Or maybe NI-9188 module will work with new integrated controller/chassis (9075/9076/9074)?

 

Any help will be appreciated.

Thanks!

Programmatic control of Windfreak's SynthNV Sig Gen

$
0
0

I am trying to programmitically control the Windfreak SynthNV Sig Gen and am not able to communicate and control the unit.

has anyone else worked with this and been successful at automating control for it? I am using Labview 2013 SP1 and am using latest document from Windfreak. The Synthizer does not respond to any inputs.

kiethly 230 programmable voltage source

$
0
0

I am trying to communicate with the Kiethley 230 programmable voltage source , with Lab view using the Visa Instrument I/O.

 

I have a text control that sends a string to the VISA reource and a string constant that sends the address (GPIB0::13::INSTR). The Text input is

                    REMOTE 13013 \n OUTPUT 13013 ; "P0X"  

That should set the program mode to single but the device gives the IDDCO error.

 

a digital Multi-meter is also daisychaied to the GPIB and has an address (GPIB0:10::INSTR). using the same vi and the new address the DMM executed the instruction

                    REMOTE 10010 \n OUTPUT 10010 ; "F1X"

and it responded as it should by change the mode to read AC voltages.

 

I read the manuals and the synatax for both devices are similar. could you tell me what may be the issue why the programable voltage source may not be executing the instruction.  

Help me!

$
0
0

My System software:

      Mac OS 10.9.2

      LabVIEW 2012SP1f5 for Mac


My have Hardware:

       NI GPIB-USB-B

       How much 488.2 ?

 

 

Beckhoff EK1100 RT-Startup problems

$
0
0

Hey,

 

I´ve a problem with Beckhoff coupler EK1100.

 

When I create a project with RT-Target and EtherCAT Master and Slave the first time everything runs normally (I can read and write all I/O´s at the Beckhoff).

 

After a couple of restarts the RT can´t establish a connection with the EtherCAT Slave. If I disconnect the plug from the coupler and connects it, nothing happens. But if I disconnect RT and Beckhoff, restart the RT, and connect them after the RT is booted, the EtherCAT will work fine. A few restarts of the RT later, the connection can´t be established again...

 

Has anyone an idea what the reason could be? I tried deployes and stuff, but the missing connection after restart of RT is still there.

 

Is it possible that the Scan Engine has a timing problem at startup with Beckhoff EtherCAT coupler?

 

Thanks in advance

 

Fabian

Controlling Custom Instrument over Ethernet

$
0
0

I'm trying to setup the communication for a custom made instrument programmed in LabVIEW.  I would like my instrument to communcate with a PC over VISA like I do with my typical COTS equipment.  

 

Does anyone know a good standard way I can set this up?  The way agilent or a real company does?

I tried using VISA VIs in the instruments code, but I could never get a command from the instrument to the PC.  Not sure if that's even possible since the PC isn't set up as a resource in MAX.  I just used the know IP address and port and hoped it would work.  

I also tried using the TCP VIs which did work, but the commands send between the instrument and PC have a lot of time between them.  I didn't know if leaving a TCP connection open would work.  Seemed like it would just timeout after x amount of time (1min?).

Measurement & Automation Explorer

$
0
0

Hello guys,
while I was installing CompactRIO, I was accidentally turned off the PC. Now I get this error. How can I solve this situation?
thanks

 

10255768_10203940271897359_1709722120_n.jpg


How to get the serial # of the PXI-8430/8 and PXI-8431/8 card programmatically using C#, NI assemblies and VISA?

$
0
0

I am trying to support multiple cards in multiple chassis. I need to map the COM ports I find with VISA to cards in the chassis/slots I find with VISA.

 

NIMAX does this nicely, putting the COM ports under the 8430 and 8431 cards with which they are associated. If you look at the Settings Tab in NIMAX the Serial Number is right there as part of the Settings. I would sure like to know how to get it, seems easy enough.

 

I am using the NationalInstruments.VisaNS and C#. The com ports are very nice and give me all the info I need including Serial Number in the session's HardwareInterfaceName attribute. see code snippet below:

 

HardwareInterfaceType thwt, hwtype;

short sintNum;

string resClass = string.Empty;

string expName = string.Empty;

string alias = string.Empty;

string COM15VisaID = "visa://<ip>/ASRL15::INSTR";

 

Session session = ResourceManager.GetLocalManager().Open(COM15VisaID);

ResourceManager.GetLocalManager().ParseResource(COM15VisaID, out hwtype, out sintNum, out resClass, out expName, out alias);              

 

session.HardwareInterfaceName string value is:  "ASRL15  (COM15 - NI PXI-8430/8 (RS-232) SN:17E536C, Communications Port 1)"

 

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

Then when I get the 8430 card info i don't get the serial number and I have searched for it in all the data and cannot find it anywhere.  If it was a DIO or AIO card it is as easy as:

 

Device dev = DaqSystem.Local.LoadDevice(dev_str);

long sn = dev.SerialNumber;

 

So I have found a workaround that is not very elegant. I put the serial number into the VISA alias. I really don't want to, but I am at the point of diminishing returns on this. If you add another card to the system, then you MUST change the VISA alias in order for this to work. I would really rather get the serial number from somewhere than adding it by hand. Here is what i get when I get the values for the card after changing the VISA alias:

 

CardVisaID8430 = "visa://<ip>/PXI2::14::INSTR";

Session session = ResourceManager.GetLocalManager().Open(CardVisaID8430);

ResourceManager.GetLocalManager().ParseResource(CardVisaID8430, out hwtype, out sintNum, out resClass, out expName, out alias);              

 

session.HardwareInterfaceName string value is: "PXI2 (PCI Extensions for Instrumentation)"

alias string value is: "visa://<ip>/PXI-8430_Rack1_Slot3_SN017E536C"

 

So now I can associate the com port to the correct cards. Does anyone know how to get the serial number for these cards?

 

Thanks,

Jason

 

 

First attempt at Producer Consumer Architecture: continuous read and dynamically update parameters.

$
0
0

Hello,

 

I am currently working with two instruments; an Agilent E3646A and an NI 6212 BNC. My objective is to have the 6212 to be continuously taking measurements according to predefined parameters while the E3646A's parameters can be continuously updated. This simple instrument combination is intended to help me learn the necessarry achitecture; continuous measurement, dynamic output control, and more instruments will be added in the future.

 

I've previously posted on a similar, but more complicated, setup (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Split-second-lag-when-controlling-two-instruments-via-GPIB/td-p/2669581) and was advised to try the Producer Consumer Architecture. I've found relevant literature on the site (http://www.ni.com/white-paper/3023/en/,https://decibel.ni.com/content/docs/DOC-2431), searched the forums and constructed my own VI. While my first attempt at a Producer Consumer Architecture has resolved some of the issues I was having when I first posted on the subject, however, new issues have arisen with regard to reading and stopping the VI.

 

I am currently able to run the VI and update the device parameters. Previously, I would get a freeze while the instrument was being updated and could not toggle parameters until it was done. This has been resolved although the read only updates when a parameter has been updated although it is outside of the event structure. Furthermore the Stop button does not work in any context. I've also gotten occasional errors regarding the Deqeue Element but the bulk of the trouble is Error -200279 "Attempted to read samples that are no longer available" at DAQmx Read. I realize that there is a problem in my Producer Loop but haven't been able to figure out how to resolve it.

 

This is my first attempt at a Producer Consumer Architecture and already I can see that it is a powerful tool. I read as much as I could and looked at the relevant examples but expected to have some issues in the beginning. Would really appreciate any advice so I can take full advantage of the architecture.

 

Hope to hear from you,

Yusif Nurizade

 

Problems with contiuous sampling using Labview for Arduino interface

$
0
0

So far I have been able to establish an connection between my arduino and the labview software with the LIFA base and also have gotten the continuous sampling example vi running and outputing data from the thermocouple I have it connected to.  The problem is I want to add on to this sub vi to output a temperature instead of a voltage reading from the thermocouple and have reproduced the example but the vi is not running past the initialization block and I am wondering if this is becasue im having registering problems with my VISA? Please help. the Vi is attached below

e5810b lan/usbgateway

$
0
0

I am trying to use visa to address an agilent u2701a scope with an E5810B lan/usb gateway. I am able to use ni-visa to find the scope without the gateway no problem using vifindrsrc, but when I try to do the same using the e5810b gateway Ihave trouble. Any suggestions?

Upgrading a Labview 8.2 program to newer version, losing Serial/Activex functions

$
0
0

I have inherited a program that runs a custom made application called via an activex node in the VI, which communicates with a flow meter. On the older computers here it runs fine ( they are XP running LV8.2) but I need to move them to new Win7 computers (running LV2013) and the transfer is not working. The VI is no longer opening the port properly and communicating with the meter. If I use the program that the meters came with to first open the port, then close that program and run my VI the VI calls the application properly, retrieves the data, and gives the output, albeit very very slowly.  The way that the flowmeter outputs it's data as far as i can tell is to dump the entire block of information it has. So muddled in "press p for program" strings and "h for help" is the actual flow value, so I am thinking that the reason that the sampling is so slow is that this proprietary program is searching in the read buffer for an identifier then taking the numeric value needed from that. Does this sound reasonable? But what could be causing it to no longer open the comm port properly like it does on the XP machines? Everything else is the same, I am just trying to open it in LV2013, instead of 2006.

 

I have tried to make a straight forward Serial read program, but that also does not open the port properly, and I have to run the flow meter software first to get a readable port. All that program has is the COM setup and a read block and once running does output properly, but it is just dupicating what is on the screen of the flowmeter like the other program does, so I need to sift through that for the flow value if that is the only way to do it.

 

I have probably done a terrible job explaining this, thank you for reading this far, hopefully we can figure it out.

Viewing all 5661 articles
Browse latest View live


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