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

Troubling connecting to Masterflex pump (07551-20)

$
0
0

Hi everyone,

 

I am very new to NI and Labview so please bear with me. I have inherited a piece of LabView coding from a former colleague, and I am having trouble getting the hardware running.

The hardware I have is NI PXIe-1082 and Masterflex peristaltic pump (07551-20) and I am connecting the hardware together via RS232. I have tried using NI MAX and a loop-back test to test for communication, however I did not get a response from the device.

If I am asking the right questions here:

1. is the coding suitable for the application?

2. How can I check if there is a communication between the devices?

I have attached the VI and manual of the pump in the attechment.

Any help will be appreciated and thank you in advance.

Thanks


Andor ixon emccd depth of field.

$
0
0

Hi, 

First of all, I do not know if this is the correct place to ask this question. 

I am using Andor ixon 897 EMCCD camera with a regular lens from Edmund Optics. I want to calculate the depth of field (DoF) of this design.  I have found some depth of field (DOF)  calculators on the internet for specific cameras on the market. However, none of them provides information about the camera I use. Do any of you know how to deal with this problem? Any help would be appreciated. 

 

Thank you in advance. 

Reseting GPIB Device in LabVIEW

$
0
0

Hi All,

I am working with a test setup in which I have to unplug and replug my GPIB-USB-HS converter fairly regularly. Whenever I do, I get Error 28, "The Interface Lost Power," when I try to restart my VI.  I can clear this error by restarting my laptop or by resetting the device in NI MAX, but that is a pain.  Can I send the same reset messages as are sent by NI MAX from LabVIEW?  I have tried the ResetSys GPIB function, but it does not work.

 

Alternatively, is there a way I can put the GPIB-USB-HS in a safe/shutdown state when my VI terminates?

 

Any help would be greatly appreciated.

What's the difference between Viread in VC and VB?

$
0
0

 

In VB,the  "VISA32.DLL" Declare is

Declare Function viRead Lib "VISA32.DLL" Alias "#256" (ByVal vi As Integer, ByVal Buffer As String, ByVal count As Integer, ByRef retCount As Integer) As Integer

and use like 

viread(vi ,String,count ,retCount

 

In VC,

#include <visa.h>

and use like 

  viRead(vi, (UCHAR *)buf(), bufSize, &actual);

 

 

Buffer in VB is a String,but in VC is a  Integer array.

Why?

Keysight 82357B can't use NI_VISA runtime

$
0
0

     I use Rohde & Schwarz FSEA30 and Keysight  82357B USBGPIB converter. Now there are a few questions

    1, My VISA program can't connection instrument. when use NI_VISA runtime. but use Keysight  IO library it can work.

    2,vireadtofile just only read 4096  bytes.

         I try set readbuf of VISA,

       status = viSetBuf(vi, VI_READ_BUF, 4096) 
       status = viSetBuf(vi, VI_WRITE_BUF, 4096) 

       status = viReadToFile(vi, "D:\YouName.WMF", 4096, retCount)

        but the result still is “#572676淄茪” 

How to connect two GPIB?

$
0
0

   I use Agilent 4352b(a Signal Analyze) and 8664A(a Signal generator).4352b connect  8664A through a GPIB.

  Now I want to connect 4352b through Keysight 82357B (a GPIBtoUSB converter) .

  I search out some GPIB port :

  GPIB0::16::INSTR

  GPIB0::17::0::IINSTR

 GPIB0::17::1::IINSTR

 GPIB0::17::13::IINSTR

  GPIB0::17::14::IINSTR

  GPIB0::17::15::IINSTR

  GPIB0::17::16::IINSTR

   but they all can't connect !

  why?

Gw INSTEK AFG-2125 API: is it possible change frequency without activate sweep?

$
0
0

I've installed the driver and downloaded the library for my Gw Instek AFG-2125 and now I want change the frequency of a sine wave from my VI panel but the only solution I found is to activate the sweep parameter and modify the start and stop frequency at the same value. Can anyone tell me if I'm doing right?

Another question is how can I change the input impedance from 50 Ohm to High-Z?

Thanks.

 

How to enable 4 wire mode with Keithley 2401 in labviewNXG

$
0
0

Hello all,

 

I am new to labviewNXG and need assistance with programming a Keithley 2401 in 4 wire mode. When i select the "sweep" template it automatically puts my instrument into 2 wire mode and I can't seem to find a way to change it. 

Any insights would be greatly appreciated.


PCI-GPIB Windows 2000 NT Hardware Drivers

$
0
0

I'm trying to connect up an PCI-GPIB card into a computer running an old OS (Windows 2000 SP 4). It does need to be the old OS, due to the software I need to run on it. I've tried installing both NI-488.2 1.3 and 1.2, and whilst both install, the hardware still says it's missing the drivers. When I try to get it to install the drivers from the folders created when installing NI488.2 it is unable to locate the drivers. Has anyone any advice or guidance on what I'm doing wrong or why this isn't working?

USB 6008, NI-DAQmq 16, LabVIEW 2011- not DAQ Assistant, no connecting USB

$
0
0

Good day!

Please, help my!

Есть USB 6008, NI-DAQmq 16, LabVIEW 2011. В блок-панели почему-то нет установленного DAQ Assistant. Был Instrument I/O Assistant, но он указывал на ошибку при установке.

Я проверил по списку установленных компонентов, не было NI-VISA. Скачал и установил.  DAQ не появился, но Instrument I/O Assistant начал требовать данные по устройству, не замечая соединение по USB.

Подскажите, как действовать?

Заранее благодарен всем, кто что-нибудь подскажет!

Need DOS Drivers

$
0
0

Hi, I am trying to recompile an old DOS program and I need to get drivers from that era.  The comment in the code says it requires National Instruments GPIB interface the second version.  And the code is looking for the decl.h header file.  Can someone help me find them?

 

 

PCI-GPIB Card stoped working

$
0
0

Hello Everybody,

 

I am current working with the LabView version 17 and controlling all my devices with a PCI-GPIB card. So I change my card from a computer with windows XP to a computer with windows 10. I install all the drives and my programs worked. But I need to use again the old XP computer, so I change again the card. When I tried to control the programs with the XP I didn’t have any connection between the computer and my devices. So I change again my card to the windows 10. The windows recognised at PID-GIP card (I used the NI-max) but when I connected my devices it disappeared. I reinstall the drivers, reset the NI-Max, and try to use the card in another computer, it didn’t work.   

When I analyse the card, it looked to have a small burn photo in attachment.

 

Anyone have any idea of what is happening?

Thank all for the help

How can I connect a temperature controller RS-485 with a DAQ?

$
0
0

I have a problem, I need connect a temperature controller with LabVIEW but my problem is how because I need read temperature and time of the controller Yudian AI-518 and send it set points too. I don't know how it is possible because Yudian doesn't give me a driver for LabVIEW.

I need to change Visa on Labview and can't find where

$
0
0

Hi,

The code isn't mine and I have a slight different device (scope) to connect to the computer (with different Visa number)
Don't know how to find the Visa in the block diagram.
Would appreciate if you could advice with some instructional photos.


Thanks

Example VI for Keithley 2000 is not working

$
0
0

 Hello, 

 

I should note that I am fairly new to Labview, I respectfully ask for your patience. 

 

My goal:

Use the Keithley 2000 to take remote DCV measurements from a shunt resistor every second and log these values for later use. We plan to setup a VI to do this for us, utilizing the instrument drivers. I decided to first see if I could even take a single measurement using the NI example code downloaded directly for NI in link 1 (provided below). I am having trouble completing this task.

 

Before you ask, I have installed all required drivers recommended by NI; NI max, NI serial, NI 488.2, etc. 

 

My Setup:

-Keithly 2000 DMM

-RS232 to USB connection (Serial)

-Windows 10 PC

-Labview 11.0 (2011)

-Plug and Play drivers

 

What I have done:

I first read through and followed the guidance found in link 2 (provided below). Then I read through setting up the Keithley for remote readings as specified from the manufacturers user manual, and also mirrored those specifications in the Labview VI (baud rate, flow control, etc.). I also setup NI max to reflect these specifications (although I don't know what that really does). I then launched the example code "Read Single.VI" and errors starting popping out. I have remedied most of these pesky errors (I think, sometimes I wonder if error out says "ok"--but really isn't). The error I cannot figure out comes when the operation gets to the subVI named "Wait for SRQ": this error comes in two parts, one for both Labview and the DMM.

 

Error in labview - 1073807339 - <ERR> _ke2000 Wait for SRQ: A timeout occurred while waiting for a service request from the instrument. This could mean that your instrument did not have time to take all of the measurements or that an error occurred previously. (I assume the latter because no error to my knowledge and observation occurred previously).

 

Error on DMM - Error 363 - Input buffer overun

 

Thank you kindly for taking the time to guide me through to victory, cheers.

 

Best,

David

Physics Undergraduate

 

Links:

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

2: https://forums.ni.com/t5/Digital-Multimeters-DMMs-and/keithley-2000/td-p/2520264


stepper motor - 2 functions of stepper write

$
0
0

Hello everybody,

 

I am new in Labview  and I have a problem in my program.

I explain, in my state named "acquiring data": my first function "stepper write" works but the second "stepper write" does not work. I do not know why? 

 

Can someone help me please . 

 

Thank you in advance for your answers 

 

Ngoc-Vinh Truong

Simultanous sourcing and measuing using Keithley 2611A for FET testing

$
0
0

 

Hi,
 
I am Lorenzo, a graduate student from University of the Philippines. We are currently using Keithley 2611A. It is possible to simultaneously supply voltage and measure current using the said instrument? We are trying to test our field effect transistor and planning to supply gate voltage (Vg) from (Hi and Lo terminals) and measure contact resistance (Va, Vb) from (SHi and SLo). Please see attached schematic diagram. Thank you very much
 
P.S. The supplied current (Isd) from source to drain will be coming from a separate power supply.

Communicating with ISO-TECH IPS-2010

$
0
0

So, I have an annoying issue with communicating with this power supply. 

 

I have an ISO-TCH IPS-2010 power supply and would like to be able to control it completely from LabVIEW. I've made a quick library (attached) and the VIs for writing voltage and current to the power supply work. I can send commands via VISA write to the COM port and the screen on the power supply shows the updates to the voltage and current. 

 

However, I don't seem to be able to get anything back from VISA read. For example, sending the command "V<cr>" should get the power supply to send the output voltage back. I use a Visa property node after writing this command and the bytes at the serial port property returns "0" and so any read function with a non-zero bytes to read will (and has) time(d) out. 

 

I should add that I am connecting using a usb to serial hub if that might be a cause.

 

So my question is: 

Are there any common traps I may have fallen into?

Has anyone else tried communicating with this device before and did it work?

Any ideas for ways to fix this?

 

Appreciate any help.

 

 

control of AC induction motor through VFD

$
0
0

 want to control centrifugal pump flow speed that is used in a system for cooling( same like HVAC).  I have the labview example in labview examples (Attached). In this example rotor frequency is controlled and accordingly motor speed is controlled, this ac motor can be connected to pump and its flow speed can be controlled.

i want to use this example for 3000 RPM 3 phase ac induction motor. what should i change in this example for that..please help me.. thanks in advance

External Labview control for AD9959 evaluation board

$
0
0

Dear all,

 

I want to control the phase, frequency and amplitude of a 4 channel sine wave signal generator (AD9959/PCBZ- Evaluation board). For that, I want to use labview. But I am facing hardtime connecting my board with labview. I am basically following the reference given below for setting the frequencies using the labview. 

 

https://forums.ni.com/t5/Example-Program-Drafts/AD9959-Set-channel-frequency-with-LabView/ta-p/3538921

 

Unfortunately, I could not find LabView library written by MIT group. step 1. and also not able to access it. If anyone has the Libray or the content of this link please kindly share here. It would be an enormous help.  

 

Attached  the sample labview files.

 

Best regards

 

tahmed

Viewing all 5564 articles
Browse latest View live


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