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

Agilent DSO5054A waveform read problem

$
0
0

I'm trying to read oscilloscope waveform through LabVIEW but when I read the waveform, instead of actual voltage, numbers ranging from 0 to ~2000 is shown in LabVIEW VI. When I vary the position of the waveform on the oscilloscope, these numbers also change. Please check the below image. Is there any settings that I am missing? The voltages on the scope are around 5 volt. Please help.

 

aa.PNG


BSOD connecting GPIB-USB-HS+ (gpibusAnalyzerDriver.sys)

$
0
0

Hello,

 

The problem i'm facing at the moment is that whenever I connect the GPIB-USB-HS+ to my laptop, windows will try to install the driver and than a BSOD appears. It doens't matter which USB port or how often you connect it, it will crash all the time.

 

Then I ran the NI updater, it found some updates (also for NI-488.2) and installed the updates. But this didn't fixed the problem. The problem is also reproducable on other laptops (not only HP but also on dell laptops). Also if we replace the GPIB-USB-HS+ with another one, the problem occures.

 

The BSOD lists under techniscal information the gpibusAnalyzerDriver.sys.

 

On this laptop windows 7 64 bit is installed.

Attached is a picture that shows the software overview from the Measurement & Automation explorer, to indicate the software versions.

Another picture is attached that shows the BSOD.

Finally the minidump file is attached.

 

I would like some help to resolve this problem.

Assigning Static USB-Serial COM Ports

$
0
0

I have an application where I am using a few stepper motor drivers that will have an RS-485 to USB adapter, which will be used to commuicate via VISA and LabVIEW. The problem I am having is that my computer is auto allocating the COM port differently each time I plug in my device and I was curious as to whether or not there is a way to assign a COM port/USB port as static so it does not change when I plug in a device to a certain designated port. Is there a way to do this in Windows settings or a way to search for the USB connection and write to its port whenever it changes?

Keithley 2601 - VISA READ 0xBFFF0015 (VI_ERROR_TMO)

$
0
0

Dear people,

 

I hope you can help me with this problem that have been haunting me for days. Please excuse me if it is some rookie mistake, as I have zero experience with LabVIEW.

 

I'm trying to control a Keithley 2601 using the LabVIEW drivers provided by the manufacturer (http://www.tek.com/source-measure-units/2635-software/keithley-series-2600-2600a-2600b-native-labview-2009-instrument-d).

The connector I'm using is a NI GPIB/USB and the communication seems to work fine with the NI-VISA Interactive Control, writing and reading the output of "*IDN?\n" flawlessly:

 

1: Write Operation (*IDN?\n)

Return Count: 6 bytes

2: Read Operation
Return Count: 54 bytes
Keithley\sInstruments\sInc.,\sModel\s2601,\s1078308,\s1.1.1\n

When trying to run the provided example "KE26XX Factory Pulse Usage.vi"  however, after succesfully initializing the device and writing a series of parameters, it always shows error 0xBFFF0015 (VI_ERROR_TMO) at the VISA READ in "Config Pulse V Measure I.vi":

 

error.jpg

 

I had that previously with a serial cable, so I changed to the GPIB/USB thinking it would overcome an eventual TermChar problem. Didn't work, the error is still the same. I've tried adding a Wait function with up to 5s after the VISA WRITE, no success. Tried increasing the byte count for the VISA READ, no success. Tried manually adding "\n" to the write string, no success.

 

Using Windows 7 Enterprise, LabVIEW 2014 SP1 f3, NI-VISA 15.5, NI-488.2 15.5.

Thanks in advance for any kind of help!

 

Diego

 

Setting RS485 Wire Mode using Visual Basic

$
0
0

I'm using VBA to communicate with the RS485 port.

 

The only way I can communicate successfully with the RS485 port is when I manually change the wire mode for the port in Device Manager by changing the transceiver mode setting.  I can change all other port settings programmatically. 

 

I am not using the NI library for communicating with the RS485 port.  I am using Windows API function calls similar to this here: http://dev.emcelettronica.com/serial-port-communication-in-excel-vba

 

In the NI library, the command for changing the wire mode is viSetAttribute(ASRL4::INSTR (0x03EF4588), ASRL_WIRE_MODE, 3).  I am looking for a way to accomplish this using Visual Basic (or VBA) without using the NI library. 

 

Any suggestions?

Communication rs-232 using LabPython

$
0
0

Hello,

 

I want to control and make a UI for a mass flow meter-controller using LabView but it appeared that I have to use some ASCII characters that are not supported in LabView or in browsers.

A colleague wrote me a script in python that send the command in the shape of  "chr(int)" instead of using ASCII.

 

For example: "Sinv2.000 + CRC + cr" is converted to "chr(83) + chr(105) + chr(110) + chr(118) + chr(50) + chr(46) + chr(48) + chr(48) + chr(48) + chr(143) + chr(85) + chr(13)" in python

 

Now I have to execute the script inside of a LabView VI, I use for this LabPython.

 

I tried to follow advices from different forums but it seems that my VI doesn't want to do the link between the controller and my script.

 

I have never used Python before thus the problem might come from the script.

 

 

-Leo

 

 

PS: I need to execute my VI on a computer that doesn't have LabiView nor Python. What should I install to make the executable works?

 

 

 

HIL: Power Supply Control in VeriStand

$
0
0

How Power Supply is integrated into VeriStand Environment. The goal is to  control Power Supply (On/Off/Vary Voltage) from Automation.

VISA Problem with buffer

$
0
0

Hi

 

I communicate with a device with VISA tools.

I get a buffer and then I extract data .

This works well except some times the buffer is not read entirety . The first part of the buffer is missing and my data are in this part !

On 150 iterations I have 1 case where the buffer is truncated. I don't understand why...

 

I tried to change the waiting time between writing and reading, it changes nothing .

I inserted the tool "VISA flush" to empty the buffer between each reading but it does nothing more.

 

Can you help me?


IndraControl S67 - NI Tools - Rexroth Open Core Engineering driver

$
0
0

I am trying to understand the application scope of Rexroth Open Core Engineering LabVIEW Add-on available on the NI Tools Network,

 

the http://sine.ni.com/np/app/main/p/bot/no/ap/lvtn/lang/en/pg/1/sn/n25:software,n21:28,n20:16641/sb/default/q/Rexroth/

 

I have an S67 unit, Fieldbus Coupler utilizing Ethernet/IP - the S67-ET-BK-DI8-M8

 

It is unclear from the documentation if full control and configuration of this device is supported in the LabVIEW MLPI4 toolkit from Rexroth.

 

Anyone have any experience?  I don't have the hardware to test unfortunately.  I have contacted Tammon (he has posted about the Open Core Engineering package before on the forum.

 

Just hoping to hear from anyone with experience integrating with these units in LabVIEW.


Thanks.

VISA

$
0
0

Hey LabView community,

 

I am currently working on a project that involves an ultramotion linear actuator (EMA). We have sucessfully communicated to the actuator using Putty and a serial-USB adaptor to send serial commands, however, when we try to communicate using a VISA example provided by LabView, the actuator will not respond to commands. We were wondering if there was a syntax error i.e. carriage characters like \n or \r that we need to type into the LabView command window to get the actuator to respond. If anyone has any idea how to fix this or can provide a file that is able to communicate to an EMA through serial commands, that would be very appreciated!

 

Thank you!!

fatEK PLC communication to HYPERLINK terminal

$
0
0

Can anyone help me to establish serial communication link between Fatek PLC and Hyperterminal 

According to my requiremnt if i send the data from hyperterminal PLC should recieve it and when plc send the data hperterminal should recieve it.

How can I Capture SSA Screen via GPIB?

$
0
0

How can I Capture SSA Screen via GPIB (VISA LabVIEW)?

 

Can anyone provide the LabVIEW (VISA) VI for reference?

 

Thank you,

 

Kunal Modh

RF Test Engineer

NI MAX - error message "There was a problem updating the settings for this device. The operation timed out."

$
0
0

Hi,

 

when I open the NI MAX, I get the following message:

 

"There was a problem updating the settings for this device. The operation timed out."

 

Because of this, I cannot communicate with a cDAQ.

 

It was working normally until some days ago. I already installed the last version of NI MAX and reset the configuration data, but it did not solve the problem.

 

Do you have any idea what it can be?

 

Thanks in advance!

How can I tell my program to wait for my Velmex driver motor to finish moving, then continue executing?

$
0
0

Hello everyone!

 

I've been working for a couple of days now trying to figure this out. I have a 2 axis stage from Velmex with their proprietary driver which controls two stepper motors, one for each axis. I need to execute an algorithm of commands, such as one I call "Find Y Center". My problem is as follows:

 

Whenever I have a complex chain of commands, the VISA commands execute too quickly for them all to be executed. I need my program to wait for the last command to have finished, THEN send the next command. Right now, my program will send the first command, the motor will begin to move, then the all of the next commands will ber sent and the driver won't read any of them because the first command is still moving the motor. I've included my code here below which shows the part I'm having a problem with, thanks for your help!

ni6281 Transmit and Receive Signal

$
0
0

Hi, 

I'd like to build a labview program that I can both send and receive signal with for about 30 minutes in water pipe by using some transducers and transreceivers.

I am using ni6281 daq and I'm planning to use the sampling rate up to 200khz. I have built one program that it can both send and recieve signals but it has some problems as follows: 

1-)Sending and receiving are not synchronized. 

2-) I can't save the data for more than 1 min due to lack of memory problem.

3-)I want to have a signal which can show timing instead of number of samples.  

 

If you could help me to build a bit more engineered program or another similar example that I can play with it would be appreciated. 

 

Thanks

 

 


Change in behaviour of support for Agilent USB to GPIB interface (82357B)

$
0
0

Hi

Just starting to use LabVew

( Older version was LabVIEW7 but when it installed spent best part of a day updating - so don't know exactly what to call it - at moment cannot justify cost of getting pack to latest version as only using as a learning platform during spare time at work)

 

Using NiMAX ( 15.3.0f0 ) I have connected to a number of instruments over both Ethernet , USB and GPIB.

 

The GPIB interface I have is an Agilent USB to GPIB (82357B)

 

In order to do this within NiMax in VESA Options I have enabled the NiVisaTulip.dll , and all worked OK for a while ..

 

Now every time I start NiMax - under Devices and Interfaces I get a VISA error -- and no sign of the GPIB interface.

 

The error is 0xBFFF003A (VI_ERROR_INV_SETUP) the same as if the Tulip.dll was not enabled, checking the settings the Passport for NiVisaTulip is enabled.

 

I have now found if I disable the Passport for NiVisaTulip, hit save button, re-enable the passport for NiVisaTulip hit save button, exit NiMax, then start NiMax again ... the

GPIB interface and instruments are back .. if I exit NiMax and re-start it the VESA error is back ...

 

Has any one else seen this and found a way to solve it ?

 

If I use a KEITHLEY program to talk to a DVM it always finds it via the GPIB interface -- I assume via the VESA driver, so may be just an NI problem ..

 

( Should point out Im a hardware engineer not a software engineer -- software engineer colleague has written code in c# to use the GPIB interface -- beginning to think would be easier to do that and abandon LabView ? )

 

GPIB-USB-HS not mounting in CentOS 7 (NI-VISA-15.5.0 installed)

$
0
0

New to the linux life.  Done this many times in Windows.  

 

Using CentOS 7 in a VM on a MacBook Pro.  Also installed are VMs for OSX and Windows 7.

 

I want to use PyVISA to control instruments via GPIB, so I need NI-VISA installed.  I downloaded the iso image for NI-VISA-15.5.0 and got it installed, at least it finished without error.  

 

When I plug in the GPIB-USB-HS to the USB port, I get a message from the VM manager, asking which VM I want to connect it to.  If I select "Windows 7 64-bit", it enumerates and shows up as a device just fine, as it should.  

 

If I choose "CentOS 64-bit", I get nothing.  When I run ResourceManager under PyVISA, I see 4 ASRL instruments, but no GPIB.  If I connect the GPIB-USB-HS to an instrument, the instrument does not appear.  

 

If I look in /dev, I see no GPIB device.  I *do* see nipalk.  

 

I tried installing NI-488.2, but it refused to do anything becuase a newer or current version was already installed, I assume when I installed VISA.  Is that the case?

 

I don't know what tests to do next to diagnose or give more info to the problem.  Thanks for any advice.  

 

Ed K

Multiple termination characters in serial commands

$
0
0

I'm using LabVIEW and RS 232/serial connections to control a PipeJet manufactured by Biofluidix. Attached is my code, as well as documentation from the company (serial control starts on page 18). I'm using a straight through RS 232 cable to connect the instrument to the serial port at the back of the computer. I already checked, and there's no instrument driver.

 

Whenever I use NI MAX to see the instrument, it confirms that the instrument is present and usable. However, I am unable to send/receive commands to it. Maybe it's because I can't seem to send both termination characters in NI MAX? (Look a few lines later at termination characters) Whenever I use the attached code to write a "v" command and read the response, I get an error, I believe the code is -1073807339, where the issue occurs in the read VISA command. This makes me think that I'm not sending commands correctly. According to the documentation, the baud rate is 9600, stop bits 1, no parity, and 8 data bits. The only other software issue I can think of is either the way the termination characters are being handled, and/or I need to insert a time delay for the Read command.

 

The documentation says the termination characters are CR LF, so in my code I wired the termination character as "False" for the Configure Serial Port Node, and for VISA Write I am instead using Concatanate String to send "v" as well as the End of Line constant together to Write. The only issue arises with the read command; simply opening/closing the instrument doesn't seem to contain errors.

 

Tomorrow at work, I will try debugging this further with the Basic Serial Read and Write vi and will report on my results. Any ideas?

 

Keysight MIPI D-PHY Compliance Application Development using LabVIEW

$
0
0

Hi All,

 

I'm trying to automate the CSI-2 (MIPI D-PHY Compliance Test Application) provided along with the Keysight DSOS404A Infiniium S-Series DSO using LabVIEW.

 

The "Automated DigitalTest App Remote Toolkit" provided by Keysight comes along with an LV project, with a test VI.

 

Steps followed so far...

 

  • Installed LV 2014 (14.0f1) 64-bit & activated on Windows 7 Pro SP1 64-bit on a NI PXIe-8135 - works fine
  • Installed Keysight Infiniium Scope Application Software & activated the license - works fine
  • Installed IVI drivers compatibile with the Keysight DSOS404A from Keysight website
  • Launched Main Interface VI from inside the project "Example Labview Remote Client" - works fine
  • Filled the correct IP of the Scope & clicked Connect - Connected message popped up
  • Clicked the Refresh Test List button and observed that the list of Available Tests is loaded properly - works fine
  • Select some tests from the list of Available Tests & clicked Run - works fine
  • Clicked the Disconnect button - Disconnected message popped up
  • VI got stopped

 

Now, I clicked the Run button of the VI, and it started throwing .Net error "Object reference not set to an instance of an object" 2 times, and finally threw "Error 1172 occurred at Invoke Node".

 

From now on, the VI wouldn't run properly. Sometimes, closing LV & reopening the VI again is the ONLY way it works properly without throwing the .Net error 1172. Sometimes, waiting for longer time before running the VI is the ONLY way it works without throwing the .Net error 1172.

 

Any help would be highly appreciated, as I'm dumbstruck without having any clue why this behaves so weirdly so far.

86100A Distorted Waveform when using example VI

$
0
0

Hi,

 

I am doing summer research as an undergrad student, and am not very experienced with LabVIEW.

 

I am trying to use LabVIEW to pull a waveform from an Agilent infiniium DCA 86100A Wide-Bandwidth Oscilloscope. I have an Agilent 8133A Pulse Generator hooked up for an example square wave signal. I just want to get a correct signal from my Oscilloscope to LabVIEW before I proceed to anything more complicated in my project.

 

I am using the example VI provided in the 86100A driver package titled Agilent 86100 Series Transfer Current Waveform.vi which is the only one that will work at all, at the moment. The waveform that I get is very distorted though. On my oscilloscope, over a time period of 5 nanoseconds, I have 3 peaks and 3 troughs of a square wave. In LabVIEW, over the same time period, it is a very rapid oscillation, and I don't understand the y-axis units. On the oscilloscope, the signal is going from -0.1 V to 0.1V, yet LabVIEW shows the signal going between 15 and 24.

 

Thanks for any help!

Viewing all 5662 articles
Browse latest View live


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