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

Static and unstable frame problem in grabbed image of Basler camera in NI MAX

$
0
0

Dear all,

I'm using two Basler A602f cameras in my experimental setup. Few months ago last time I've checked, two of them were working good. Now one of them is good, the other one is giving an undesired image output (static and sliding frames, as seen in the attached picture). I'm using NI MAX to see if they are functioning properly. In LabView I don't have an issue. I can record the image (the bad one). So I don't think there is a connection problem. Also nothing has been changed with the system in the meantime, so I don't know why it stopped working properly. I've checked the cables, connections etc, also played with camera attributes, formats etc.. Nothing changed it.

 

I've contacted the Basler customer support but they won't provide customer support on that product anymore, since it is a relatively old model. 

 

Important system information:

Labview 2016 v. 16.0f5 (32bit)

IMAQdx 16.1.0.

 

I'd be very happy if anyone could comment on this,

Regards,

Kaya

 

 

 

 


Modbus RTU with labview: random timeout error

$
0
0

Hello all,

I need to solve communication problems between a labview VI and a system (designed by my company). They are communicating on a half-duplex RS485 wire, using modbus RTU as protocol. My system is linked to my PC through an USB to RS485 adapter. I am using NI modbus library to send modbus frames with labview.

The labview VI is sending endlessly read holding registers commands to the board, and most of the time everything is working fine. But after a random amount of time, I get a timeout error (error 56) on my modbus VI. Looking at frames exchanged through RS485 port with a sniffer shows that, when everything works fine, my system is responding in less than 100 ms. And when the timeout occurs, the answer happens slightly after 100 ms. So I guessed the problem was due to timeout definition... But when I look at my VI, I see that read timeout has been set to 2 seconds, so it shall not happen!

I tried to increase the timeout value, and got the same problem. Looking at Modbus Master.lvclassSmiley Frustratedet timeouts.vi's context help says: "This function takes effect immediately, and will change the timeouts of any future operations using the instance returned by Modbus master out", so for me the VI should not issue a timeout error less than 2 s after the sending of the last modbus frame. Right? 

Any idea of the reason of this timeout?

Labview communicating Modbus device

$
0
0

hello I'm Paul I try to make communication between my computer with one device but it does not work I used LabVIEW 2014 . I will be verry gratful to find the help here

thanks.

Yokogawa GM10 Labview Communications

$
0
0

I'm trying to connect to a Yokogawa GM10 DAQ Device with LabView. I've been unable to get any sort of communication through USB(COM), or ethernet. The device will not register in NI-MAX. The drivers list the "GM10" as being compatible.

 

Has anyone been successful in communicating with the GM10?

Serial Com - Sending commands via port RS232 etc

$
0
0

Hi,

 

I am looking to create a vi that is able to read ASCII commands from the instrument and write commands. I have looked at different examples and i think i have an idea on how to go about creating the communication. But i am trying to create sequence structure because there will be different commands the operator will be inputting. The problem is some of the commands that are being put in are a little long, there is a checksum included but i believe that the checksum is actually being done, by the module so i don't think ill need to create a checksum vi. ill have  a snippet of some of the commands, hopefully that'll give you some idea of what I am looking at. i just want to bounce ideas off and maybe get some idea of the best way to go about creating different commands that work in the same vi.

Running niDAQmx on Opensuse 42.3, OSError: libavahi-client.so.3:

$
0
0

Hi all, 

 

I'm trying to set up a logger on linux with nidaqmx. As only a selection of distros are supported, I decided to use the opensuse:42.3 image. I suppose I followed the instructions, but still I'm getting 

 

OSError: libavahi-client.so.3: cannot open shared object file: No such file or directory

 

Did I miss something? Here's my Dockerfile

 

FROM opensuse:42.3

COPY rpm_OpenSUSE423.rpm /tmp
COPY getpip.py /tmp


RUN rpm -vi /tmp/rpm_OpenSUSE423.rpm
RUN zypper -n update
RUN zypper install -y ni-daqmx
RUN zypper install -y python3
RUN /usr/bin/python3 /tmp/getpip.py \
&& pip install --upgrade pip

COPY requirements /tmp
RUN ln -s /usr/bin/python3 /bin/python \
&& pip install -r /tmp/requirements

 

Thanks for any suggestion!

 

p.s. not sure if this is the right place on the forum

How to know whether an instrument has finished its action after receiving a command?

$
0
0

I'm new to this area. I'm trying to control multiple instruments from a single program. My trouble is that i don't know how to check if an instrument has finished it action. I tried to wait for gpibstatus flag (e.g. IO Complete, End), but it seems its only for communication level. When I want to generate a signal and capture it, it could take 1 or 2 seconds before instruments actually sending and receiving a signal for the first time. So is there a way to monitor this action or certain status bit to check when action is done?

 

Thank you

Freeze in ibrd32 API of gpib-32.dll

$
0
0

Hello.

I tried to communicate with one instruments by application made by Visual Basic 6.0 using gpib-32.dll.

I could write command by ibwrt32 API. But next I call ibrd32 API, VB freezes immediately.

Instrument engineer says that data is sent correctly.

I have ever communicated with many instruments by same procedure, but it is first time situation

like this. Instruments engineer says ATN signal line hand shaking( ATN uses command and data flow control) may not working corrently each other.

Is it possible that handshaking may not be matched with some instrument by gpib-32.dll or some version of this dll?

Thank you.

 

 


I2C & Analog signal module

$
0
0

Hello everyone,

 

I want to have an I2C module plus Analog/Digital Modul, connected to PC,

I found the USB famous USB-8451, and other A/D modules

But I was wondering if there is a better solution, where I can put both for example in one place,

 

I found the CompactDAQ, but I didn't find any I2C module can be connected to it,

Is there is a similiar cheap solution (not PXI RT for example)

 

There is no RealTime restrictions, only simple I2C and analog read/write operations with labview

 

Thank you in advance,

Can talk to device (agilent e3631A) over MAX but not python?

$
0
0

Have my supply connected via GPIB-USB-HS. Can see it in MAX, but I'm unable to recognize it in Python. My Python code is below:

 

import Visa

rm = visa.InstrumentManager

rm.listResources()

 

Then I just get a '()' returned with no devices found

How to use non NI function generator? (Metrix GX 320)

$
0
0

Hello,

Where could i find tutorial about how to use Metrix GX320 function generator in labview?
Official site shows no sample code I am new to LabVIEW.

I downloaded the following files from this site.

 

  • gx3x.dll
  • gx3x0.LLB
  • CP210xVCPInstaller_x64.exe (virtual COM port driver)

Even though i installed com port driver windows doesn't recognize the function generator. I added gx3x0.LLB to my project.

What else should i do?

Please help!


Kind Regards,

Balázs 

Pulse Delta Sweep K6621/2182A - Real time Read and Process

$
0
0

Hello everyone,

 

I am trying to implement a way to perform a Pulse Delta sweep (linear) using the combination of a K6221 and 2182A. My goal is to perform the pulse sweep, to read the data and process them in real time. What I mean by processing is the following: register the resistance value after each pulse and check if these values are in a certain interval. 

 

So, one knows that during a pulse delta, the system performs schematicaly like this: 

 

1) send low current pulse

2) send high current pulse

3) send low current pulse

4) repeat while increasing the high current pulse amplitude. 

--> every data are registered in the buffer and be read at the end of the process when the maximum current value (define by the user) is reached.

 

What I would like to do: 

 

1) send low current pulse

     -> read the resistance value and process it somewhere else in the program

2) send high current pulse

-> read the resistance value and process it somewhere else in the program

3) send low current pulse 

-> read the resistance value and process it somewhere else in the program

 

4) repeat while increasing the high current pulse amplitude. 

 

For the moment, I have a program that send single pulse of different amplitude (low and high) and the program save the values of interest between each pulse. This method is absolutely not efficient, because the program needs to close the source and open it again for every single pulse. 

 

Does somebody have a clue on how to do that with labview ?

 

 Thank you for your help. 

 

 

VISA Issue Lecroy HDO 6054 Oscilloscope

$
0
0

I'm using a USBTMC to connect to the Oscilloscope, and when I try to "add device" in WaveStudio it says "VISA not installed". Can somebody help me? Also its not showing on my  Windows Device Manager and NI Max.

Error-1074000000 occurred at tektronix DPO MSO 2000 4000 Series.livlib : Error.Query.vi

$
0
0

after having sent the program in run and initialized the instruments, the following error appears during the execution phase of the instructions. 

could someone help me solve it?

Availability of older version of NI-488.2 driver for Windows XP

$
0
0

Hello

I have an LC584A Lecroy scope that I want to update. This can only be done through GPIB and Lecroy's ScopeXplorer, which runs only with Windows XP (or older). I set up an XP machine and borrowed a GPIB-ENET/1000 interface but I can't find the NI-488.2 driver anywhere. The only version I could download only supports the GPIB-ENET/100 interface.

Any help would be greatly appreciated


Lecroy HDO6054 oscilloscope Issue

$
0
0

I have a problem connecting my Oscilloscope to my PC. Its got an OS which I dont know how to disable so that it can be controlled remotely. As of now, it can’t connect to my PC using USBTMC, LXI, or TCP/IP. It wont show up in my NI MAX or Windows Device Driver.

 

Note:I already installed the necessary drivers for the Osclloscope such as NI VISA and etc.

Error message Hex 0xBFFF00AA with Keithley 2400 sourcemeter

$
0
0

I've been trying to connect a Keithley 2400 Sourcemeter to a computer using a GPIB USB HS device,

I'm certain that the device drivers have been installed correctly as the device shows up on the VISA interactive control window.

However, whenever I try to send a command I get an error message saying that the interface is non-genuine and that I should contact National Instruments for support.

I wasn't entirely sure where exactly to ask so I decided to ask here, if this is the wrong place, would you kindly direct me to the correct place?

 

I have attached the error and an image of the GPIB device

Any help would be appreciated

Getting Started: Programming stimulus for Rotational Chair using Manufacturer Controller

$
0
0

Hello, 

 

I am a PhD student and and as part of my research, I am looking to program a custom stimulus using MATLAB that interfaces with a rotational chair. The chair controller contains a chair servo amplifier, control logic, safety controls, power switches, and a computer interface. The manufacturer software provides preset sinusoidal acceleration at different frequencies and peak velocities, however, I would like to program a custom motion stimulus using MATLAB that interfaces with this particular controller. I understand that I would most likely need a data acquisition device from National Instruments that communicates with MATLAB and the chair. However, I am unsure which device I should get. Technical information for the chair controller is reflected below:

 

Chair Controller model 720R-820R 

-Linear Servo Amplifier 

-Model 720R: 110-130VAC @ 900VA

-Model 820R: 220-240VAC @900VA

 

Does anyone out there have any insight on which DAQ device I would need to send and receive data to and from the chair controller. Any advice would be extremely helpful. 

 

Thank you in advance. 

Creating a Sub Vi, in a new Vi.

$
0
0

I am looking to add these different commands *in attachment* to a new vi, so that I can have them all running on one vi. i know there is a way to call vi's but i am having an issue with actually creating one, can i get some help with an example that i could replicate for the other 8-10 commands I have.

 

Regards

Access GPIB-ENET/1000 directly through its IP address

$
0
0

Hello,

 

Is there a resource descriptor for GPIB devices which employs the IP address of a GPIB-ENET interface as the board reference? I know the usual way is to add the GPIB-ENET interface as a network device in MAX to get the GPIBx::y::INSTR resource descriptors. I did so on the development machine. On other machines I'd prefer to have an executable to acquire data from the GPIB devices without installing MAX. Is there any way to access the GPIB devices through the IP address of the interface?

 

Karsten

 

Viewing all 5674 articles
Browse latest View live


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