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

entre un USB GPIB HS et HS+, lequel est mieux?

$
0
0

Sachant que je vais connecter une SMU sur mon PC pour faire l'acquisition de données, est il préférable d'utiliser un GPIB USB HS ou un GPIB USB HS+ ( contient un analyseur) ?

Est ce que cette nouvelle fonctionalité du GPIB HS+ ( analyseur intégré ) va bien marcher sachant qu'actualement j'ai une version sans analyseur et que ça fonctionne super bien.

Merci d'avance.


Requesting help in finding windows IVI driver for Thermostream - Temptronics ATS-545 M9

$
0
0

I am using the Temptronics ATS-545 M9 instrument. I am in currently in process of automating the Thermo-stream.  To do this activity we need windows IVI driver for Thermostream - Temptronics ATS-545 M9. I heard Instrument model TP04310 and ATS-545-M-9 both are same. I found CVI drivers. But i need IVI C/IVICOM drivers for my purpose to integrate to python code.

 

Thanks in advance!!

comunicación con puerto rs232

$
0
0

Buenos Días, Necesito algo de ayuda, estoy trabajando en un proyecto donde necesito comunicar un baño termostático a un PC mediante puerto rs232, y poder realizar el control del mismo, este equipo trae un software que realiza el control pero no es lo que yo necesito, además, tengo un indicador controlador de pH, el cual monitorea el pH del proceso y me permite controlar el pH del medio mediante una señal electrica que me acciona una bomba dosificadora, este equipo trae una salida analogica de 4 voltios mediante la cual se puede monitoriar la variación del pH, mi intención es unificar en un solo programa (VI) el control del baño termostático, la lectura de la temperatura y el indicador controlador de pH, pero no he podido realizar la comunicación mediante el puerto rs232.

 

Agradeceria algo de ayuda.

 

Un saludo,

Douglas

List available of viStatus errorcodes?

$
0
0

Hello,

my c++ program is using instrument drivers that return viStatus.

Where can i find a list of what this error means in detail?

In this case the returned number is -1074130544.

 

In the Visa help i only find errornumbers that start with -1073807xxx

 

Thanks

BR

Problem in Labview connecting to Bluetooth module

$
0
0

Hello, anyone please help me how to connect to a bluetooth module(here i'm using HC-05) with Labview.

without connecting any bluetooth adapter to the pc.I have connected two bluetooth to two hardware devices,

so that i need to read the data from both the bluetooth modules,and it will be stored in a file.

Please anyone guide me how to do it.Is anyone having the Vi,please mail me p.chandu.416@gmail.com.

Thank you in advance

how to perform a screen capture from DPO7000 ?

$
0
0

I would like to perform a screen capture from oscilloscope DPO7000 ?

file -> Save as --> screen capture. and fix extension in *.png.

 

i do the acquire waveform but it's not interresting for my board test.

 

Have you an idea ?

 

thank you

 

 

 

 

9914 - MAX

$
0
0

I have a device designed around the 9914 ASIC, it hase been used successfully for several years however when trying to detect the device in MAX it detects the Listen command but does not receive any information.  It appears max simply sends the listen command to detect if something is on the bus at that address.  Can somone provide a method of detecting this operation to enable the interface to correctly handle this scenario.  Note that the unit was used in an ATE which did not perform the listen activity described so I am confident that the implemented design correctly trnsfers data.

Fluigent devices not being read in NI-MAX, with USB what should I do?

$
0
0

I believe that I have the latest drivers for Labview, and Windows can read them fine with no problems.  However, they don't show up in NIMAX.  Not sure what else to provide here.

 

I also can't find the ausbtmc.sys file, which I think I need.


Problem using 2 instruments with GPIB

$
0
0

Hello everybody,

 

I'm working in a program with LabView 2015 that control 2 instruments, the Rohde & Schwarz Smiq02b signal generator, and the Agilent EXA n9010a spectrum analyzer. I'm using the Agilent-82357B USB/GPIB cable to connect my laptop with these two instruments (PC -> EXA -> SMIQ). I've also installed both instruments drivers from their official websites.

 

The program worked properly until I had to format my computer and install LabView again but something is wrong now.


The problem comes when I run the program, the SMIQ02b can't initialize, the program stops and opens a new block diagram window. This block diagram belongs to a block of the instrument driver, inside this block diagram there is a VISA Write block blinking.

db.png

This only happens when I'm initializing two instruments in the same program, if I create a new VI and use the SMIQ only, I have no problems.

 

I don't know what's going on, It's very strange that it worked well before and now this happens.

 

This is what I've installed in my laptop:

- LabView 2015
- NI Device Drivers (Included NI-VISA 14.0 and NI-488.2 14.0)

- Agilent IO Libraries Suite 17.1 (Configured as secondary VISA)

- NI-VISA Passport for tulip ON

 

I'll be very thankful if somebody could help me with this.

 

Thanks!

 

 

PXI-2575 Switch multiple connections

$
0
0

Greetings,

 

I'm writing software to one simple test system which uses PXI-2575 to connect measurement device (e.g. DMM) to measured channel. I want to connect e.g. CH0 to CH4, but whatever I try, an exception occurs. Is it really true that I need to use NI-Switch to perform what I need by controlling individual relays?

 

This might be a newbie question but couldn't find an answer from google, IVI-, or NI-website.

NI cRIO-9871 serial communication problems

$
0
0

Hi,

 

I'm using NI cRIO-9871 RS485/RS422 Serial Interface Module with NI cRIO-9064 integrated controller and chassis to communice with Modbus power meter.

While testing the communication I am not able to read data from the meter. It appears there are some issues with serial communication.
 
To find the issue I have checked several points.
 
1. According to NI C Series Module Compatibility Chart cRIO-9871 is supported in FPGA and Scan mode, for all cRIO platforms. 
So there are no any compatibility issues.

2. I have tested the module with the provided example for FPGA (NI-987x Serial Loopback). While testing it was not giving any errors while writing data, but was not reading sent data.
 
3. I have tested the module in Scan mode with example provided for the serial communication (Simple Serial.vi). It was writing successfully, but was giving Timeout error while reading.
 
4. I have tried also to test data transmission with MAX Visa Test Panel. And again it was writing data without errors, but while reading it was giving Timeout error.
 
Please, let me know what can be the reason of serial communication problems.
 
Thanks,
Arev
 

NI 488.2 can support VS2013?

$
0
0

I have add reference "NationalIstruments.NI4882", but can't coding 488.2 command. please see below picture.

 

NI4882.png

My OS is WIN 7 64 bit, VS2013, MAX v15.0.0f0, upgrate to new version.

 

Below is my code, can't to build, NI488 code can't complete compile.

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Ivi.Visa.Interop; //VisaComLib
using NationalInstruments.NI4882;
using NationalInstruments.VisaNS;

namespace xxx
{
    class Program
    {
      private MessageBasedSession mbSession;

        static void Main(string[] args)            

        {
          int noncontroller;
          char[] buffer = new char[100];
          int panelHandle;
            //Open  session to the GPIB board
            noncontroller = ibfind ("gpib0");

            //Release system control
            ibrsc(noncontroller, 0);

            //Change GPIB primary address from 0 to 2
            ibpad(noncontroller, 2);

            while(true)
            {
                //Update status variable
                ibwait(noncontroller, 0);

                //Wait until non-controller is listener and ATN line is dropped.
                if ((ibsta&LACS)&&(!(ibsta&ATN)))
                {
                    ibrd(noncontroller, buffer, 100); // Read data bytes
                    buffer[ibcnt] = '\n'; //Add linefeed and 0 to string
                    buffer[ibcnt + 1] = 0;
                    Console.WriteLine("Buffer Value{0}", buffer);
                    //printf("%s", buffer); // Print buffer for C
                    return;
                }
            }
        }
    }
}

 

 

 

Serial communication is not working or keeps disconnecting

$
0
0

Hello everyone,

 

I’ve encountered an issue with using the Basler camera (Basler ace acA2040-180km NIR). For some reason I am not able to establish/maintain the serial connection to the camera using e.g. Pylon viewer. Other than that, the camera works fine and I can acquire data as usual, however I cannot change the parameters like exposure time or area of interest.

 

Used Hardware & Software

 

Hardware

 

  • NI PCIe 1473R Camera Link Frame Grabber With FPGA Image Processing
  • Basler acA2040-180kmNIR Camera Link camera with the CMOSIS CMV4000 CMOS

 

Software

 

  • Pylon 5 Camera Software Suite for Windows (version 5.0.0)
  • LabVIEW 2014 SP1
  • LabVIEW 2015

 

Where it all started

 

The whole imaging system is connected to an isolation transformer as a safety precaution. During standard image acquisition, power went off in the lab thus shutting everything down. After the power came back online, I started the computer and wasn’t able to establish a serial communication to the camera anymore (using Pylon viewer from Basler).

 

Troubleshooting so far

 

  1. As we have another almost identical setup with the same frame grabber (NI PCIe 1473R) and camera, it was easy to switch my camera to the second system and confirm that I can establish a serial connection to the camera as usual and change parameters.
  2. I’ve also used the examples provided by LabVIEW (for example 1-tap 10-bit Camera with Frame Trigger) and the serial connection didn't work either which means that the LabVIEW code itself is not the problem.
  3. When I initialize the NI MAX and go to Tools -> NI Vision -> Select CLSerNAT systems, the camera is not showing up even after pressing the update button and only shows localhost
  4. The FPGA code includes the 2 Serial interface loops and Host VI has the SerialServer subvi with no alterations. When I run the host VI and open Pylon viewer, I can see that the serial connection does not stay connected and when you try to scan available cameras with Pylon Viewer, the serial connection only stays on for a short period of time (Connected boolean indicator in serialserver.vi flips green for a second or so). With the second system, upon opening the Pylon viewer, the serial server stays connected with the camera and you’re able to see the camera in the device tree in Pylon viewer and access the camera parameters.
  5. When I use the Pylon CL Configurator, it detects the FlexRIO port but gives a message: “The stream is not a CLPort registry stream since it is missing the magic GUID in the first line”. And as an intermediate user I have no idea what the message is about.

ni_post.png

 

Long story short

 

The serial communication between the PC and the camera is not working and for some reason Pylon viewer is not able to detect the camera. I’m so baffled myself why this is not working so if someone can shed light on this mystery I'd be grateful.

 

Best,

 

Kari Vienola

connect a stm32f401 board

$
0
0

HI, i'm a beginner, i have a Stm32f401 nucleo board connected to my pc with a USB cable type A to mini-B, can i comunicate with this board with LabView?

can i read in LabView signals from this board? (like the pressure of the button that i have on my board, and can i count it?)

have i to install some drivers,  or something else ?

THanks for the attention.  

My NI-MAX doesn't communicate with instruments

$
0
0

Hello,

 

I have a question on NI-MAX and Instruments.

When I open NI-MAX, it does see PCI-GPIB "GPIB0" under Devices and Interfaces, but it doesn't communicate with any my instruments like Agilent 34970A or California Instrument CSW5550... I tried to replace different GPIB cables and GPIB cards, but still not communicated.  Please help

 

Thanks

 

CN


Tektronix MSO2014b - connection drop-out

$
0
0

Hi Everybody -

 

I am running LV2015x86 on Win10, connecting to a Tektronix oscilloscop, MSO 2014B using NI-VISA 15.0.

 

The MSO has the latest firmware (v 1.52) and will work for me, through configuration of timebase, channels, etc, and reading waveforms and various measurements. All works fine.

 

However, there will occur an error while reading from the MSO (measurements, no waveforms) wherein an error is flagged and it will no longer re-connect. The error I receive and capture shortly after it occurs is:

 

Error -1073807339 occurred at VISA Read in Tektronix DPO MSO 2000 4000 Series.lvlib:Error Query.vi->Tektronix DPO MSO 2000 4000 Series.lvlib:Fetch Waveform Measurement.vi->MSO2014B_connect.vi->sub_MSO_getWaveforms.vi->Main.vi
 
Possible reason(s):
 
VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
 
 
I'm not sure where the timeout is occuring or what is generating it, but it doesn't appear regular or consistent with anything I do. Which is why it all seems to work fine and then eventually stops.
 
The device itself hasn't been 'tested' by NI, as per the infromation regarding the instrument drivers (not to be confused with IVI drivers - tried those; not fully functional and doesn't quite work).
 
Has anybody come across this kind of thing and/or can recommend a suggestion on what may be happening?
 
I have attached a snippet of the code (FGV) where the error appears to be occuring. I believe the read error occurs at the first read (of the two there), at the first selection box. This is because the indexed cluster array of the For loop comes up empty. What I find incredibly confusing is that the empty empty isn't captured until the FGV has been closed (and I test it the same way straight out of the subVI).
 
I have included various captures in my code so it doesn't look pretty.
 
To give you context on what is being done:
* a stepper motor moves an RF sensor
- for each of the 3 channels:
* I read in the Vpp of the waveform on the MSO
* check to see if the Vpp is within the vertical range - adjust if not
* read in Vpp and other measurements I had selected prior to starting test
* move stepper to next position
* repeat
 

how to control the time base of agilent MSOx 2014 oscilloscope using labview?

$
0
0

Hi im beginer to labview and doing serieal interfacing Agilent MSOX-2014A oscilloscope to pc.could you give me some information how to controll the time base and setting?

 

compact RIO 9068 and GPIB

$
0
0

I have a Compact Rio 9068 running the NI Linux Real-Time OS.  I wanted to attach a GPIB-USB-HS+ to add a GPIB interace to it.  My Problem is that I cant seem to install NI-488.2 on the 9068.  I have it installed on my computer, and in MAX I have the option to install 488.2 on a PXI controller I have, but It will not give me the option to install it on the Compact RIO chassis.  Is there no NI-488.2 for  the NI Linux Real-Time OS?  I cant seem to find anything about it in any documentation.

 

Thanks

 

Mike

Which temperature sensor with diameter smaller than four millimeters and for measuring water temperature in thin tubes?

$
0
0

Hello to the NI-Community,

 

We are looking for temperature sensors in order to measure water temperature (from 5 to 50°C) in thin tubes. We are thinking about using a T-piece in order to bring the sensor perpendicular in the tube. The sensor should have a diameter smaller as 4millimeters in order to get into the tube opening.

 

Can you please help us to find the right one? Somehow I could not find the informations I was needing on NI products website so I am trying it this way.

 

Thank you in advance.

 

Clement

Beuth Hochschule für Technik Berlin

 

 

HP/Aligent 33120a single burst of a sine with modulated amplitude

$
0
0

Hello everybody, 

 

I´ve been trying to generate a single burst signal consisting of a sine with modulated amplitude. I can generate either the burst signal or the sine with the modulated amplitude, but separately. My gold is to merge the two steps to produce the kind of signal that I want. It should look like the attached figure. My question would be if that is even possible to make with the Aligent 33120a, and most importantly, how. 

 

I´ve been trying to make a VI in Labview to produce this signal, but it doesn´t work. But i guess that is a question for later. 

 

Thank you for your answers

 

 

 

Viewing all 5676 articles
Browse latest View live


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