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

VISA and GPIB

$
0
0

Hi all,

  It seems that all example code found online to use VISA to write to GPIB will send string (command and data). I wonder if this is how it design or we can change that to use binary data instead? Now to send 100 8-bit data (ranged from 100 to 200), I have to converted 3 character for each number so it will be at least 3 times more than sending the binary data.


Labview and Microcontroller interfacing

$
0
0
Hi. I have written a simple program for my microcontroller so that when character A is sent, one of the output ports turns high. I am trying to establish a serial communication between microcontroller and labview using "Basic serial Read and Write.vi" and DB9 serial port. I have checked the serial commutation using loop-back test with labview and i am able write and read the characters over serial communication, but still my microcintroller is not responding when i try to write certain string character. Labview is not displaying any error. NI- VISA is working fine. Is there any limitation in using microcontroller? or i have to use specific microcontroller for this purpose? Please help.

Serial read termination character

$
0
0

Hi all

I want to read an array of 2500bytes from serial port with bouad rate set to 2,000,000 bit/sec. I'm supposed to have 2500 bytes 100 times in every seccond ((2000000/8)/2500) but I just have it 3 or 4 times in a seccond... what should I do?

I can upload the VI if you wish.

cRIO 9014 USB-Serial Convertor

$
0
0

I would like to use a USB to serial convertor to drive an inteligent OLED display from 4D Systems. My problem is that I want to do this from a compact RIO and there doesn't seem to be any inbuilt support for the interface I'm using. Is there an approved interface or should I find an alternative solution.

delphi and USB-GPIB Adaptor

$
0
0

Hi,

I have experiment with "Agilent 33220A 20 MHz Waveform Generator" and computer using USB-GPIB Adaptor.

I need to use Borland  Delphi 7 to read data from 33220a.

How can I do this?


I need .dll, but I don't have. Where can i download?



I thank any information.
Acosta.

LeCroy LT344L, MAX, IVI and the Ethernet connection

$
0
0

Howdy!

 

I've installed the NI's lcltxxxx IVI driver for the LeCroy LT344L scope.

 

IVI Compliance Package: 4.5

MAX 5.4.0f0

 

I want to use an ethernet connection, but the "Resource descriptor" selection box does not offer an ethernet resource (see attached picture).

 

Using LeCroy's ScopeExplorer software confirms a working communication between PC and scope.

I am not using both programm (MAX + ScopeExplorer) at the same time.

 

 

Thanks for help!

 

 

motorized elevator

$
0
0

Hello,

I would like to build a motorized mini lift that I can control by labview with serial cable.

The simple idea is the link below

 

http://en.wikipedia.org/wiki/Linear_actuator

 

Please can you help me how to choose the right motor, how to connect it to the screw ring and the most important how can I send the command between the computer and the motor.

 

Thanks for your help

 

PS: I have to mention I am chemist

errError; [Code = 10109] Control HW Communications Disabled with thorlabs BSC101 andmotorized filter wheel FW103/M

$
0
0

Hi everybody!

 

I want to communicate to my thorlabs motor with labview but it's don't work whereas with APTuser its work.

I put you the pictures of my program I did and error's pictures in attachements.

 

Thx you


"IVI simulation class driver" does not appear in "Simulate With" option of Driver Session

$
0
0

Hi All,

 

I've developp a custom IVI class driver name "clsStaticAO", and from this class I've created 2 specific drivers which works really fine. I just want to create a simulated class driver for my class "clsStaticAO".

I followed the instructions localted here:

http://www.ni.com/white-paper/3199/en/

 

Now, My simulated classe driver appears under the category "Simulation Driver Software Module". Unfortunatly when I want to create a new "session driver" and make it to point on my simulated driver ("Simulate With" option), my simulated class driver does not appears.

 

The screen shot attached to this question, will show the details of what is missing?

 

Thanks for you answer.

 

 

 

NI MAX not detecting instrument properly

$
0
0

Hello,

 

I have an HP 5350B frequency counter and I have been working with it for automating some measurements. It has an HPIB port on the rear of the cabinet. This is the only instrument connected to the computer at this moment. When I go to NI measurement and automation explorer and scan for instruments I get multiple instruments instead of one (as shown in the screenshot attached). Also none of these detected instruments seem to understand the '*idn?' command as it gives an error while reading from the instrument.

 

What can I do to establish communication with this instrument?

 

I would really appreciate comments on this.

 

Thank You,

 

Vivek

Extension capability not supported by instrument(Temperature)

$
0
0

I am using IVI driver to communicate to Keithley 2750  and read temperature from thermocouple,Type-K sensor.

I get an error -30717 (Extension capability not supported by Instrument(Temperature) when trying to read temperature.

 

I am able to read voltage,current and resistance directly by configuring IVI DMM from NI TestStand.

 

Please not that I have configured instrument for measuring voltage,current and resistance successfully. So I believe the initial set up and configuration are alright.

 

However I am not sure if this error is because of me not configuring the IVI step in correct order. I have attached screenshots of step configuration that I do.

 

Please provide any suggestions.

 

I have already posted this issue in Keithley forums. I have not heard from them yet.

 

Please find screenshots attached.

Please find the link for driver that I am using here: http://www.keithley.com/support/data?asset=52764

 

Thanks

Sahithi

My installed devices do not show up in MAX

$
0
0

I have installed several device drivers via the "find instrument driver" utility in labview 2012.  I do not have them hooked up to the computer so I would like to simulate them; but when I go into MAX, only one of them shows up in the Driver Sessions area.  Where are all the rest?  When I go back into "find instrument driver" they all show up as installed.

NI 9146 as modbus slave ?

$
0
0

Is is possible to configure a NI 9146 ethernet expansion chassis as a modbus slave ?

serial ports of the NI 9871 also appear in MAX alongside the built-in serial port(s) of the target under Devices and Interfaces --DOES NOT?? NO NI 9871 (Scan Interface)??

$
0
0

 Hi -- Have cRIO

 

Can anyone help me get the  NI 9871 (Scan Interface) Working??  My Two 9477 and two 9425 and 9403, function with the Scan Interface.  In MAX > Software > NI-Serial RT 3.82 > NI-Serial 9870 and 9871 Scan Engine Suport 3.8.2, BUT NO == MAX > Devices and Interfaces >  Serial & Parallel === NO Com Ports for 9871 listed?   In Project,  4-Port RS485 NI 9871 is there in slot1?  Any help appreciated  thanks

 

 

serial ports of the NI 9871 also appear in MAX alongside the built-in serial port(s) of the target under Devices and Interfaces

 

NI 9871 (Scan Interface)

NI-RIO Software Help 4.0

Edition Date: August 2011

Part Number: 373197B-01

»View Product Info

CompactRIO Serial 4-Port, RS485/RS422 Module

Programming Overview

Serial Port Information


In order to use the NI 9871 in Scan Interface mode, you must have NI-Serial RT with Scan Engine Support installed on the RT target. Use MAX to install NI-RIO on the RT target. If you use a Recommended Software Set, select NI Scan Engine, which includes NI-Serial 9870 and 9871 Scan Engine Support, on the Add-on Selection dialog box of the installer. If you do a custom install, select NI-Serial 9870 and 9871 Scan Engine Support as a sub-item of NI-Serial RT on theFeatures dialog box of the installer.

To put the NI 9871 in Scan Interface mode, add it to your project directly under the chassis item. The serial ports of the NI 9871 appear as selectable VISA I/O items that you can use in RT VIs. Use VISA resource name constants and controls to change properties, read from, and write to the ports as if they were built into the RT target. The serial ports of the NI 9871 also appear in MAX alongside the built-in serial port(s) of the target under Devices and Interfaces.

 

How labview treat multiple devices handle number?

$
0
0

Hi All,

 

 I am controling several SPI-to-USB adapters via Labview. Each device can be detected through serial number and then a handle is grabed, this handle (an integer number, say 0 or 1, etc) will be used for the following steps. However, it seems that sometimes different devices have the same handle number. But amazingly, as long as I keep the handle open, it will always control the corresponding device until I close the handle. I am wondering how exactly the Labview use the same handle numbers to control different devices?  Many thanks!

 

 

Kevin 


Adaptation of LIFA (LabVIEW Interface For Arduino) to other Arduino compatible boards

$
0
0

Hello evryone,

 

 I am trying to use a ''Sakura board", which is an Arduino compatible board, having similar programming as Arduino. This board is manufactured by Renesas; more specifications on it can be found on the following link: http://sakuraboard.net/gr-sakura_en.html

What I would like to know, is if the firmware used for LIFA to interface Arduino with labview, or the ChipKit firmaware, can be used to this kind of Arduino compatible boards.

My aim, is to use the Sakura Board for acquiring signals from various pins(Be it digital or analog), and setting other pins (Digital) parralelly, using labVIEW, as this is done using LIFA, or LabVIEW interface for ChiKit!!

 

Thanks in advance for your support.

task initialization thorough serial com port

$
0
0

I want to initiate a task by passing a string suppose "y" (from serial port) and it should remains active until vi doesn't receive another string suppose "n". Please tell me how can I do it?

Simple code in VB6 to control Chroma AC power supplier throigh GPIB

$
0
0

Hi there,

 

I am a totally newbie in VB6 (just have a little background in C).

Anyways, I want to write a simple code in VB6 to send commands out through GPIB to control a chroma AC power supplier. Can anyone show me how?

 

 

thanks.

help? Instrument I/O!

$
0
0

hello!

I'm come from Vietnam, I want to send 2 numbers via RS232 (roll and pitch angles to simulate the quadrotor), what I want is when labview receive the first packet number( temporary call them are x1,y1) and simulate 3D model, then it receive and simulate next packet (x2,y2;then x3,y3,...). Now, it does not separate 2 packet. what function that I need to use?

I use Labview 2011, Pic C compiler, and proteus.

please answer me in here or gmail: sung.tq@gmail.com

thanks!

RIGOL DS2072 - USB NI-VISA Initialization Error

$
0
0

Hi all,

I'm trying to configure my RIGOL DS2072 oscilloscope to work with LabView through USB, but I'm can't seem to figure it out.

I have LabView 2013 Evaluation on Windows 8 x64, NI-VISA 5.4 and also got Rigol's software UltraSigma (to retrieve printscreens which works fine).

I'm using the LabView examples for DS2000 series and when I run any of them, LabView just hangs and I cannot stop the program unless I disconnect the USB cable. After I reconnect the cable and re-run the VI I get this error.

−1073807240The value of some parameter (which parameter is not known) is invalid

 

The error gets triggered from 'VISA Clear' module which, from what I've read, it clears the devices read/write buffers (http://zone.ni.com/reference/en-XX/help/371361H-01/lvinstio/visa_clear/)

This is similar to this person's issue, but I have the latest NI-VISA and it didn't fix it. - https://decibel.ni.com/content/message/46529

 

Also i've noticed that those DS2000 series example from the NI website have not been specifically tested for DS2072. This may be a reason, but I would assume that they all have similar configurations. 

 

Just to be sure that the program works, I've connected through LAN cable and it worked fine. Now to me it seems that NI-VISA has some issues with my type of oscilloscope. Can anyone look into this for me. I'd really appreciate your help. 

 

Thank you

Dragos.

Viewing all 5674 articles
Browse latest View live


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