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

why do we use VISA WRITE

$
0
0

I'm new to LabVIEW, can anyone please brief me why do we use VISA WRITE and what parameters should we keep in mind while wirting any command using VISA WRITE. 

 

Is it like that we write a format kind of thing using VISA WRITE to WRITE a command to the device so extract data in that format written as a command to the device. 

 

Regards


How can I connect HOST PC COM port under cRIO 9074?

$
0
0

I can't find any HOST PC COM port on my cRIO.

I tried to use global variable but it was unuseful.  Is there any solution?

How to configure Px statistics in a DSO LeCroy?

$
0
0

Hi,

 

I'm trying to automate a serie of tests. One of the requirements is to save all the screens with relevant informations. In order to do that, I need to configure P1 to P6 according my needs.

 

I have already figured out everything that I need (saving the screen, change the trigger, the scales...) but how to change through LabVIEW the Px configurations.

 

To be the clearest possible, I attached and  highlighted two images. In the first one it's written: "previously configured", what I want to know is exactly how to do that configuration.

NI forum - px parameter.PNG

 

In the other image, the Pxs parameter are with red circles: how could I enable/disable, choose one among the 4 channels and which information (Amplitude, Frequency...) through LabVIEW?

NI forum - px parameter 2.PNG

 

Thanks

 

PS: I'm using LabVIEW 2015 and a LeCroy WaveRunner of the 6000 series, connection through TCP/IP

 

Self test error -37051 visa 488.2 USB GPIB interface

$
0
0

Hi,

I recently bought a Ni GPIB-USB-HS+ device to communicate with a current source and a voltmeter. After installing Ni 488.2 drivers, I can see the devices in NI-MAX. I can also commucate with them by choosing "communicate with instrument option" and sending *IDN? command, but when I want to open VISA test pannel, it gives the following error : 

 

VISA: (Hex 0xBFFF005F) No listeners condition is detected 
(both NRFD and NDAC are deasserted). 

 

Do you have an idea on how I can solve this problem ?

Thanks

Agilent E4980A LCR meter automation using Labview.

$
0
0

Hello,

I want to measure capacitance and resistance in a frequency domain. The maximum number of measued data is 200 in this LCR meter. for example from 100 Hz to 300 Hz we wıll have the C and R values at 101 Hz, 102Hz,....300 Hz  which is 200 values. because of this I want to to do frequency sweep in small domaıns in order to obtain more data. for example frequency sweep from 100 to 150 Hz and obtain 200 data and write them, then change the frequency sweep from 150 to 200 and do the same thing. the example code will be like this:   insert initiate frequency&sweep domain  (for eg. 100 Hz, 50Hz) --------->100 Hz- 150 Hz -------->measure and write C and R values in Excel (200 values)----> change the frequency (150Hz to 200 Hz)----> measure and write C and R in the same Excel ----> do this until a defined frequency( for example 500 Hz)     I downloaded all visa and keysight drivers needed. I connected the device to the labview.

I will apperciate any guidance.   Thank you in advance  

usb 485/4 control sla 5850

$
0
0

Hello,

I want to use USB485/4 9 pin to control and read a flow measurement sla5850. The figure of pinout is in enclosure. How can I connect them?Thank you

Sincerely

USB Serial Input into CRio 9012

$
0
0

This is a hardware related question regarding inputs into a CRio 9012.  I have a prebuilt system (that I'd prefer not to touch) that outputs a string of serial data through a USB port.  On the prebuilt system, the data was converted from RS232 to USB with the use of a FTDI chip.  My goal is to read this data with the CRio, but as the on-board USB port isn't I/O, all I have access to is an on-board RS232 serial port and an analog input module (NI 9209).

 

Are there any good ways to read this data?  The simpler the better, but I wouldn't mind buying something like a Raspberry Pi to do the conversion if necessary.

 

I appreciate any help.  Thanks!

Ni cRIO 9035 not supported in labview 2014

$
0
0

Labview.png

 

Hi all , 

 I would like to ask whether Ni Crio 9035 is able use in Labview 2014 ? What is the possible reasons that this error is showing that Device is not supported in Labview enviroment . Currently the hardware Ni Crio 9035 able to establish connection in Labview 2015 but not labview 2014 .Hence , is it possible i get a confirmation that the following hardware Ni CRIO 9035 is supported in labview 2014 and detail solution steps if possible .

 

Thanks

 

Regards ,

Jeremy


Control mass flow controller using USB 3105 (measurement computing)

$
0
0

Hi all, 

Currently, we are using USB 3105 measurement computing instead of Ni-DAQ/module card to send the analog outputs to alicat mass flow controller .
I am quite new with labview programming so i do not know how to convert the voltage to the flowrate and send it to MFC. I know the linearly scale but i do not know how to programe it in labview.  
Initially, i need to connect 2 mass flow controller to 2 channel of the USB and control flowrate in conditions: Flowrate of MFC1+ Flowrate of MFC2 = 25 m/min (~2.5V)
I tried to look up googling and youtube. Unfortunately, most of the instructions are using Ni-DAQ card.
Note: We do not want to purchase for RS232/485 connection so using labview(2012 version) is the must choice.
Hope to get a help from you.
Thanks
 
 

Why isn't LabVIEW using the right termination character, while NI MAX does?

$
0
0

I believe my problem stems from the same problem as the threads I made here and here, which both involve problems with termination characters. I thought I solved this problem in the latter of those two, but I was wrong and I'm still very lost.

 

Right now I am trying to communicate with my SR720 LCR meter. Here is its manual. I can communicate with it perfectly in NI MAX. I send commands, query, etc, and it responds with correct data.

 

Now, I am trying to get it to work with my LV program. As an example that it is working perfectly in NI MAX, which I'll try to replicate in LV, here's what I do in NI MAX:

 

 

1: Write Operation (freq?)

Return Count: 5 bytes

2: Read Operation
Return Count: 2 bytes
3\n

3: Write Operation (freq2)

Return Count: 5 bytes

4: Write Operation (xall?)

Return Count: 5 bytes

5: Read Operation
Return Count: 30 bytes
G1C6.9126E-08,G1R2.6772E01,99\n

6: Write Operation (freq?)

Return Count: 5 bytes

7: Read Operation
Return Count: 2 bytes
2\n

This basically does the following: query the frequency, it returns "3", set the frequency to "2", then query the measurement value, it returns the correct value of the test capacitor I have in the machine, and then query the frequency again, which returns "2", as expected. This works perfectly.

 

Here's my program where I attempt to do the same thing:

 

TestSR720__newline.png

 

I'm using the correct VISA name. If I run this, it does change the value of the frequency, but the raw string I read in is "I1C9.9999E20,I1R9.9999E20,99", which is wrong (it's the same capacitor in there as 5 seconds ago when I did it with NI MAX). The manual says that this means "Invalid measurement, no measurement completed, A/D converter errors." I've added the delays just to make sure there's nothing going on with commands being entered too closely too each other (though it's really not necessary).

 

Now, what gets stranger is, if I instead of freq3, do freq3\n, it does return the correct value from the machine ("G2C6.7889E-08,G2R1.2804E00,99"), but it doesn't change the frequency, and the machine displays "SYN ERROR" on its screen.

 

If instead of freq3\n, I concatenate a line feed constant or a end of line constant onto the end of freq3, it changes the frequency but returns a garbage measurement (as for the VI snippet above). Concatenating a LF to the end of xall? as well does the same.

 

What's going on here? The manual says:

 

A command to the
SR715/720 consists of a four character command
mnemonic, arguments if necessary, and a
command terminator. The terminator may be
either a carriage return <cr> or linefeed <lf> on
RS232, or a linefeed <lf> or EOI on GPIB. No
command processing occurs until a command
terminator is received.

 

This seems like it should work then. Clearly NI MAX is inserting one of those automatically. Okay, but when I try it in LV, it doesn't work.

 

I've also tried the solution here, even though the page says it's probably not necessary, but it didn't work anyway, with either LF or the end of line constants.

 

Does anyone know what might be going on? This is very very frustrating. Thank you.

Error -1073807339

$
0
0

Dear All

 

I am making application for Ethernet to RS-232 converter and getting the below error message..

 

"Error -1073807339 occurred at VISA Read in RS-232 Read Wrire.vi->TCP IP RS-232.vi"

 

can any give me solution for this. 

Modbus

$
0
0

I am trying to read a modbus response for a query send to an inverter over Modbus TCP/IP using the software Docklight.

Query Send in Hex: 15 01 00 00 00 06 01 03 00 BD 00 01 ( Trying to read Register 40188 with offset -1)

Response received: 15 01 00 00 00 05 01 03 02 FF FF

Every query send is responded with same response FF.

Please Help!!

Driver for Allegro ASEK-21

$
0
0

Has anyone ever controled an ASEK-21 with LabVIEW ?

 

Many thanks in advance for any hints.

Problem recognizing a serial instrument with a USB adaptor in NIMax

$
0
0

Hi Forum,

 

I have an instrument designed to be controled via serial signal with an RS232 cable and I am trying to get NIMax to recognize it and send some test commands.  My laptop (running Windows 7 Enterprise) has no serial port so I am using a USB adaptor to plug it in.  When I initially could not get the device to show up, I searched online and found suggestions that I should install the NI-VISA driver.  I downloaded and installed it, but it does not help-- the option to open the VISA test panels is grayed out and it says the device is "not present" even when it's plugged in.  When I open the VISA interactive control panel directly, the device shows up as a question mark, and if I double click it, it says the following:

 

Error opening resource:
ASRL10::INSTR

VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

Any thoughts on how I can get my PC to communicate with the device?  Thanks in advance for your help.

 

Erica

 

NIVISA_Problem1.pngNIVISA_Problem2.png

How to let CAI model 600 analyzer understand the ASCII STX as Hypertermial does

$
0
0

Hi All,

 

I would like to control the CAI model 600 CO2 analyzer asHyperTerminal does. However, the labview is unable to type Ctrl+B or Ctrl +C as HyperTerminal does to command the machine to wait for the further command, which will start over again and again no matter what letters I typed in. In HyperTerminal, I was followed the procedure provided by the company and it works well. The standard command procedure in HyperTemirnal is beginned with Ctrl + B (the program will hangs in there) _AKON_K1_, abd ends with Ctrl + C, then the program will responds.  On the other hand, I was tyring the HyperTerminal.iv developed by Prabhakant Patil (https://decibel.ni.com/content/docs/DOC-16283) All the command such as 02, ^b will start over the program for any one single byte. Please kindly advise. Thanks

 

Regards,

Po


Square wave pulse to Agilent E3634A power supply

$
0
0
Hi,

I am using Labview 2011 to provide a square wave TTL pulse to an Agilent E3634A, to control its voltage.
I need the voltage to switch between 4 volts and 6 volts.

My square wave pulse goes between 0 and 2 volts. I then add this output to a constant voltage of 4 volts using a simple adder function and then supply the summed output to the Agilent block. The block is from an example file called 'Output DC Volts' that came with the instrument driver. Originally, the example file had a constant input voltage to the agilent which works fine.

I replaced the constant input with the summed output of the square wave and the constant.
When I read the output using a waveform chart, the voltage switches perfectly between 4 and 6 volts.
However, the Agilent is only displaying 4 volts all the time.

I would appreciate and feedback on this problem.

PXI(e) LCR

$
0
0

In addition to : 

do you know any PXI, PXIe (or PCI, PCIe) DMM for R and L measurement ?

Ideally, to avoid an SMU, the measurement current for the resistance should be higher than the 1mA of NI's DMMs.

 

Many thanks in advance for any advice.

Old Device restarts when receiving any command

$
0
0

Hey,

 

I have connected 4 devices on a GPIB to USB adapter. I can see all 4 of them at the interface and 3 of them are working as they should (can send commands and get the expected answers).

The 4th one "Programmable Pulse Current Source P4000" of the company "fastest" reboot itself whenever it get´s a command and causes therefore a connection timeout. (Also it doesn't turn to remote because of the restart).

It shows the same problem, when it is the only connected device.

The Current Source is about 20 years old and the company doesn't exist anymore, also we don't have a manual for that source.

 

Are there some old devices, which need a special command to get to remote instead of reboot? Or is maybe this old device damaged on the gpib-interface?

Thanks for your time and help,

Tarrant

コードの実行が中断されました

$
0
0

EXCEL VBAにてGP-IBの制御マクロを作成し実行後、Ctrl + Breakにてマクロを停止した後に再度実行させようとすると

「コードの実行が中断されました。」とメッセージが表示されどのマクロを実行してもメッセージが表示されGP-IBの制御が

できなくなってしまいます。

回避としてはPCの再起動しかありません。

 

WINDOWS XP

NI-VISA 4.6

GPIB-USB-HS

 

客先より借用しているためVISA等のアップデートはできません。

 

回避方法がわかる方教えてください。

 

bfff0011 visa open error

$
0
0

I am using a usb-to-serial driver interface to a custom device.  I have written some vi's that do a visa-open to the device, sends a query, retrieves the response, then does a visa-close of  the device.  This code was developed using LabView 2012.  When I run this code on a Windows 7 - 32bit machine everything works fine.  I power up the device, launch the VI, get the results, then power down the device.  I can repeat this sequence indefinately.

 

When I go thru the same sequence, with the identical code on a Windows 7 - 64bit machine this same sequence works fine the first time.  When I do it a second time I get the following error on the visa-open command: -1073807343 (0xBFFF 0011), "insufficient location information or device resource is not present in your system".  I continue to get that error, until I restart my Windows 7 machine.  Then it works the first time again and fails everytime there after.

Viewing all 5662 articles
Browse latest View live