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

HP 6632A - set voltage - Labwindows CVI

$
0
0

Hello everyone,

 

I am trying to set the voltage of HP 6632A using Labwindows CVI. The initialization succeeds (1) if no id query and no reset command is send and fails (2) if both is send (Bus error occurred during transfer) (see update below); alos when I try to configure/set the output using the function below, I get an error code BFFF0038 - Bus Error occurred during transfer (1) or BFFF000E  - Invalid session handle (2).

 

I checked tha MAX and the GPIB address there matches with what is shown on the power supply. It also responds to the id query there.  I am using the Instrument driver provided by NI to talk to the device through USB-GPIB converter from NI.

 

Am I missing a step here? Do I need to configure the device in a certain way before using it?

 

Thanks!

 

 

// Initialization (sending Id request and reset command)
    int error_int = hpe363xa_init( "GPIB::0", VI_ON, VI_ON, &g_instrumentHandle1 );
    char error_string[100];
    Fmt( error_string, "%x", error_int );

    MessagePopup( "Return Value Init", error_string );  // <- ERROR BFFF0038  Bus error occurred during transfer

// Config to enable output
    error_int = hpe363xa_configOutput3632( g_instrumentHandle1, VI_OFF );
	
    Fmt( error_string, "%x", error_int );
    MessagePopup( "Return Value Config", error_string );  // <- ERROR BFFF000E  Invalid session handle

// Set Voltage to 12 V	
    error_int = hpe363xa_outputSetOperate3632( g_instrumentHandle1, VI_OFF, 12.0, 1.0, VI_ON );
	
    Fmt( error_string, "%x", error_int );
    MessagePopup( "Return Value Set", error_string );  // <- ERROR BFFF000E  Invalid session handle

 

 

 

Device: HP 6632A DC Power Supply via Labwindows CVI.

Connection: NI GPIB-USB connection cable

Driver: Labwindows Plug&Play

Language: Labwindows 2013

OS: Windows 7

 

Edit1:

I just realized that I am not sending an id query and an reset command when initializing the device. I updated the code above. Unfortunately I get an error code if I do this and the devicehandle is not set! The set functions following are failing subsequently.

 

 

 

 

 


eaton module download

$
0
0

Hello,

 

I am completely new to LabView and setting up instrument controls. I don't know which drivers I need to install to run my Eaton ELC control board using LabView. Also, if there is an example VI with that uses an Eaton board, that would also be very much appreciated.

 

Thanks,

Matt

Spiricon Beamgage LabVIEW Automation - 2D numeric data

$
0
0
Hello..  I am trying to read the 2D numeric data (array) from the Beamgage GUI that represents the beam profile image. 
I modified the LabVIEW TotalPeak example by using Automation interface IAFrame - DoubleData function, the result was 1D data (array).
As i am interested in complete 2D data, anyone tried to read the complete 2D numeric data from Beamgage automation? Any suggestions please..
Thank you.. Smiley Happy
 

 

Where to get decl-32.h?

LeCroy Waverunner 640Zi -- Multistage Trigger

$
0
0

Has anyone written anything for multistage triggering for this scope? i.e. trigger on CH1 on a falling edge & then on CH2 on a rising edge. 

Manually, it works great. Now just hoping to automate this.

 

By adding in persistance, this become a very powerful trigger method.

 

Thanks

 

Quicker 34401A reads

$
0
0

I am attempting to use the standard library single point read to measure current. Everything is working fine except that it is way too slow for our application. The 34401 datasheet says it can read 1000 readings / second and store 512 readings in memory.

 

we are getting about 3 readings / sec.  I tried the Read (Multiple Points) to see if it was faster and I am still getting about 3 reads per second.

 

What can be done to speed this up? I would like at least 20-30 reads per second

 

Thanks

myRIO Serial Connection Using UART Pins

$
0
0

Hi,

 

I'm trying to read some incoming data through the UART pins of the myRIO. The incoming data is in the form of hexdecimal, and I was following a tutorial (https://decibel.ni.com/content/docs/DOC-39303), but when I ran the attached program (SerialWriteandRead), no data was being read.

 

Is there a command I can use to check if the connection is working? I have tried "dmesg", but I don't know what to look for in the list. If the connection isn't there, what should I do? If it is there, how can I read the data?

 

Also, I'm not sure if it's relevant, but I've only connected the UART RX/TX ports and ground. Is power necessary too? If so, what pins should I connect the 3.3V pin of the myRIO to on the Raspberry Pi?

 

I have been struggling with this problem for a while and would be very grateful for any help.

 

Thanks,

Mark

*RST doesnt't work

$
0
0

HI everybody,

 

I work with R&S FSW8 signal & spectrum analyzer and I have problem with communication through LV. When I use he MAX and try to do almost every command, everything looks good, but in LV when I try to do *RST  or SYSTemSmiley TongueRESet command with GPIB write VI, nothing happens. But as I said in MAX it woks properly. Do anybody happen to know where could be a problem? 

Many thanks for any feedback


Arduino MyRIO communication via UART

$
0
0

Hi,

 

I am trying to realize the data communication between MyRIO1900 and Arduino via UART.

UART interface on Arduino Uno is under 16MHz clock.

 

The UART for myRIO can only set the Baud Rate. However if the frequency is different from Arduino, the connection will not be built.

 

How do I adjust the frequency of MyRIO UART? What is the default frequency of MyRIO UART? Where can I find that parameter?

Labview 13.0f2(64-bit) In VISA example -- Commande = Response

$
0
0

Hello,

 

I'm trying to develop an automated calibration system for the PTB220 digital barometer. Right now I'm trying to test the barometer with the example provided here :  Help ->Find examples ... ->Hardware Input and Output -> Serial -> Continuous serial write and read. I fill in the parameters and when i execute a commande the response is exactly the same as the commande fro example if I ask it to continuously provide me with the pressure using the "r" commande I get as a result the letter "r" continuously printing instead of the pressure.

 

Another thing : the barometer works with the Hyperterminal.

 

PTB220 documentation : https://www.mesonet.org/files/instruments/VAISALA_PTB220_UserGuide.pdf

RS232 to USB converter : Edgeport 4

 

Thanks.

 

How does the "Read Status Byte" work in the VISA test panel?

$
0
0

I'm currently trying to replace an HP-85 with a modern computer running VB.NET, which will communicate with an HP 3421A. Unfortunately the 3421A was created before SCPI was created, so I believe the commands I am able to send are dictated by what the 3421A lists in the manual (http://exodus.poly.edu/~kurt/manuals/manuals/HP%20Agilent/HP%203421A%20Operation,%20Programming%20%20&%20Configuration.pdf).

 

The commands I'm trying to use to troubleshoot are "DCV", which reads a voltage, and "SR", which returns 24 different registers, with register 1 being the status byte. When I write "DCV" and then read, it returns a correct voltage. When I write "DCV" and click "Read Status Byte" in the VISA panel, it lets me know that data is available to be read and when I read it returns a correct voltage. When I write "DCV", then "SR" and then read, it returns 24 different bytes, with the first byte being the status register, but it doesn't recognize the "DCV" command from before and the status byte is now 0, which leads me to believe that it's overwriting the "DCV" command from before.

 

How can I mimic the functionality of the "Read Status Byte" button in the VISA panel? How does this work on instruments created before SCPI was implemented? Sending "*STB?\n" doesn't work. I am new to instrumentation so if I left out some necessary information please let me know. 

Arduino MyRIO UART Issue

$
0
0

Hello

 

I am doing the Arduino to MyRIO communication via UART

The transmitter is the arduino which keep sending 0x68  and the MyRIO is the receiver

The baude rate and data frame are set the same to both side.

 

The receiver can read out the length of the message showing 1  (on number sent only, therefore the length is also 1)

 

The problem is the character is not displayed (it is always 0)

 

 

I attached the code of arduino and the myRIO vi. 

 

Is there anybody giving some solution for that?

input for expression in VISA find resource to detect RS-232 and RS-422 separately

$
0
0

Hi All,

Does anyone know how to detect only RS-232 ports and only RS-422 ports using find resource or anyother way. 

how to remove unsupported software to install the official version on win7

$
0
0

There were a couple of similar posts but not specific to Win7. We have an app that uses the GPIB-USB-HS and ran on Win XP.  We ae migrating the app to Win7.  I installed the drivers/sw that came with the device for XP on the Win7 PC.  The device was not recognized in Win7 so I get version 15.0 of the sw and started to install it.  I gor the error that I needed to uninstall unsupported sw.  The error info was cleanvista (even though I'm running on Win7, not Vista).  Got on the NI website, downloaded the vistacleanuptool.  I uninstalled the old NI sw through the control panel, ran the vistacleanuptool, and it said "Windows Vista was detected.  You do not need to run this tool".  OK, I rebooted anyway, tried to install the latest drivers/sw for the GPIB-USB-HS, got the same error about removing unsuported sw first.  So I am stuck, can't load the new sw until I uninstall the old, can't uninstall the old even though it looks like it's unintsalled (not shown as an installed program in control panel, can't uninstall it with the vistacelanuptool).  Can anyone help with this?  Thanks.

Agilent Oscilloscope DSO 2002A

$
0
0

Hi everyone!!

 

How to measure maximum voltage of channel 1 and channel 2 simultaneously. when I try to do that, both output are showing channel 1 voltage only. could you please help me?? 


Keithley 2600 and labview

$
0
0

Hey all,

 

I am currently trying to set our Labview-Keithley interface. I have Keithley 2604B which is similar to the 2600 series.

I am dealing with FET devices and I will need to characterize them.

 

I would need to contniously supply voltage from both channels and measure the  current from one of the channels . Also I would need to sweep the channel potential  in  one of the channels while I measure the  the current from the both channels ((Typical I-V curve with a gate)).

 

Does anyone can share with me the .VI file that he/she created for this task?  Any help will be appricieated.

 

I know that the Keithley comes with internal TSP script but I need more than that therefore I would like to use LabView.

 

I have already set up a diffenet interface in between Keithley 2400 to labview, but the interface of 2600 is totally different (not the same communication).

 

Thank you for the help!

 

Communicaiton between Eurotherm 3208 (RS485) and computer via USB-

$
0
0
Hi, I need connect an Eurotherm 3208 (RS485) to computer via NI USB-485 converter. What I tried (Eurotherm 3208 with RS485 and NI 485-USB): 1. Following Eurotherm manual, shorting USB-485 pin4 and pin 8 connecting to HE Rx of 3208; shorting USB-485 pin5 and pin 9 connecting to HF Tx of 3208; attach 220 ohm resistor between HE and HF; connect USB-485 pin 1 to HD Com of Eurotherm 3208, but it does not work. Measurement & Automation Explorer can write (I think to USB-485 only) but cannot read from the controller. 2. Following Eurotherm manual and [NI]: 371253e, shorting USB-485 pin4 and pin 8 connecting to HE Rx of 3208; shorting USB-485 pin5 and pin 9 connecting to HF Tx of 3208; attach 220 ohm resistor between HE and HF; shorting USB-485 pin 2 and pin 3, shorting USB-485 pin 6 and pin 7; connect USB-485 pin 1 to HD Com of Eurotherm 3208, but it does not work. Measurement & Automation Explorer can write (I think to USB-485 only) but cannot read from the controller. 3. So shall I try without the 220ohm resistor? 4. And what are the right settings in Measurement & Automation Explorer? Shall I change the default settings in Measurement & Automation Explorer? Generally, I need know what the correct connections between 3208 (3 wires) and USB-485 (9 pins) are and how to communicate between 3208 and computer. Thanks a lot.

Reading Commands from SoMachine Software

$
0
0

I'm working to possibly control a Schneider Electric M258 Logic Controller with LabVIEW. I was planning on using SoMachine software (to connect directly to the PLC) to access the command code libraries that the logic controller uses to alter heaters, pistons, etc. Then, I would employ those command codes through various sub-VIs in LabVIEW to have the ability to control those heaters as well. After speaking with a Schneider Electric representative, he does not think LabVIEW will be able to employ these command codes to communicate with the logic controller. Has anyone used SoMachine before? Anyone think why LabVIEW would or would not be able to control the logic controller with those command codes?

agilent86100a

$
0
0

Hi,

Im running labview2015 along with the agilent86100a scope. All I want to do is have a continuous measurement and I was happy to find that there is a driver with an example that can help me do exactly that. 

The problem is that Im getting error1 all the time, on all example vi`s. 

Its important to note that the scope responds to AUT and IDN commands so I dont think the problem is in the driver.

Could anyone please help sort it out?

Im attaching 4 pics in a zip file to clarify.

 

Thanks!|
Vitali

GPIB PCI configuration

$
0
0

HI,

 

We have an old ISA GPIB board working with a production machine. The card is setup wirh IRQ and adresses.

 

We tried to replace this board by a PCI GPIB but we are unable to set the same parameters.

 

Is there a way to set these parameters in a PCI GPIB?

 

See photos of your ISA Board.

We have a PCI GPIB Card (778930-01)20150723_124039_resized.jpg20150723_124047_resized.jpg20150723_124056_resized.jpg

 

Bests Regards,

 

AN

 

 

 

Viewing all 5667 articles
Browse latest View live


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