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

8903b

$
0
0

Hi

 

I have a 8903B audio analyzer and I am try to get it to communicate with my laptop using Labview via a Agilent 82357B USB/GPIB Interface but Labview can not find the analyzer, i found the correct driver for it but no luck yet

 

If anyone has any ideas please let me know

 

Regards

John


use serial pump labview back send

$
0
0

Hi.


I have a Cole Parmer pump, which accepts serial commands over DB-9 RS-232 (Manual attached as "ColePalmer-MasterFlex LS 7551-00 P3.pdf"). I have connected it to a laptop via a USB/Serial adaptor and I'm trying to send commands to it via MAX>>VISA Test Panel, or any other text interface for that matter. I can't communicate with it, except for one command.


Here's what I know/have done:

1- The manual specifies all the connection specifics: baud rate=4800 bps, 7 data bits, 1 stop bit, "one odd parity". "The serial data format is full duplex"

2- The manual provides a detailed description of a start up sequence.

3 - "Normal start up would consist of turning on all the satellite units first and then the control computer". This is not what I do (I don't want to restart my computer everytime I want to restart my work!) . I turn the pump on (keep it on), and then connect the RS-232 cable.

3 - "Each satellite will enable its receive and transmit buffers and activate its RTS line. The control computer would then send the enquire <ENQ> command in response to the active RTS line". Here satellite means a pump. I can send the <ENQ> command (ASCII 05, or CTRL+E in a text interface), and I receive "\x02P?0\r", which is the expected response. I do this in the VISA Test panel by writing "\05" to the port and reading the result. "\x02" is the "start of text" <STX> character and the response shows the kind of satellite at hand (here it's a 600 rpm pump).

4 - "The control computer would then send back <STX> Pnn<CR> with nn being a number starting with 01 for the first satellite and incrementing for each satellite up to 25 maximum". This is where it fails: I try sending "\02P01\r" in VISA Test panel and I don't get anything (well, I get "0xBFFF0015" Timeout expired before operation completed).

5 - The pump is supposed to perform other tasks after this point and take certain actions, but since I don't get there, I didn't report it (it's outlined in the attached manual).


I have had the same results either with the VISA Test panel, or using the "Basic Serial Write and Read.vi" provided with LabView (attached file Basic Serial Write and Read.vi). I have also attached a serial session capture of the above sequence (more or less) as 0406 capture.txt. I tried reading only 50 bytes to avoid a Timeout using the default 1024 read length. I have also tried the flow control options NONE and CTS/RTS, with no positive results.

The manual states that "Before a pump drive can be controlled, it must first be numbered. If any command is issued before this is done, the satellite will not respond.". So I guess that's why I had no luck with any of the other commands (like the one in the captured comm session).

 

The USB/Serial cable was a UPnP cable, but I installed its drivers, too. I take that the initial communication with the pump verifies that (1) the cable is ok (2) the port and the pump can hear each other. I have already contacted the manufacturer and waiting for their response. They don't have any LabView drivers (as far as ni.com can tell me). The pump is already set to remote mode.

 

It should be pretty obvious from above that I have zero LabView (or instrumentation and seril communications) experience and this was supposed to be my "intro to LabView"! I already searched the forums but it seems ost issues are realted to COM port recognition, cable problems or device-specific.

 

I would highly appreciate any feedback/tips/links to further reading, etc.

 

Cheers

Ali

 

HOW CAN I GET THE TIME IN EXCEL SHEET USING WRITE TO MEASUREMENT INSTRUCTION

$
0
0

HI, I am using GET TIME IN SECONDS ,and after that i placed SECONDS TO DATE /TIME instruction ,and i had taken a write to measurement file instruction

to get the time in excel sheet. Now i am not able to connect write to measurement source to seconds to date and time output . Is there any solution.

I am attaching my VI file also.

Connecting shutter Uniblitz to computer with rs232c

$
0
0

Hi everyone, 

I would like to connect a shutter (Uniblitz VCM-D1) to my computer. I read in the manual that this VCM-D1 can be controlled by a an RS-232C computer serial signal COM port and which must be in the Null Modem configuration. Because I didn't have any 810RJ cable, I took a RS-232c - RJ45 cable and fixed a female-female RS232 connector in a way that I have the Null-modem configuration ( crossing 2 wires). I connected everything to the computer and turned on Measurement and Automation Explorer. After refreshing it, I didn't see any connection appearing with this VCM-D1... How can I connect this shutter to my computer? I'm sure I'm doing something wrong or there is something that I didn't understand as I'm completely new to Labview. Any help would be much appreciated. Thank you.

I/O Trace ..

$
0
0

Hello,

 

I'm trying to capture SCPI commands from LabVIEW 2012 VIs. The attached file is from I/O Trace 3.1. Some of the captures contain ".." and in some cases I am able to get the full string by going to "properties" and "buffer". But in the 2nd capture of this file even the buffer has "..". Is there a way to cature the entire SCPI string?

 

Thanks in advance.

Tim

Señal escalonada

$
0
0

Buenas tardes.

Quisiera realizarles la siguiente consulta: estoy realizando un proyecto en el que se adquire una señal biomédica, se la muestrea, se la codifica según el algoritmo ley-u y se la transmite mediante un módulo bluetooth. La codificación por ley-u se efectúa para poder cumplir tanto con la tasa de muestreo (8 KHZ) como con la velocidad de transmisión del módulo bluetooth. Las muestras se reciben correctamente (através de un dongle bluetooth que labview ve como un puerto serie) y se decodifican ejecutando una librería dinámica. Ahora bien, esta señal decodificada presenta un cierto escalonamiento introducido por el proceso de codificación y decodificación. Quisira consultarle que tipo de filtro o procesamiento se podría implementar para que la señal sea mas regular, eliminando el escalonado que comentaba.

 

Agradezco desde ya vuestra respuesta,

 

Saludos cordiales.

VISA port spy

$
0
0

Is there a way to programmatically monitor a serial port (without taking control of the port or otherwise interfering with an existing connection)?

 

I know I can use third party applications like Portmon, or NI IO Trace to display (VISA) communication in the NI IO Trace application, but I would like to create my own "terminal window" in LabVIEW to display all messages.  NI IO Trace has a LabVIEW API to start and stop IO Trace, but no API to programmatically access the data stream.

Labview to communicate over usb with a Danfoss VLT AutomationDrive FC 302 adjustable frequency drive

$
0
0

Has anyone used Labview to communicate over usb (or RS232/RS485) with a Danfoss VLT AutomationDrive FC 302 adjustable frequency drive ?

Thanks

Hierromovil


MAX - Message from Webpage

$
0
0

Greetings Everyone,

 

     Sorry if this has been posted in the incorrect forum.

 

     When I am using MAX and select the Calibration Tab for the PXI-5114 or PXI-4065 a dialogue box "Message from Webpage" appears as displayed in the attached picture.  I've installed Labview and TestStand on two (2) other stations and haven't encountered this issue.  Other than re-installing the entire software package as the message states, is there a way to resolve this issue easily?  Thank you in advance for any comments that you may provide.

 

Regards,

 

Scott

IVI Configuration with PXI-4110 in TestStand

$
0
0

Hello All,

 

Set-Up:

PXI-1033 connected through MXI to a PC running Windows 7. LabVIEW 2014. TestStand 2014 (32-bit). PXI-4110 Power Supply and PXI-4070 DMM.

 

In MAX I can open both soft panels and control both units and they work great.  In LabVIEW I can control both cards as well. 

 

In MAX I have set up a driver and logical name for my DMM. This unit works great within TestStand using an IVI DMM step.

 

I then proceeded to setup the 4110 in MAX with an IVI driver and logical name. Here are my settings:

Name: ni4410_PS

Hardware: Added hardware asset and select the PS. This one is checked, no other assets are checked.

Software Module: NI-DCPower, 4110 is listed as a device that is supported.

Virtual Names: This is where I am confused, Under physical name there are four options that come up (0, 1, 2, and 3). This power supply only has 3 outputs so I am unsure why four come up. I have made 4 virtual names, one for each of the options. I named them ch0, ch1, ch2, and ch3 respectively.

 

When I put an IVI Power Supply step in TestStand everything seems to be working. I open the configuration window and set my values for each channel. If I try to validate the setup by unchecking simulate and click on init I do not get an error.  As soon as I clic on 'Configure' or 'Show Soft Front Panel' I get the following error:

"The IVI Configure operation failed for lgical name 'NI PS 1'. Details: Extention capability not supported by instrument driver. (Base) (-30717)"

 

Any information would be appreciated.  I tried playing with it for a couple hours yesterday and had a couple co workers try to help.  We are all under the assumption that this should be working.  

 

Thank You!!

 

Jesse

 

 

Safely Remove GPIB-USB-HS Devices

$
0
0

Hello,

 

I have several GPIB instruments connected to PC through GPIB-USB-HS. I know normaly for USB devices I need to do the safe removal. What should I do in this case to remove connections while everything is powered on.

 

Thanks

 

Fliu

Watlow F4 GPIB-USB-HS Error-1073807331 The Specified attribute is not defined or supported by the referenced resource

$
0
0

Hello,

 

I am trying to run the Watlow F4 Controller Driver downloaded from NI website to control an environmental chamber. I connected the GPIB port to PC using a GPIB-USB-HS cable. The GPIB to ModBUS interface board ICS 4804A is found in MAX and I am able to get queries from it with *IDN? command. When I run the Watlow VI. I got Error -1073807331 (0xBFFF001D) The Specified attribute is not defined or supported by the referenced resource. I am not sure what I am missing. Please see attached picture for details. Any suggestions are greatly appreciated.

 

Many many thanks

 

Fliu

Modem SMS Gateway for Labview

$
0
0

hi,

i wanna ask on labview which one modem that support VISA for sms gateway in labview ?

i have 2 choice

 

first Wavecom m1306b USB :

1348136790_440146768_1-single-port-wavecom-modem-.jpg

 

 

and Wavecom m1306b RS-232 :

images.jpg

 

 

i hope you can help me for choose these modem which one that support in VISA Labview.

Thanks~

TDK-Lambda Power Supply error

$
0
0

HI all

 

I am trying to communicate with TDK power supply (LAN supported model) through ivi drivers. I have created the logical name of the ivi driver and mapped it with niDCPower driver. When I am trying to set voltage & current through LabVIEW VI it is giving me error "Method or function is not supported in  IviDCPwr Initialize With Options.vi

I am not unable to understand becuase of what this error is coming?

Can anyone help me out there?

 

 

Thanks!!!

 

 

frequency change through serial port

$
0
0

i am working on a modem and use to change the frequency of modem using serial interface comand.  i want to know how to do that in Labview


Keithley 2220-30-1 extra voltage

$
0
0

What I am trying to do is to control the power supply where I can control the voltage step at time intervals. My issue is that each time i run the VI the 2nd channel is not being used will give out a readoing of 1V and this 1V will affect the readings when i try to control both channels of the psu simultaneously which also will lead to constant change in the readings displayed on the psu. Why does this extra voltage appear when i run this VI. Is there anyway to eliminate it so that I may have full control of both the channels. 

Error - session handle nor valid for ivi

$
0
0

Hi All

 

I have posted this question in existing thread also I guess.

 I am trying to control TDK lambda power supply through LabVIEW using IVI drivers.

logical name set in a MAX is same as what I am giving in VI to InitializeWithOptions.vi . However I am ending up with this error "IviDCPwr Initialize With Options.vi<ERR>
Primary Error: (Hex 0xBFFA1190) The session handle is not valid."

 

Not sure why this error is coming.

 Can anyone help me with this error?

strange corruption when using U8903 instrument driver

$
0
0

Hallo, this screenshot shows some strange corruption, when debugging some testcode with CVI2013SP1 on Windows 7, which is using the Agikent U8903 instrument driver:

corrupt_init.PNG

 

As you can see, AGU8903ni_Initialize just returned without error ( status is zero) . But the instrument handle it returns has the value "TCPIP0::192.168.2.12::inst0::INSTR" ( which is the VISA ressource of that device and not an instrument handle). 

Is this a bug in the debugger or is this more likely some corruption in VISA ( version 14.0) ?

Debugging into the instrument driver shows that the handle is returned by the viOpen() call.

 

Sending data serially from one port to another using VISA read/write.

$
0
0

Hi,

I have found a program o Labview through which one can communicate on a single port using a loopback adapter.

But now I need to serially communicate between 2 different ports using labview..Plzz help

lms 200

$
0
0

Hello,

i have installed the plug and play driver for the sick lms2XX but when i run it, always it gives me the same Error i tried alot to solve those problems but i couldn't, i tried even to build my customized vi but the same problems occurred, i attached the Error list in a a word doc bellow. please help!

Viewing all 5661 articles
Browse latest View live


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