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

How do I change the GPIB timeout using c#

$
0
0

Hello,

I'm trying to use C# to control my GPIB equipment.  As long as I use the default timeout, i can read/write/query with no problems.  Today I wanted to try to change the timeout so I tried the following command:



mbSession = (MessageBasedSession)ResourceManager.GetLocalManager().Open(visaAlias, AccessModes.NoLock, 10000);

 

int originalVisaTimeout = mbSession.Timeout;

int newVisaTimeout = 120000;

 

mbSession.Timeout = newVisaTimeout; // this does not work and changes to either 3000, 180000, or 300000 depending on the values i've tried for the timeout so far

mbSession.Timeout = originalVisaTimeout // this correctly sets the timeout back ot the origianl value.

 

Am I using the wrong Timeout property to set the GPIB Timeout? The documentation shows the following information.

//
// Summary:
// Gets or sets the minimum timeout value to use in milliseconds when accessing
// the device associated with the session.
//
// Exceptions:
// NationalInstruments.VisaNS.VisaException:
// The property is set to an invalid state.
//
// System.ObjectDisposedException:
// This member is called after the Dispose method is called directly from code
// or indirectly through a finalizer.
//
// System.DllNotFoundException:
// The NI-VISA driver library cannot be found.
//
// System.EntryPointNotFoundException:
// A required operation in the NI-VISA driver library cannot be found.
public int Timeout { get; set; }

 

Thanks,
Frank

 


How do I connect UWE UETR-MOST PID controller to LabView

$
0
0

Hi all,

 

I'm new to Labview and I am trying to connect a device made by UWE electronic which PID controlls Peltiers. The device is a UETR-MOST 16A PID controller. I've installed the FTDI (DTXX) drivers and have found an exmaple code here, but I don't understand how to actually connect my device. I've tried using VISA and the automoation and device manager, but the controller does not appear.

 

Any help/ suggestions very welcome.

 

 

error in acquiring waveform from the agilent 54621A oscilloscope .

$
0
0

error  1074003951 occurs when  acquiring waveform from  the agilent 54621A oscilloscope.

I have installed

agilent 546xx series instrument driver

NI VISA 14.0

 

NI-PCI 8431

$
0
0

Hello,

I have a problem of writing frames with fixed frequency 200Hz(5mS) using the NI PCI-8431/2  and  LABVIEW 2013.

I cannot get frames with constant frequency 200Hz(5mS). The frequency is changed during communication.

Why?

 

Please open enclosed vi and scope picture from the port output of the NI-PCI-8431.

 

Thanks.

Using global variables with FPGA VI and an main VI

$
0
0

First off, I am fairly new with labview.

 

I am wondering if it was possible to obtain data from an FPGA VI so that it can be read in a regular VI.

 

I tried using global variables, but the data doesn't update.

 

Basically what I tried doing was using a Global Variable and have it in write mode in the FPGA, and then have it in read mode on the regular VI with an indicator attached to it. But I am not getting data out of it, it just stays zero. I intend to use this data as part of my main program.

 

Is there a way I can achieve this, or is there another method?

 

Thanks!

 

Unable to Run NI-488.2 Software

$
0
0

I am running an iMac with OS X 10.5.8, a 2 GHz Intel Core 2 Duo processor, and LabVIEW 7.1.  LabVIEW said it installed correctly, and I have even gone back and reinstalled the GPIB software on its own.  I've tried reinstalling the entire software package several times.  When I try to run the NI-488.2 softwares, the following things happen:

 

EthernetConfig: Starts to open, and then just closes itself

 

Explore GPIB: Unable to load libgpibconf.jnilib.  Reinstall the NI-488.2 driver software.

 

FirmwareUpdate: Cannot launch Java application.  Uncaught exception in main method: java.lang.UnsatisfiedLinkError: no EnetConfig in java.library.path

 

Troubleshoot: The NI-488.2 Software is not correctly installed on your system.  Please follow these steps: 1) Reinstall the NI-488.2 Software. 2) Run the Troubleshooting Wizard again.

 

Any help would be great.  Thanks.

Single Driver for ni-rio 9146 without overhead by included support for all similar HW

$
0
0

I recognized that the driver package for NI-Rio 2014 is about 4GB in size but i need only support for NI-Rio 9146.

Can i download also a single specific driver?

 

capture a low frequency sinusoid with PXI-4132

$
0
0

I would like to drive a 275Hz 2V amplitude 2V offset above ground sinusoid into the sense hi lo pins of the  PXI-4132 & try to capture it to do an FFT & look at the quality of the waveform.

I have tried to drive those pins directly without luck.

I then tried to drive the hi lo pins as well, with the compliance set low enough to overdrive the inputs.

 

I would  also  like the PXI-4132 to generate this sinusoid for driving a DUT. 

 

This card sits in a PXIe-1073 chassis connected to an windows xp PC runnig labview 2011 SP1.

 

Any help would be appreciated.


I can't configure the resolution on my 34460A DMM with IVI

$
0
0

I'm trying to acquire data from my 34460A using IVI. When I use Configure Measurement, the DMM doesn't seem to be taking the resolution properly. It seems to be setting full range (slow) measurements no matter what I set there. I set the range to 3A and the resolution to 0.0001 but I'm getting measurements in the 4±2µA range

 

http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=21588

 

 

FYI, the non IVI (LabVIEW) driver works fine.

MyRio Cannot Communicate When the Getting Started Wizard Tries to Set Date and Time

$
0
0

I cannot seem to get MyRio to communicate with my computer. I have installed all the items on both discs and applied any updates that it asked me to do. I plug in the MyRio, the device window pops up and I click the Getting Started Wizard. The myRio is found by the computer and I click on it. It says checking software, then asks me to rename it. I do so and then it attempts to set the date and time. At this point it says it cannot communicate with the myRio and to check that the power supply and USB are plugged in, which are obviously connected since the computer was able to find the myRio in the first place.

 

NI MAX can see the myRio, says that it is in "Safe Mode (Software not installed)."

 

There may be a problem with conflicting LabViews, since I had 2012 originally before installing the 2014 packages. Does anyone know if the myRio discs are installing the full LabView 2014, or just packages for LabView 2014 that will not work without first installing the full LabView 2014? Or is there a quick fix for this?

 

Any help is appreciated.

 

Powerflex 755 driver

$
0
0

I am trying to find a driver for the A-B Powerflex 755 AC Drive.

USB-485 driver for Windows 7

$
0
0

Does there exist on the NI website a device-secific Windows 7 driver for the USB-485? I know I can download and install NI-Serial package (all 517 Mb of it) and get the driver for this thing, plus the drivers and libraries and help files tons of other stuff for dozens more devices that I'll never use, but I don't want to do that. I just want the Windows USB driver for this single device. Is it available?

Serial string log with timestamp

$
0
0

Hello Everyone,

I made a Pressure calibrator which continously sends data to pc via UART at an interval selected by user, now we are displaying it on hyper terminal, however I want to design a Labview program which will take this data and log it in excel. I was able to send numeric character in labview group them together and display on a Guage, however the Data format now for eg. is '+150.10mmWC ' followed by CR and NL., if the pressure is 150.10 mm of water column. Can you point me some sources where I will get info to log these incoming strings as it is in excel file along with their time stamp so I can read up on them.
Thank You.

How to create remote control via RS232 for microbalance

$
0
0

Hello,

I want to do drivers via RS-232(serial line) for microbalance- communication with pc(remote control), i have manual  with serial interface but i don't know how to use it for programming in Labview. Can you help or show me some similar programs? My main problem is how to create start output - line composed of 15 words.

I attached pdf file , main VI and subVI...I know it's wrong subVI, instead of write buffer should be line composed of 15 words according to pdf but I don't know how can i make it.

Thank you for your potential help.

where i can find exemples for PXI-2564 relay module

$
0
0

hello,

 

I'm beginner in PXI module using.

I bought a PXI solution for use it as a custom instrument.
My aim is to read RTDs and command some line using relays.
So i take the system below:

NI PXIe 1071

    PXI-8100

    PXIe-4357

    PXI-2564

 

I can see all the material on NI MAX.
In MAX, i can read RTD a channel value and can operate relays.

i have read and practice exercice on "Getting started with Labview RT module" and all it works,But i don't find any resources or exemple to deal with relay card or read RTD.

I have try to access it using "visa connect" and this step works, but what must i do to go further.

In a first time i want to swap relay position, by reading position, invert value ,set position and return the value.

And for RDT i'll want to make a simple measure and make a average a N measure for 1 or all input.

 

Can you give me some exemple or trick?

 

Best regards

 


is it possible to get the serial number from external C++ code?

$
0
0

Hi,

 

I have a C++ library called by a CLF in the LabVIEW RT from my cRIO. I am trying to use the cRIO serial number in my C++ code for licensing purposes. Is it possible to get the cRIO serial number using the C++ API?

 

I found information on how to do this from LabVIEW itself (http://digital.ni.com/public.nsf/allkb/74924FEE303440998625727D005197FA), but it would be really helpful to be able to do it from the C++ code.

 

Thanks in advance!

espec MC-811P don't connect with PC via RS 232 rs 485 converter

$
0
0

Hello all,

I'm having some difficulties setting up and RS485 link with a climate control chamber from ESPEC.
It is a MC-811P climate chamber. The climate chamber has two male DB9 connectors on the outside, apparently used for linking multiple RS485 chambers together.

The pinout of the DB9 RS485 intrerface connector is:
1: SD+ Transmission data (A) Connected
2: SD- Transmission data (B) Connected
3: RD+ Reception data (A) Connected
4: RD- Reception data (B) Connected
5: GND Ground Connected
6: GND Ground Connected
7: NC (Not connected) Not connected
8: NC (Not connected) Not connected
9: NC (Not connected) Not connected

I have bought a RS-232-to-485 interface converter . This converter also has a male DB9 interface but the pinout is different.
1: Data -
2: Data+
3: -
4: -
5: GND
6: -
7: -
8: -
9: -

So - the pinouts do not match and I see different signal names on both interfaces.

Am I correct in assuming that I should only make the following connections:

Converter 485 to ESPEC climate chamber
1 2, 4
2 1,3
3 not connected
4 not connected
5 5,6
6 not connected
7 not connected
8 not connected
9 not connected

Are there some special things I need to do to get this setup to work?
I'm using LabVIEW as my programming language to try and control the climate chamber.
I'm especially not sure how I need to set up to get everything working...
In the ESPEC documentation I could find that the communication system used is "Synchronized modulation (four-wire, half duplexing)".

What is ni579x?

$
0
0

In our lab we use ni9146 for realtime io (rio).

In MAX and in the project explorer this device shows as NI-NI9146-01893549

without a warning sign.

Connecting this HW to another computer (which shall become the development computer)

and opening the project on this machine the project explorer shows a warning sign next to NI-NI9146-01893549.

Could you help me finding out the source of the problem?

 

My guess is that some driver isn't correctly installed. May this be related to ni579x as

the tools->INSTRUMENTS->drivers menu on the lab computer shows

- Agilent 34401 and

- NI579x

whereas the same on the desired develop computer shows only

- Agilent 34401?

 

This is what NIMax shows on the lab computer where ni9146 works well :

 

 

laborrechnerLabViewSoftwareModules2.png

 

 This is what NIMax shows on the desired development computer:

DevelopComputerNIMax.png

 

 

Thank you!

 

 

 

 

for New Instrument Driver, can I encapsulate Serial Interface?

$
0
0

  I'm creating a new LabVIEW Driver for a new instrument that uses a Serial Interface. The Instrument has a SCPI library and I use that for control and communication. The hitch is that the Instrument defaults to a Terminal Mode (including Echos). I need to initiate Serial Communication and Send a "SCPI" mode command which also stops the 'Echo' reaction. After that I can Send & Recieve information just like a traditional SCPI instrument.

  Because an Instrument Reset or some Instrument errors can cause the Instrument to drop back into Terminal Mode without notifying the software, I find it necessary to monitor all communication for a "Terminal" like reaction and restore "SCPI" mode if required.

  My solution to this problem is to encapsulate all actual communication in a "Communication Handler" that keeps track of the Serial Port in use and handles any error conditions internally. Because of this, any actual commands (VIs) that I create for the Driver do not need VISA Resource Inputs or Outputs as the actual VISA Resource is encapsulated in the Communication Handler which is only given the actual SCPI Command for processing.

 There are other advantages to the Communication Handler such as easier Communication Logging and cleaner Block Diagrams that contain the command VIs.

 

 My big question is: Is it OK to handle Serial Communication in this manner in a LabVIEW Driver that I will eventually submit to NI for approval?

 

 Thanks,

  Tom Highfield (CLD)

Serial Communication with multiple temp controllers

$
0
0

Hello,

 

     I’m trying to read the process value from 7 Omron E5CK temp controllers.  I’m new to LabView especially working with serial communication.  The VI.  I created does work but it’s horribly slow, I can only imagine that there is an easier way to read the values.  Basically I just copied the “Read Proccess Value VI” seven times and tossed in a waveform chart and a write to file.  Ideally I would like to take one sample of the values every 30 min. and write to an excel spread sheet.  I’m measuring values of multiple large water tanks that change temp very slowly so speed is not a concern I just want to create a reliable VI that can run for days at a time.  There has got to be a more efficient way of doing this.  Eventually I would like to expand to 14 controllers.  The Controllers can work with RS-232C and RS-485 communication.  Any help or tips on cleaning up my VI would be greatly appreciated. 

 

Thank you for your help.

Chad

 

Process Value 7 Controllers.jpg

Viewing all 5670 articles
Browse latest View live