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

SR830 Lock-In does not show up on NI MAX

$
0
0

I am currently trying to connect a SR830 Lock-In Amplifier to my computer with the help of a GPIB. I installed all drivers but it does not show up on either NI MAX or LabVIEW. I am wondering if I need to tell the Lock-In that it is controlled through the GPIB (I had to do something similar to a function generator). I know that the GPIB driver is installed correctly because I can connect other instruments and run them in LAbVIEW, just not the SR830 Lock-In.

 

I am using a GPIB-USB-HS (driver 14.0.0.49152), LabVIEW 2014, Windows 7 Enterprise. I am relatively new to this whole thign, so I appreciate an easy-to-understand answer, please.

 

I attached a screenshot of the NI MAX, I am seeing at the moment. 

 

Thanks!

 


Ocean Optics Flame Sepctrometer with Labview drivers

$
0
0

I am successfully using the NI drivers "Ocean Optics 4000 2000" to control multiple OO spectrometers. Have recently acquired their new "flame" model but I don't find it in the list of supported spectrmeters. Do anyone know if it can be controlled using the drivers or if there will be a fix soon?

SR830 GPIB Driver to RS232 driver

$
0
0

I am using the SR830 driver from the link below(Labview 2012),

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=240C113D3165071BE0440003BA7CCD71

 

I tried converting the GPIB driver to RS232 driver by replaving GPIB Write,Read with Serial Write,Read.Also by adding the the serial setting(Baud,Parity etc) at the Initialize vi.

 

After this when the run the Vi,i get ERROR-1074003951.The error says "The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you have selected the correct instrument and it is responding, try disabling the ID Query.."

 

Please guide me.I wanted the Initialse to happen successfully,as without this vi all other Vis are failing.

Where are the NI Visa references for use in .Net applications

$
0
0

 I want to use NI Visa in my C# .net application but can't find the references mentioned as required in this article (/http://www.ni.com/tutorial/2739/en), namely NationalInstruments.Common and NationalInstruments.VisaNS

 

From http://www.ni.com/download/ni-visa-14.0/4722/en/ I downloaded  NIVISA1400full_downloader.exe, installed it, rebooted the workstation.  I did find the reference to NationalInstruments.Common but not  NationalInstruments.VisaNS .

 

Is there an updated example of NI-Visa with .Net, did I install the incorrect NI-Visa components?

What is the best method to query for older GPIB equipment with ID? and newer with *IDN?

$
0
0

Good day,

 

I am writing a test executive where it needs to scan the bus for support of older (HP/Agilent 856x series) and newer (Agilent 440x and 444x series) spectrum analyzers. *NOTE* I originally posted this question in my NI Community blog. I apologize for redundancy but someone recommended I re-post here.

 

IDN and ID query.jpg

The first frame looks for the newer analyzers with *IDN? then if that fails sets the boolean in the error cluster to TRUE. The next frame then uses the error cluster's boolean to decide whether an older HP analzer is connected instead using ID? query. Disclaimer: the second frame is a clone of the ID query of the 856x Initialize VI. I just want to use what already worked - no reinventing the same wheel?

 

But, lo and behold, it doesn't work as expected. If I have the frames in this order and connect a HP8563E the GPIB time's out error. This code works with the newer 4407 or 4440 since the *IDN? query passes and the second frame is not executed.

 

Now, when I move the second frame to become the first frame and run it with HP8563E the query works but will have a GPIB timeout if I have the 4407 or 4440 connected.

 

Long story short, how do I support both older GPIB ID? and newer IDN? in my code?

 

I have attached the query VI created with LV 2012.

 

Many thanks!

Aldrin

Combine 2 computers ea with GPIB-USB-HS connected to different calibrators into one system

$
0
0

I’ve got 2 separate systems: Computer A fitted with a GPIB-USB_HS+ controller and connected to a calibrator A and bench multimeter A, and Computer B fitted with a GPIB-USB_HS+ controller and connected to calibrator B and bench multimeter B. To enable computer A to gain access to calibrator B and bench multimeter B (and visa versa) I want to interconnect the 2 systems with a GPIB cable. Will it work?

¿Porque no me aparecen los puertos COM disponibles en el Boton Refresh del Visa Resource name, cuando tengo por lo menos unos disponible?

$
0
0

Estoy haciendo una aplicacion gsm por medio de un puerto COM, resulta que al momento de conectar el puerto, la maquina si me lo reconoce, pero ne LabView, con un control "Visa Resource Name" quiero seleccionarlo, y no me aparece. ¿Cómo resuelvo esto?

Connecting Arduino to an CRIO

$
0
0

How can I connect an Arduino to a CRIO?

Serial Communication via the RS232 Port?

Is it possible to connect just the TX and RX?

 

Is there another option?

Are there solutions using different CRIO modules?


Keitheley USB GPIB visa write returned vi_error_rsrc_nfound

$
0
0

I am new to Labview and currently running evaluation 2014 Ver 14.0f1 (64-bit) on laptop running windows 7 pro 64 bit.

I have installed the Keithley native NI driver but not the NI 488.2. and am having trouble finding example that does not required NI 488.2

 

I am able to controlled all three of my instruments ( Agilent 34980A, Data Precision 8200, HP 3458A) via the VISA Interactive Control.

The Devices show up as GPIB0::9::INSTR, GPIB0::20::INSTR, GPIB0::22::INSTR respectively and default IO setting was used except for HP 3458A where termination character needs to be checked . I was able to send ID? To get the device name and send voltage command to the DP, close / open swtich for the HP 3458A and readback voltage on the Agilent all via the VISAIC. 

 

whenever I tried to use labview to run VISA OPEN or VISA WRITE I get VI_ERROR_RSRC_NFOUND.

 

here's the trace from VISAIC where command worked just fine

Trace from VISAIC

  1. viWrite (GPIB0::9::INSTR (0x022981B8), "*IDN?.", 6, 6)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:09.133       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

  1. viRead (GPIB0::9::INSTR (0x022981B8), "Agilent Technologies,...", 1024, 59)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:09.179       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

  1. viWrite (GPIB0::9::INSTR (0x022981B8), "ROUT:CLOS (@1201,1601...", 27, 27)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:57.254       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

 

Attempt 1 using quick drop to find VISA open, clear, write( ID?), read

GPIB0::22::INSTR is set for the “VISA resource name” input control

Get error -1073807343 source “VISA Write in Untitled 2”

Trace from VISAIC

> 266. VISA Open ("GPIB0::22::INSTR", False, 0, 0, "GPIB0::22::INSTR")

> Process ID: 0x000023B4         Thread ID: 0x00001574

> Start Time: 10:41:26.914       Call Duration 00:00:00.002

> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)

 

Attempt 2 bypass the visa open and use the visa write (ID?)

Get error code -1073807343 and source “VISA Write in Untitled 2”

> 268. VISA Write ("GPIB0::22::INSTR", "ID?.", 0)

> Process ID: 0x000023B4         Thread ID: 0x00001574

> Start Time: 11:00:39.285       Call Duration 00:00:00.003

> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)

 

from the trace I can see viREAD and viWRITE will work but I can't find these vi anywhere. Does that mean VISAIC is not written in LABVIEW and these functions are only available in C++ or other programming language?

I was also able to use the function call found in GPIB.h to communicate with the instrument using ibdev, ibwrt, ibrd in c++ program so I am assuming the driver for the Keithley GPIB kusb-4448b is working.

 

 

Any help is appreciated

Mark

 

USB Serial Devices - Description and Information

$
0
0

Hello folks, I am trying to detect which kind of USB/Serial device is connected through Labview: through the VISA Find Resources i can list all the GPIB/ASRL devices connected and then through the Interfice Type i can detect the Serial/USB devices (interface number 4) and through the Interface Description I can get the name (COM7 for example).

Now my point is that if i look on the "Device Manager" in Windows i can see the "Manufacturer Name" and the "Device Description from BUS" of the Serial Device connected. Is there a way to get those information inside Labview?

 

Thanks in advance and best regards

 

Dario Cassaniti

Voltage control to control flow in MFC through USB6009

$
0
0

Hi People!!

 

Hope its going great!

 

Well I am learner in LabVIEW and been studying and researching about automating my simple situation... :smileyhappy:

My setup is really simple:

 

What I have is 2 Mass Flow Controllers from Bürkert Flow Control (Model - 8710). And they can be interfaced and controlled via simple Analog Inputs.

AlsoI have, NI USB6009 DAQ which has 2 analog outputs, which solve my purpose..

 

What I want to do, is to simply control the analog outputs into the MFC's simultaneously through two potentiometers (for instance on the front panel) to control the flow rate through MFC's.. The range in which I want to control the voltage is 0-5V..

 

Can somebody share a sample VI for reference in this regard just to get me started?? All I have reached upto is this VI which I am attaching!

 

I sincerely look forward to your support!

Thanks in advance!! :smileyhappy:

 

Regards

 

Pramit

comunicacion serial via bluetooth

$
0
0

Hola, estoy comenzando a ustilizar labview, tengo un programa en ARDUINO que via bluetooth emite la temperatura en tiempo real con un sensor LM35, mi codigo es el siguiente: 

 

#include <SoftwareSerial.h>
SoftwareSerial BT(1,0); // RX,TX
float tempC;
float tempF;
int tempPin=0;
int LED = 13;


void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
BT.begin(9600);
pinMode(LED,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:

tempC=analogRead(tempPin);


tempC = (5.0* tempC * 100)/1024.0;
tempF = (tempC * 1.8 + 32);
if (tempC >= 30)
{
Serial.print(tempC);
Serial.print(" C° ");

Serial.print(tempF);
Serial.println(" F° PELIGRO!!!");
digitalWrite(LED,HIGH);

delay(2000);
}


else
{


Serial.print(tempC);
Serial.print(" C° ");


Serial.print(tempF);
Serial.println(" F°");


digitalWrite(LED,LOW);
delay(2000);;
}


}

 

Con una App de android llamada Bluetooth Terminal puedo recivir los datos emitidos por arduino pero ¿como puedo recivir los datos por medio de labview? 

Vötsch VCL 7010 - ASCII-2 interface protocol

$
0
0

Hi !
I have some troubles communicating with my Vötsch VCL 7010 climatic chamber.
I would like to control it via TCP/IP protocol in LabView, and here is the problem : I am sendind what seems to be the right strings of command, the chamber response is 0<CR> as it should be, and if I ask for a setpoint of 70°C I have a setpoint of 70°C.

But the oven doesn't want to start.

Here is exactly the string I send :
$01E 0050.0 0000.0 0000.0 0000.0 0000.0 0000.0 01000000000000000000000000000000 <CR>

Does anybody have any ideas on the subject, or is there anyone who is using this type of chamber and is able to communicate with it ?

Another odd thing : all my programs worked with the VT 4004, and the protocol is apparently the same...

Here is the datasheet :
http://forums.ni.com/ni/attachments/ni/140/44043/1/PROTOCOLE%20RS%20232.pdf

GPIB-USB-HS - Agilent 3458A DVM - strange observation

$
0
0

Start situation:

 

 

a GPIB-USB HS hub connected to a laptop running LV 2013 is used to talk to ONE Agilent 3458 DMV. 

This configuration and a simple piece of code (VISA) works as expected. For instance, configure instrument, arm trigger and trigger data taking in order to acquire,  store and retrieve 100 points delivers 100 points as expected. 

 

Strange observation:

 

I use the exact same code, duplicate it to talk to TWO identical instruments (see attached file) and observe strange results. 

 

Both instruments are addressed through their corresponding GPIB addresses, are asked to perform the SAME tasks but deliver a different number of readings, although they are given the same commands. One instrument yields 160 to 170 points instead of 100, as instructed. The number of points available in the buffer of this particular instrument is indeed larger. This observation is consistent with the fact that the second instrument measures more points than instructed, as can be seen on the display panel.

 

I fail to understand why the same code would convince one instrument to measure 100 points and a different number for the other. If I swap GPIG addresses, instruments are swapped, but the channel reading more points than expected remains the same.

 

Hints and/or comments are welcome.

Regards, Philippe

 

Unexpected ECIC Error

$
0
0

We recently upgraded our PCs from Lenovo C20 to C30. Both are running Win7 64-bit, in combination with a NI GPIB card. We are currently using version 2.8 of the NI-488.2 library. All these PC's are used to communicate with different GPIB devices. C30 PC's is however raising unexpected GPIB CIC errors (Controller In Charge), during the communication with the devices. The same program has been running fine over many years on the C20 PC's without the CIC errors.

Here are some of my observations:

1. When the NI-SPY program is running the CIC error did not occur ever after 2 days. When the NI-Spy program was closed, the CIC error occured within a day.
2. I tried changing the IbaTiming config parameter from 350 ns to 2 us as suggested by one of the threads here. That didnt help.
3. I also the added the condition where If the CIC bit was not set, wait until the CIC was set or until it timeouts before calling the Send() and ReadByte() commands. See below code:

 

 if ((Ibsta & CIC) == 0)
 {
  OutputDebugString("Waiting for CIC or TIMO to be set");
  ibwait(nBoardID, (CIC | TIMO));
  if(Ibsta & TIMO)
  {
   OutputDebugString("Timeout Error Waiting for CIC");
  }
 }
 Sleep( 10 );
 Send( nBoardID, nDeviceAddress, ptrBuffer, lLength, nEOT );

 

I never saw the "Timeout Error Waiting for CIC" indicating that the CIC was surely set before calling the Send() or ReadByte() commands, neverthless I see the CIC error.

4. I also tried using ThreadIbsta() instead if Ibsta variable. But that didn't make any difference.

 

Does anyone have a suggestion or solution for this problem?

 

Thanks in advance,
SK


Control 34401A Multimeter

$
0
0

Using an USB RS232 Adapter from ATEN I would like to control the multimeter (HP now Keysight).

I've downloaded the instrument driver but the the example: read Single Measurement.vi doesn't work. (VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.)

 

I've tried using the MAX and the Visa Interactive Control. They return the same Error.

Any idea what's wrong?

I've checked the settings of the multimeter as well.

The only thing not configured in the VISA Program is the HP - IB ADDR.

 

Is this necessary?

 

Synchronizing data with visa read

$
0
0

Hello guys.

Sorry for the silly question.

I'm receiving, through my serial port, the following bit package: 0x80, 0x80, 0x00, 0x40. I receve this constant package every 1 second, with a baud rate of 115200.

The block diagram print screen is at the bottom of this post.

I just need to check out the package to verify that the first two bytes start with 1 and the last two with 0. When this condition is true, I want to turn on a led.

Problem is: the visa read/shift registers are receiving the data in a messed up way. It is randomly out of order. 

For example, sometimes the shift registers receive 0x00, 0x40, 0x80, 0x80, then another random combination.

How can I make the read data synchronized with the order of the package i'm receiving?

Thank you in advance :smileyhappy:

 

 

extra characters appearing when using VISA

$
0
0

Hi, I am new to labview and have a problem I've been working on for a few days. I am reading masses printed from a scale hooked up by a RS-232 to USB connection, with the ultimate goal of recording mass vs. time. Currently random letters appear in the mass at various times and cause the waveform chart to drop to zero, Looking at the signal using another program I am getting a constant  mass reading. Searching the forums I have not been able to find a way around this problem. Any help would be . I attached my current program to the bottom to better explain my predicament. 

How do I check if GPIB bus has available data using SPCI?

$
0
0

I am currently using the NationalInstruments.Common.Native.dll as the library in my Visual Studio 2010 project. I have working projects but something that drives me a little crazy is the fact that the program crashes (only with the oscillscope and not our VNA) when attempting to open the GPIB bus for the oscope before there is a 'capture' initiated on the scope iteself. 

 

Is there a "GpibDevice." query which I can run that will return a TRUE or FALSE whether there is a signal on the BUS? This way I can set a while loop pending the boolean result of the GpibDevice. query.

 

Thanks or any help.

how does tft lcd monitors work with cRIO%3F

$
0
0
How does a tft lcd monitors work with cRIO?
Viewing all 5661 articles
Browse latest View live


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