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

VISA finds a non-existing port...

$
0
0

Hello,

 

We have replaced our old lab computer by a new model and used the opportunity to also move to a more current operating system (from Win XP to Win 7 64 bit) and to the current version of CVI (2013 SP2), its runtime engine, and all the device drivers (latest 2014 versions of VISA...).

 

Unfortunately, this broke an old software because of the following error message:

 

VISA error: insufficient location information or the device or resource is not present in the system.

 

After some investigations it turned out that the source of this problem is the call to

 

viFindRsrc ( resource_manager_handle, "ASRL[0-9]*::?*INSTR", &find_handle, &return_count, instrument_descriptor );

and

status = viFindNext ( find_handle, instrument_descriptor );

 

because LPT 1 is included in the list of serial devices although it does not exist physically. So trying to open the port fails with the above mentioned error.

 

MAX has the same problem, it lists LPT 1 but with a red cross, indicating that it is unable to open it. Windows device manager does not show LPT.

 

So, my conclusion would be that this is a bug in VISA... Am I wrong, is it a know bug, is there a know workaround?

 

Thanks!


Visual C/C++ code/Labview code for interfacing NI Hardware

$
0
0

Hi,

 i need Visual C/C++ code/Labview code for interfacing NI Hardware and sample project example.

Error -1073807346 in SR830

$
0
0

Hi,

 

I am using SR830 driver provided in NI website.I have modified it to Serial Communication as the one provided is for GPIB.

When i run the examples with the change mentioned,i get the error in all the exapmles.

Lan to GPIB Controller software impact

$
0
0

I wrote a Labview program on a PC wiht an inernal GPIB Controller card to control a GPIB Electronic Load using NI VISA and vendor supplied Labview VIs that use NI VISA.  I now have to implement the same program on a laptop using a LAN to GPIB Converter from NI to talk to the Electronic Load. 

 

What is the difference in how this LAN to GPIB device gets programmed verses a direct gpib controller for the same instrument?  Is the code that I have written already not usable?  Do I have to write direct TCP/IP Commands now out of my Labview program?

Configuration WLS-9234 sous Windows 7

$
0
0

Hi,

 

I'm facing a lot of trouble trying to connect my NI WLS-9234 to my computer...

 

I followed the tutorial http://www.ni.com/tutorial/8597/en/ but as my computer is running under Windows 7, I had to change a few things regarding the configuration of the wireless connection.

 

Using the ethernet cable of the WLS-9234, I managed to configure the ethernet and wireless connection

Capture.JPG

 

But once I remove the Ethernet cable, the connection is not anymore established...

Capture.JPG

 

My computer is running with Windows 7 and here is the list of the NI software installed on my laptop

Capture.JPG

 

Do you know where I could look to make everything working ?

 

Thanks for your help,

Sylvain

GPIB IEEE materiel années 80

$
0
0

Bonjour,

 

Y a t il des problème connus de compatibilité entre les vieux matèriels ( années 80)

et les nouvelles interfaces IEEE ( USB-HS)

 

Actuellement cela tourne sur un vieux PC en emulation DOS

 

 

Merci

SMC100pp rotation stage

$
0
0

Hello,

 

I am trying to program a Newport SMC100PP controller to run a Newport TRA6PPD linear actuator to move a Newport 481 rotation stage.

My goal with this program is to have the stage move at a slow velocity form designated point 1 to point 2 while reading out the absolute position.

 

The program that i have written is having a problem. Every time i try and run the program i get an "Error on reset - Timeout" error and the light on the front panel of the SMC100pp controller reads solid green as if the system is ready to go.

 

In the code below i have the top part which simply reads the motor position and time and saves that to a txt file. The top part is necessary because it is a reduced set of code for the rest of an instrument i want to incorporate this rotation stage into. The bottom code is my program where i am trying to 1st initialize the step motor, 2nd enter/modify controller velocity on command part way through a larger experiment once i see some preliminary data and 3rd execute the programed controller movement on command as the last part of a larger experiment to finish the experiment.

 

Included below is my labview error message, picture of the program and the program vi.

How can I make NI Labview communicate with my N5181 A LAN Interface?

$
0
0

hai every one i have doubt How can NI Labview communicate with N5181 A using LAN Interface?

 

is it possibe to communicate with LAN???

define procedure and steps for interfacing with the instruments and  i have max,insrtument drivers and is there any need of another software for instrumrnt control with labview and ip address of pc and instrument shoulld be match for communication or not???


Serial VISA 'Write' -why is it slow to return even with large buffer?

$
0
0

Hi,

 

I'm writing a serial data transfer code 'module' that will run 'in the background' on a cRIO-9014.  I'm a bit perplexed about how VISA write in particular seems to work.

 

What I'm seeing is that the VISA Write takes about 177ms to 'return' from a 4096 byte write, even though my write buffer has been set to >> 4096.

 

My expectation would be that the write completes near instantly as long as the VISA driver available buffer space is greater than the bytes waiting to be written, and that the write function would only 'slow down' up to the defined VISA timeout value if there was no room in the buffer.

 

As such, I thought it would be possible to 'pre-load' the transmit buffer at a high rate, then, by careful selection of the time-out value relative to the baud rate, it would self-throttle once the buffer fills up?

 

Based on my testing this is not the case, which leaves me wondering:

 

a) If you try to set the transmit buffer to an unsupported value, will you get an error?

b) Assuming 'yes' to a, what the heck is the purpose of the serial write buffer? I see no difference running with serial buffer size == data chunk size and serial buffer size >> data chunk size??

VISA Interactive Control

$
0
0

GPIB-USB-HS+を接続し、VISA Interactive Controlを使ってGPIBインタフェース機器と通信試験をしています。

サービスリクエスト(SRQ)の状態をVISA Interactive Control上で知る方法はあるでしょうか?

Julabo labview driver serial communication problems

$
0
0

Hi All,

 

I am trying to communicate with a Julabo heater controller via an RS485 serial port using LabVIEW. There is a LabVIEW driver that can be found at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=D1216BF0E8613C89E0440021287E65E6 . I am using a USB to serial converter provided by kksystems http://www.aa-kkemail.co.uk/kk-files/usb485.pdf and I have wired a patch cable to match the RS485 connection on page 79 of the Juabo manual (attaached) to the RS485 2-wire connection for the USB to Serial converter, and I keep getting this error, "Error - 1073807252: Overrun error". Can anyone please tell me what I need to do to resolve this?

New to instrument control: attempting control of E5062A with GPIB cable and C program

$
0
0

Hey everyone!

 

I'm lost as where to start controlling an instrument we have in the lab.

 

I'll give you my setup:

 

It is a VNA, agilent/keysight E5062A.

 

Controller is a desktop server running RHEL 5.

 

I have a GPIB Cable.

Program needs to be written into C so that it can be incorporated into the test program we are using.

 

I have the programmers manual but it doesn't tell me much on how to start. It does tell me how to set the instrument(E5062A) gpib address. 

I've also gathered that i will need some sort of I/O library, VISA or SCPI?

 

Thank you for taking the time to read this!

 

programmers manual link, take a look at chapter two

http://anlage.umd.edu/Microwave%20Measurements%20for%20Personal%20Web%20Site/E5062A_Programmers_Guide_E5061-90042.pdf

NI USB-8452 - Interfacing with 3-wire SPI

$
0
0

Hi,

I am using NI USB-8452 (master) and would like to communicate with a sensor (slave) using SPI.The SPI bus of NI USB-8452 is a four-wire, full-duplex serial interface. The sensor I want to communicate with has, however, a three-wire SPI (half-duplex interface). This means that it uses single bidirectional data line instead of two unidirectional ones (MOSI and MISO). 

Can I configure NI USB-8452 to interface to a half-duplex 3-wire SPI Slave device ? How should I connect the sensor to NI USB-8452 ?

 

Thanks in advance!

Regards,

Damien

How can read the mouse (optical ps/2) signal?

$
0
0

Dear All

How can the LabView read the mouse (optical ps/2) signal, and deal with it as input signal to be able to used the mouse signal to specify DaNI robot position?

How can I check if an RTSI cable is installed?

$
0
0

I recently inherited a project in my lab group which had been inactive for over two years that requires synchronizing a PCIe-1433 frame grabber and a PCIe-6353 DAQ device. I plan on doing so by using the PCIe-1433 as the master clock and connecting them with an RTSI cable.

 

When I started, both of these cards were already installed on the computer and I can see from archived purchasing orders that an RTSI cable for 2 cards had been ordered. However, I'm not sure if the cable was installed with the cards. In NI MAX, I can see the cards and get functionality from them, but I do not see a device for the RTSI cable. Additionally, there is a third device that I don't recognize. It appears as ASRL10::INSTR "LPT1" and NI MAX says that it was unable to open a VISA session for it.

 

Is there a way to check if the RTSI cable is installed and connecting the two cards without unscrewing my computer's tower?


ENET/100 causes host computer to power on

$
0
0

I have an ENET/100 in a separate rack from my host computer connect via ethernet.  When power is applied to the rack containing the ENET/100, the host computer in the other rack powers on.  I have disabled all the wake on LAN options.  Any ideas?

VISA skips certain commands

$
0
0

I'm writing a small automation script for a Tektronix DSA8200 Oscilloscope. Part of my script involves setting up the MATH channels 1-4 and setting their vertical position and scale. Then, it's supposed to set reference 1 to math1. However, the scope has been skipping these steps. I've used NI I/O Trace to make sure that the commands are being sent without error, which they are. They just don't actually happen on the scope. I am able to use the NI communicator to manually run the operations after the script has completed, and they work just fine. I've tried setting "*WAI" all around my different commands trying to see if there's a SYNC issue, but it's done nothing. What could be happening? 

 

I've included my nitrace file in case that helps at all. 

Wrong reading operation with viRead() - CVI

$
0
0

I am trying to read trace points through a spectrum analyzer (Agilent (HP) 8563E). It is pretty old, by the way.

 

When using the test panel to get the traces, I get all data points from just one click on the "Read" button.

 

However, using C on CVI, I am getting only 11 bytes per reading operation:

 

sprintf(buffer_file,"TDF P;TRA?\n");
status = viWrite(instr, (ViBuf)buffer_file, strlen(buffer_file), &retCount);

/* for (bit = 0; bit < 50; bit++)
{
status = viRead(instr, (ViBuf)buffer_file, strlen(buffer_file), &retCount);
printf("%s\n", buffer_file);
}

 

I tried to put a for loop just to see what happens. When performing successive read operations, I get 11 bytes per reading, while I was expecting to get all traces points by one reading operation. The print screen of the results are attached.

 

Also, I was clearing the buffers before writing/reading.

 

I am using GPIB (VISA). Any help will be appreciated. 

 

Thanks!

 

GPIB-USB-HS is not recognized properly in NI MAX and cannot be found in NI VISA resource

$
0
0

Hi there,

 

I am using a Lenovo T400 laptop with Windows XP SP3 and NI 488.2 14.0 installed on it. I plugged GPIB-USB-HS into the laptop. It can be found in Device manager normally but it cannot be recognized correctly in NI MAX. Besides, it cannot be found in NI VISA resource either. Please see attached picture. i have reinstalled NI 488.2 and NI VISA. The problem is still there. Any advice please? Thanks a lot.

 

Sincerely,

James

serial communication

$
0
0

Hi All, 

 

I have been trying to communicate serially with a mass flow controller (Alicat MC series). I can successfully do this using a terminal (RealTerm). However when I try to do this on labview I am getting no feedback. What I'm trying to do is set up a loop that writes then reads the changes caused by the command. I have followed the basic serial read and write template with no success, and I have also tried using the NI MAX application for testing, and I have had no luck using that either. It claims to successfully write but then says the device is timed out. I tried increasing the time out number but still no luck. I am thinking this is a software issue because I can successfully communicate using a terminal. I have verified that my connections work and I have all the right settings i.e. baud rate, parity, etc. I have attached my program, if there are any errors that anyone can point out, that would be appreciated. 

Viewing all 5664 articles
Browse latest View live


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