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

RS 232 Communication Initialization

$
0
0

Hello everyone, 

 

my name is Carl and I have a problem communicating with a Mass Flow Controller. Before developing a more advanced program I wanted to check the communication and how this works ( I'm new to LabView, only had Matlab and Scala so far ).

As my simple VI is not working I checked if a very simple RS232 communication tool would work (Termite 3.2). It does with the following settings: (IMG_1868)

 

Very important was the Append CR setting. Then I tried to adapt the settings to my VI. But somehow I think I got the Append CR setting wrong. It is a termination char setting and 13 is the decimal corresponding to carriage return according to different tables I've found in the internet. 

 

My VI is sending a text command and reading the answer every second. The LED shows if there is something read. 

 

As the communication is working with the termite tool it has to be a problem with my VI and the VISA settings. 

 

Thank you very much for you help!

 

Carl


USB-6525 not controllable by VISA

$
0
0

Hello,

I have acquired an USB-6525 and I'm trying to make it works on a debian Jessie distribution : 3.16.0-4-amd64

 

After several web research , I managed to make NidaqmxBase 15 works on this distribution.

I have installed NI VISA 16 too,

I have lsdaq operational, as well as all scripts in /usr/local/vxipnp/linux/NIvisa

 

My problem is the following now :

-lsdaq and the example code ../Nivisa/Example/C/FindRsrc don't see the USB-6525 .

 

-lsusb see the USB-6525 , but there is no driver attached to it:

 

Bus 003 Device 003: ID 3923:71df National Instruments Corp.

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 2.00

bDeviceClass 0 (Defined at Interface level)

bDeviceSubClass 0

bDeviceProtocol 0

bMaxPacketSize0 64

idVendor 0x3923 National Instruments Corp.

idProduct 0x71df

bcdDevice 1.04

iManufacturer 1 National Instruments

iProduct 2 NI USB-6525

 

-lsmod show that the module are launched:

nimxdfk 438900 1

nipxirmk 285664 1

nidimk 322053 3 nipxirmk,NiViPxiK

nimdbgk 315452 3 nipxirmk,nimxdfk

niorbk 74497 4 nipxirmk,nimdbgk,nimxdfk,nidimk

nipalk 937642 9 nipxirmk,NiViPciK,NiViPxiK,nimdbgk,nimxdfk,nidimk,niorbk

binfmt_misc 16949 1

nikal 75471 7 nipxirmk,NiViPxiK,nimdbgk,nimxdfk,nidimk,nipalk,niorbk

 

 

-visaconf is able to see the USB 6525 as USB RAW ( see picture).

-Nivisaic is able to see the USB 6525 but any query from it reachs a timeout (see picture).

 

 

is nidaqMxbase supposing linking a driver to any usb nidaq or do I miss something ?

Is USB 6525 supported in linux ? ( the NI site information seems to show that is not)

 

Otherwise, is there any way to communicate with this device using the /dev/bus/usbXXX ?

like a documentation about the command to send for example.

 

 

I have also install NI VISA 16 on a windows 7 PC and tried USB 6525 on it, NI-VISA Interactive Control see it but fail to perform any query action like above to,

PyVisa (python) does not see it too even if I used NI-VISA Driver Wizard to generate a driver and install it.

 

my aim is to control the USB-6525 through VISA API, but so far it fail to be reconigzed by it on both Linux and Windows.

 

 

VISA: (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.

$
0
0

Hello all,

 

I am using a translator board from SDI-12 to RS232 and am trying to configure the RS232 communicaiton with VISA however on the interactive control I am coming up with the following error code:

VISA:  (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.

I can get readings from the sensor at what seems at random intervals through LV when I query however this is the error I have at the VISA Interface Control under the View Attributes tab.

Here are some screenshots of the configuration and errors.

SerialSettings.pngIOSettings.pngViewAttributes.png

 

NI-STS UF3000 EX Prober Driver

$
0
0

Hi


I am using NI-STS for my wafer sort. Today we were asked to move on a new prober from Accrytech UF3000 EX. Is there a driver available for this prober. If so where can I download these NI-STS prober drivers.

 

Thanks

Vamsi9996

Siglent Strange VISA Behavior

$
0
0

I am puzzled by VISA communications.  Everything I've read always talks about opening and closing sessions when "done communicating".  This problem is one that I've faced over and over and I always revert back to just allowing LabVIEW to take care of it for me.  So, here goes:

 

I've been recently communicating with a Siglent SDS3303C power supply and I'm getting such strange behavior.  I finally dumbed down my communications to this simple routine:  Open, write, Close.  What is not shown for simplicity is that I wrapped a case structure to bypass both the open and close section of code.  If I ignore both the open and close functions I can communicate all day long without any problems.  But, that's not how I originally designed the routines.  I originally wished them to perform such as the case below.  Where I would open a session, communicate, and then close the session.  So, here's where it gets odd.  If I use this method shown below I am able to send a command.  The VI finishes execution with no errors.  I send a second command, the VI finishes execution again without errors.  The third time around, all communication fails to work.  And I still receive no errors.  At this point I'm in a state of no communication.  If I remove the opens and closes (actually opens seem to have no effect on this), it takes TWO runs of the VI before commands sent begin to be received by the instrument.  I've also tried Asynchronous and Synchronous communication (though I doubt that would matter in such a simple case.)

 

So the question is why does this occur?  What tools can I use to diagnose what is happening?  Why does opening and closing cause such a ruckus?  And why is it on the THIRD attempt that the communication finally breaks down?

 

I have a delay inserted between each operation and the timing seems to have no affect.  I've placed delays in between each operation between 0 and 10 seconds (the number is in milliseconds).  How can I dig further into this to discover what is really happening?

 

And just to vent...Why on earth should I ever bother with opens and closes?  I mean, they just seem to cause me nothing but headaches!...Don't answer that.

 

Simple Open - Write - Close.jpg

Question on multiplex sampling / simultaneous sample & hold

$
0
0

Hello together,

 

I own a NI USB 6211 board which works very well. However I am trying to understand how exactly multiple channels are being converted from analog to digital. Therefore I drew two pictures with the way I understand multiplexing and simultaneous sample & hold. It would be great if you would check it and correct any errors I made

 

Thanks

multiplexing (?).png

 

 

and 

simultaneous sample & hold (?)

 

 

 

Can I find the exact conversion timestamp with the 6211 device?

 

Best regards

Serial Modbus RTU Timeout Error

$
0
0

Hello,

 

I have problem with communication with Mitsubishi Electric 96NSR via Modbus RTU. Device has RS485-USB converter. I tested connection in MAX. I can write, but when I try to read, I encounter Timeout Error (Hex 0xBFFF0015). Could anyone help me with my problem? I use Labview 2015 (32 bit)/ Windows 10

 

MAX Settings:
Baud rate: 38400

Parity: none

Flow control: none

Data bits: 8

Stop bits: 2

Timeout: 2000 ms ( I tried also 10000ms )

 

PS. I checked the connection with Modbus Poll with same settings and it worked fine.

 

Modbus IO server error -1967353900

$
0
0

I am using the NI 9871 module in a cRIO-9066 chassi to do Modbus communication.

I have deployed Modbus I/O Server 16, NI-VISA 16, NI-VISA Server 16, NI-Serial 9871 Scan Engine Support 15 to the Realtime system (and of course a lot of other packages)

 

When I try to use read a variable from the Modbus I/O Server (regardless whether on the host or on the target) I get the error -1967353900 (The Modbus I/O server failed to allocate a serial port) The vi I use does nothing except reading a Modbus I/O variable.

 

I can open the serial port I am using with the VISA Test Panel, and manually send a Modbus command to the device I am trying to communicate with, and receive a correct Modbus answer.

I have read "Troubleshooting Modbus I/O Servers" but it does not help me.

Does anyone have an idea what the problem is?

 

(I have an ongoing service request on this issue, but I thought it would be useful to ask the communutiy at the same time)


NI-XNET and CAN-FD

$
0
0

Hello,

The NI website mentionned that XNET interfaces are CAN-FD compliant. Could you confirm to me which are the XNET interfaces compliant with the CAN FD 11898-2:2015 standard ?

 

Regards,

Connecting an instrument using GPIB-USB connection.

$
0
0

I am trying to use a GPIB-USB adapter to control a Source Measurement Unit from LabView. However, I am having trouble getting my instrument drivers to recognize the GPIB address that specified for the device. I've attached an image below of address specified by IO Keysight Connection Expert. I am currently trying to initialized the SMU with the GPIB driver I've attached below. Due to my limited knowledge on instrument control in LabView, how should I approach gathering the correct GPIB address and recognizing it within my VI?

connection failure (error code : -1073807202)

$
0
0

I have agilent G1313A autosampler and wnat to control it with LabVIEW.

I downloaded ag1100 Simple Standard Autosampler Example.vi and executed it.

But, error -1073807202 occurred at VISA Open in ag1100 Initiallize.vi.

I only typed TCPIP:Smiley Sadip address)::9100:Smiley FrustratedOCKET at the VISA resource name and false constant is input of Reset?.

How can I solve this problem?

NI MAX all GPIB instruments have a red cross

$
0
0

We have a few systems where all GPIB instruments have a red cross overlay.  However, clicking on communicate with instrument and getting the IDN, for those instruments that respond to *IDN?, returns the correct string.  Running our LabVIEW programs, we can talk to the devices without any trouble. What is the underlying cause of this overlay and how to correct it.?

Can I use KUSB 488B with Lockin SR 830

$
0
0

Can I use KUSB 488B with Lockin SR 830 for data transfer purpose? Is it compatible?

 

Thanks 

Error connecting to GPIB driver or device

$
0
0

 We are usning Windows Surface Pro 3 running Windows 81.

Software is LabVIEW 2013 service pack 1 version 13.0.1f2

The Surface is connected to a powered StarTech usb hub.

A NI USB-TC01 is connected to the hub 

Our PIPS equipment is also connected to the hub via the ethernet connection

The NI USB-TC01 is used to take temperature reading from the PIPS

When the LabVIEW is launched and a temperature reading is attempted we get the following error.

LabVIEW: error connecting to GPIB driver of device.

It is necessary to us the usb hub because the Windows Surface only has one usb port and no ethernet ports.

Is there a problem using a usb hub with the NI USB-TC01? If so is there anyway to install the driver on the computer.

We have 4 of the Windows Surfaces and for some reason we haven't figured out, it works on one of them.

Anyone have any ideas?

how to disable ni spy

$
0
0

Hi guys,

I have develop a controller to communicating with instrument using gpib. we can see all called 488 functions that was used in controller application by ni spy, Is there a way to stop ni spy listening since we do not want others know how our controller works?  thanks!!!


Daytronic 4077 serial rs232 to usb

$
0
0

I was wondering if anyone has ever had issues with the driver for the Daytronic 4077 strain gage controller.  I keep having the same error pop up in LabView 2015 which says: 

 

"Serial port initialization failed.  Check error codes on panel of "Serial Port INIT" VI."  

 

I have tried using a RS232 to usb connection I know works with a multimeter I am currently using on my computer.  I am running a laptop with Windows 10 as the operating system.  I thought the driver may not have been updated for the most current version of windows, so I found an older laptop with Windows 7.  I still ended up getting the same error using this older machine.  The error code 1073807302 is the error code which pops up and doesn't matter which VI I am running from the driver download.

 

I am wondering if anyone has anyother ideas on how to fix this problem.  Thanks for the help.

Can GPIB Analyzer intercept message ?

$
0
0

We know that GPIB Analyzer can capture message between controller and instrument. Is it possible to monitor one command from controller and stop forwarding to instrument?  We just want to control talker to stop sending one command to listener.  

Thanks!!!

two apllication communicate with a GPIB device

$
0
0

Hi,
an application is running in background communicate with the Maschine, sends and recieves his own Data. My Application should send also his commands to contol the Maschine. It comes somethimes to crash. As an application waits to recieve Data from the Machine and the other application send Data to the Machine. I uses ThreadIbasta to check the current state before i send a command. But with the one and same 'Ibsta' value (and no error) once i get error once not. 
If i stop the backrground application everything works properly with my application, but the background application mus run too.In one sentense, how can i findout the right time to send a command to a GPIB device while other application is communicate with the same device?
Thanks

 

 

 

 

VISA read of serial data issue

$
0
0

Hello,

I'm starting back to Labview (after a few years) and I've a problem with a basic Serial Read program (using VISA).  The code is attached, and my issue is that I'm getting output of "FE FE FE", when I can see in Putty terminal it is counting upwards in integers indefinitely - I can't quite grasp what is going wrong here (after much trial and error), so any help would be appreciated.

Thanks

Rob

Newport ESP300 RS232

$
0
0

I've been trying for a few days now with no luck to control a Newport ESP300 motion controller with NI-VISA through RS232. It seems like it should be straightforward, but everytime I try, I get this:

 

Read Operation
Error

 

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

 

This started with trying to use Python and pyVisa to control it, but I get the same error there. Am I missing something obvious? Any help is appreciated!

Viewing all 5661 articles
Browse latest View live


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