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

Problem controlling Yokogawa AQ6370C by TekVISA and RS-232 (Visual Studio C#)

$
0
0

I have OSA Yokogawa AQ6370C connected via RS-232.

 

When I use direct connection to com port - all work fine!

I send command "*IDN?\r\n" an recieve correct answer "YOKOGAWA,AQ6370C,91L412833,01.02".

 

Now i try interact with device by using IVI functions from visa32.dll

 

viOpen(rm, "ASRL8::INSTR", 0, 0, ref vi);//OK
viWrite(vi, "*IDN?\r\n",7, ref retCnt);//OK
viRead(vi, response, 256, ref retCnt);//Timeout or framing error!

 Call monitor log

25.04.2014 13:54 22.979 	 0.6039s 	  viOpen(0x7f7f20, "ASRL8::INSTR", 0, 0, 0x7f93a8) 	 
25.04.2014 13:54 22.998 	 0.0000s 	  viWrite(0x7f93a8, "*idn?", 5, 0x66bde90(5)) 	 
25.04.2014 13:54 25.017 	 1.9993s 	  viRead(0x7f93a8, "", 256, 0x66bde90(0)) - (0xbfff0015) "Error - The specified operation or request timed out" 	 
25.04.2014 13:54 26.253 	 0.0117s 	  viClose(0x7f93a8) 	 

 or

25.04.2014 14:00 53.695 	 0.6052s 	  viOpen(0x6fb7f20, "ASRL8::INSTR", 0, 1000, 0x6fb93a8) 	 
25.04.2014 14:00 53.703 	 0.0000s 	  viWrite(0x6fb93a8, "*idn?\r\n", 7, 0x602dac0(7)) 	 
25.04.2014 14:00 53.812 	 0.0996s 	  viRead(0x6fb93a8, "................................\r.", 256, 0x602dac0(34)) - (0xbfff006b) "Error - A framing error occurred during transfer" 	 
25.04.2014 14:00 55.582 	 0.0119s 	  viClose(0x6fb93a8) 	 

 I try several combination of delimiter \r \n or \r\n. Its all not work :smileysad:

 

PS Interaction via Ethernet by using visa32.dll functions work fine!

 


I want to receive HEX data by VISA. What am I supposed to do??

$
0
0

hex.jpg<Pic. 1>

 

<Pic.1> is HEX Data received by CodeVisionAVR.

 

Actually, The Data is from AHRS. ( I'm making some kind of Ground Control System, so I need Euler angle data.)

 

 

 

 

But, in LabView

20140427113619.jpg

20140427113531.jpg

 

 

ASCII DATA is received in LabView.

 

I've been trying to find a way to solve this, but I couldn't.

 

Is there any way to receive the HEX Data right after the VISA is connected??

 

 

help!!

 

 

 

Make an ACPR measurement (set up for 5 MHz and 10 MHz offsets) using Agilent VSA E4406A

$
0
0

We are using an Agilent VSA E4406A. We would like to measure Adjacent Channel Power Ratio & am trying to use the Agilent PSA (W-CDMA) Series drivers.

 

So the ACPR, it is set up for 5 MHz and 10 MHz offsets. But I cannot find any VI / function in the CDMA drivers for this particular application.

 

I’m using the drivers at http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=2359 for LabVIEW , WCDMA (option 1).

 

I'm new to this, so could not figure out how to achieve. There's a programmer's reference guide attached.

 

Could anyone kindly look in to it?

LabVIEW control Interface 54645d, Please Help!!!

$
0
0

Hi, I am having trouble getting two trace signals or to at least get signal from channel 2 on my labview interface, I get the two signal traces on the physical oscilloscope and when I try and execute the labview interface it only shows channel 1. I was able to save waveform data into an excel .csv format file and to get one signal (channel1) but now I'm trying to get a second signal or if not possible, to at least get a channel 2 signal on another window, Please Help, been spending time researching for solution but came to no solution and don't know how I can get this signal displayed. If anybody know how I can get this to work or if they can test it on a physical oscilloscope for themselves to see, I would really appreciate it. Please again I am asking for help. Thank You.

 

Currently working w/ Hardware: HP/Agilent 54645D Mixed signal Oscilloscope, Interface module 54657A module attached to oscilloscope, GPIB cable connected to PCI-GPIB card, using Function Generator HP 33120A Function/Arbitrary Waveform Generator.

 

Attached is a screenshot of the hardware (oscilloscope/function generator and Interface front panel) and my current VI. Please if you can help me get a second signal from channel 2, I will APRECIATE this thank you.

 

John

burkert valve equivalent

$
0
0
Hello. Does anyone know about the equivalent valves for the following burkert valves which could be less expensive

Type 6519 H standard: 132465
Type 5420 : 456954

Thanks

serial communication

$
0
0

Hello,

         

I'm Shrinivas Pathak. I'm new to LabVIEW... I've been given a task to send some commands such as ''start motor'', ''stop motor'' etc... i have to send these set of commands through labview inorder to control the motor... i'm stuck with how to send a command which consist of start bit stop bit, checksum, line feed, carriage return and so on.. we are using dspic33f128mc706A chip..

Read Real Time data From VISA and plot on graph

$
0
0

Hello.

 

I have a hardware which contonuously sends Sine wave data seperated by character (*)

e.g. -0.9999*0.0000*-1.0000 etc. (attacheed Hyperterminal snap)..

 

The Sine wave has sampling rate 16 kHz.

 

I want to Read these readings and plot them over a graph which would be a Sine wave of 16 kHz sampling rate.

(An Oscilloscope like structure).

profibus and IFM-controller

$
0
0

We have a new fermenter with profibus port.

it's has an USB-RS485 converter(PC) cable.

I want to edit a subvi in labview 2012.

where can I find the driver or examples?


incremented voltage output using DAQPad-6259

$
0
0

Hello,

 

I'm really new to Labview and trying to make a program that increases the output voltage overtime using my DAQPad-6259. Basically I want to start from a certain voltage and then given a specific time interval, the voltage will increase at a certain rate. Ideally I want to go up and down a certain voltage range if it's possible. Like say the voltage will go up and down from -5V to 5V at a certain rate until I tell it to stop.

 

I tried making a lousy excuse of a program using LabView 8.5, but the output doesn't change.

 

I'd greatly appreciate whatever help that you guys might be able to extend. Thank you.

 

Cheers,

rakue

Communication between two programs using shared NI-GPIB

$
0
0

Hello to everybody!

 

We are buying a PC-based device having an NI-GPIB board used by the software to communicate with the external world.

 

Normally I'm expected to use the following architecture:

 

PC With GPIB interface running My software>-----GPIB Cable -----> Device with NI-GPIB Interface running its own closed-source software.

 

Since the Device is Windows based can I move my program on the device?

 

In other words: can the two programs, while running on the same PC, share the same GPIB interface to talk to each other?

 

Thanks in advance for any help!

Marco

 

 

How to apply linear equation on real time graph

$
0
0

I am working on my trainer which shows the strength of signal on 7 segment display. I have made my own harwdare that takes the values from hardware and these values are shown in waform chart in labview serially.

 

This is working perfectly and waveform is showing from signal strength. Manually I have my own linaer eqaution which is in the form of y=ax+b whare x= signal strenght and y= rain rate.

 

Now I want to do such kind of work which is:

 

1. I have to make interface in same program which shows singal strenght waveform. The progarm is attached.

 

2. I want that new interface should take x from singal strength graph and find y from ax+b where a and b is known constants and plot the y against x in the same program.

 

3. After ploting y versus x, when I stop the program manually  it will take the average of y and display the message avearge y is:?????????

 

Please expert help me how to do this in my attached program. Any Help will appreciate. Thanks in advance

LabVIEW will not recognize physical channel in DAQ assisstant when MAX shows it Running.

$
0
0
Ni cDAQ-9184 is connected to laptop with ethernet cable. System state says running and a NI 9481 module is in slot 1. However, when I try to add device, I get error 201401. I am trying to get the DAQ assisstant in LabVIEW to recognize the physical channel but it is not doing so. Laptop is not connected to the internet if that's an issue.

NI488.2 linux installation problem

$
0
0

Hi, I am using Scientific Linux 6.5 32bit and I try to install NI-488.2 to talk with NI PCI-GPIB.

 

I downloaded http://www.ni.com/download/ni-488.2-2.9.1/3186/en/ and followed the installation instructions.

When I try to run gpibexplorer under /usr/local/natinst/ni4882/bin it says

libnipalu.so failed to initialize, Perhaps you need to run updateNIDrivers.

I run updateNIDrivers but nothing changes.

 

Also, when I run gpibtsw it says NI488.2 Software is not correctly installed on your system. Please restart the system and reinstall NI488.2 software. Which I did several times (with first uninstalling it completely as well) but nothing changed.

 

Can I get any help on this?

 

 

Why it's take a while to get a TCP Connection

$
0
0

I Guys

I open VISA Interactive Control

and I see my USB Connection just in time,

but the TCP/IP Connection takes at least 5 min to be recognized.

What is the reason for this and can I force the auto detection?

 

I Develop an Application in Delphi

Initialize Visa Agilent N57

$
0
0

I am trying to initialize a session to an Agilent N5764A. I keep getting an error code -1074001254 saying

 

N5700 Write to Instrument -> Config

Voltage Limit.vi -> N5700 Getting Strarted.vi ->

Agilent 5700 Initialize.vi ->

<ERR> Error sending N5700 Command:

:VOLT    0

<ERR> n5700 "SYST:ERR?" returned:

-410, "Query INTERRUPTED"

 

The weird thing is that I have 2 of these agilents connected to a PXI Box via GPIB. One of them has address 5 and the other 6 (the one giving the error). When I change the address to 5 and re-run the .vi, it initializes and works fine. I am using the built in tlabview initialize function, and i have tried closing, clearing the visa session, as well as restarting the computer, and also moving around the GPIB connections to no avail. Any advice would be great.

Thanks  


labtop and desktop

$
0
0

I use GPIB USB HS controller.  When I connect it to my labtop an run MAX I can see the keithley connected to the controller, but when I connect the same controller with the same instrument on the desltop, which have the same labviwe, I can not see keithley. Capture of both cases are attached. 

 

Another question, when I use labviwe code what I should write in the GPIB adress string?? Is it only the primary adersss 22 or the ID, which is zer in my case, should be included also.

ke485

$
0
0

I am tring to use the example in ke485 driver to control keithley 6487 picommeter using LabViwe 2013. the installation was O.K. and MAX detect the instrument but when I run the example no errors show but it does not take control of the keithley. The concern I have is that the driver  inveroment  was 2012 but I use 2013. Is this an issue. any solution or suggestions

 

Control servo motor festo por ethernet

$
0
0

Hola a todos, hace tiempo trabajé con labview y ahora me han vuelto a mandar otro trabajito, la verdad es que me gustaría saber si labview ha realizado una api para los servo-motores de fetos que van regulados por un controlador CMMO-ST. Este regulagor se conecta al pc por tcp/ip, a su vez hay que generar las tablas de transmisión de datos para hacer funcionar el motor. 

¿hay alguien que halla trabajado con estos motores?

¿national instrument ha realizado alguna api para estos controladores?

gracias.

PD: No realizaba un trabajo serio desde 2007, esto ha cambiado mucho....pero para mejor.

Kepco SNR 488-8 Too Many listners on GPIB

$
0
0

Hello,

 

I am having problems connecting to a Kepco SNR 488-8 Power Controller via the GPIB bus. The odd thing is that I was able to connect to it before...

 

Here are the steps to reproduce the error:

  • Start NI MAX
  • Click on My System -> Device and Interfaces -> PCI-GPIB "GPIB0"
  • On the "Properties" tab, click on the button "Scan for Instruments"
  • Get an error that says "Too many listeners on GPIB"

This is what I've tried to fix the error:

  • I verified that the PCI-GPIB is set to address 0.
  • I also verified that the address for the Kepco SNR 488-8 is address 4.
  • I can't click on "Restore Defaults" button for the GPIB card as it's grayed out.
  • I tried two different GPIB cables connecting directly from the PC to the test equipment, so it's unlikely that it's a bad cable.
  • I updated to the latest version of NI MAX v5.5.0f0.
  • I tried the NI-488.2 troubleshooting utility. Both of the options passed.
  • I also collected a trace if that helps.

I had the Agilent VISA installed at one point, but I uninstalled it so the NI VISA should be the only one left.

 

Is there anything else I can try?

 

Thank you,

Graham Best

 

Sick LMS 2xx Series angular resolution

$
0
0

Hi

There is some problems i meet ,Lms is a laser measurement  that i want to change the regular resolution from 1°/ 180° to 0.5°/180°.I have  tried use the NI program to solve this problem but it seems doesn't work .Can give me some advices ?   Thanks.

 

below is the program i download from NI. and have some modified  in   Sick LMS 2XX Series Continuous Data Acquisition VI.

Viewing all 5661 articles
Browse latest View live


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