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

NI Switch Executive "Routes" Read-only on client PC

$
0
0

Hello,

I don't know if this is the appropriate board.

 

So I'm using a PXIe-2529 switch with a 4x32 topology.

 

I've created "Routes" using the Switch Executive tool that I plan to pick from a teststand sequence using IVI Switch step type.

 

I'm wondering how to deploy that on my client station and be able to display those routes if we need in NI MAX. Do I need a special "runtime" version of NI-Switch installed or such thing.

 

Ideally I would like that somehow shown in MAX without the possibility to Edit those routes, in read-only so I have the confidence that my customer can't break the routes by mistake and my code runs properly.

 

Using my development PC I Export those routes to a *.nce file and import them on the customer PC, from there we can see what the routes are without having rights to edit them.

 

Does it make sense?

Thanks for reading


python osx ENET100

$
0
0

hello-trying to setup a couple of instruments with LAN &  GPIB ports.  the instruments are a vector network analyzer (E8362B), Switch Unit (34970), a  chassis (NI 1062Q) with various cards.  the Switch Unit only has a gpib(address=10) port and via the ENET100 and a LAN switch connected to the PXI controller (NI PXIe 8133) which appear to be working ('*IDN?' - okay).  with the main computer(OSX), im trying to use python(3.5)  via the LAN switch and enet100 to send commands to the Switch Unit but have been unsuccessful.  the control of the VNA via LAN is fine, the control of the Switch Unit via a USB-GPIB-HS adapter is fine, using the OSX and enet100/ GPIB path via the LAN switch is the problem.  this is my first time using the national instrument  controller and ENET100, my apologies if this is a trivial ask.

 

visa log

dl=rm.open_resource('GPIB1::10::INSTR')

2018-08-08 17:47:00,072 - pyvisa - DEBUG - viParseRsrcEx(4097L, 'GPIB1::10::INSTR', 'c_ushort(1)', 'c_ushort(1)', <ctypes.c_char_Array_256 object at 0x11706bf80>, <ctypes.c_char_Array_256 object at 0x11706b950>, <ctypes.c_char_Array_256 object at 0x11706b8c0>) -> -1073807195

PXIe-8234 Install

$
0
0

My application is to use the PXIe-8234 as an Ethernet interface to control instrumentation. At this time, I don’t plan on using the imaging/camera capability.  I have a development computer and a test station (deployment) computer both running Windows 7 SP1, TestStand 2017, and LabVIEW 2018.

 

If I don’t plan on using the imaging, what software do I need to run this card? Is VISA enough?

Also, I can’t ping a LAN enabled device stopping the installation process.

 

Further details are attached.

Help with GPIB driver on Ubuntu

$
0
0

I try install ni4882-2.9.1f0 driver on ubuntu 14.04 with command bash ./INSTALL--nodeps and hava error as bellow:

Installing NI-488.2 version 2.9.1f0...
Pre Installation .
Post Installation .
Pre Installation ............
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Preparing...                          ################################# [100%]
	file /usr/local/natinst conflicts between attempted installs of ni4882ki-2.9.1-f0.x86_64 and nipali-2.8.1-f0.i386
	file /usr/local/natinst conflicts between attempted installs of nispyi-2.8.0-f0.i386 and ni4882ki-2.9.1-f0.x86_64
	file /usr/local/natinst conflicts between attempted installs of niiotracei-3.0.2-f0.i386 and nimdnsresponder-2.1.0-f0.i386
Error installing NI-488.2 2.9.1f0.

Installer is aborted.

How to get MAX working

$
0
0

I installed syscfg1800runtime.exe on my WIndows 10 system, but AFAICT it hasn't set up anything to start MAX.  Is that expected?

 

Thanks

David

 

 

Récupérer données enregistrées sur un logger testo 350M/XL 454 via rs232

$
0
0

Bonjour,

 

           Je souhaite récupérer les données de mon logger testo "350M/XL testo 454"

 

Il y a déjà un topic résolu dessus et plusieurs sur cet équipement :

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/labview-amp-testo-toolbox/td-p/981142

 

le vi que je recherche s'appelle :

Control Unit serial Example : Example of exporting readings serially from a t350M/XL Control Unit.

 

si je comprend bien la communication via RS232 n'est pas de type visa, cependant dans cette documentation il est fait référence à un exemple labview qui est présent sur la version 5...

 

En pièce jointe je vous met la documentation. Et une capture d'écran que j'ai retrouvé le vi devrait ressembler à ça :

 

Est ce que par hasard vous auriez ces vi quelque part ?...

Je peux aussi utiliser labwindiws cvi si le seul programme restant est en c.

 

Je veux simplement récupérer les données enregistrées dans mon logger au format ascii ou sous forme de tableur.

 

En pièce jointe une copie de l'image et la documentation ou il est fait référence à ces vi.

 

 

Merci beaucoup, ça m'aiderai énormément.

 

Cordialement,

 

Récupérer données enregistrées sur un logger testo 350M/XL 454 via rs232

$
0
0


Bonjour,

 

           Je souhaite récupérer les données de mon logger testo "350M/XL testo 454"

 

Il y a déjà un topic résolu dessus et plusieurs sur cet équipement :

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/labview-amp-testo-toolbox/td-p/981142

 

le vi que je recherche s'appelle :

Control Unit serial Example : Example of exporting readings serially from a t350M/XL Control Unit.

 

si je comprend bien la communication via RS232 n'est pas de type visa, cependant dans cette documentation il est fait référence à un exemple labview qui est présent sur la version 5...

 

En pièce jointe je vous met la documentation. Et une capture d'écran que j'ai retrouvé le vi devrait ressembler à ça :

 

Est ce que par hasard vous auriez ces vi quelque part ?...

Je peux aussi utiliser labwindiws cvi si le seul programme restant est en c.

 

Je veux simplement récupérer les données enregistrées dans mon logger au format ascii ou sous forme de tableur.

 

En pièce jointe une copie de l'image et la documentation ou il est fait référence à ces vi.

 

 

Merci beaucoup, ça m'aiderai énormément.

 

Cordialement,

Récupérer données enregistrées sur un logger testo 350M/XL 454 via rs232

$
0
0


Bonjour,

 

           Je souhaite récupérer les données de mon logger testo "350M/XL testo 454"

 

Il y a déjà un topic résolu dessus et plusieurs sur cet équipement :

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/labview-amp-testo-toolbox/td-p/981142

 

le vi que je recherche s'appelle :

Control Unit serial Example : Example of exporting readings serially from a t350M/XL Control Unit.

 

si je comprend bien la communication via RS232 n'est pas de type visa, cependant dans cette documentation il est fait référence à un exemple labview qui est présent sur la version 5...

 

En pièce jointe je vous met la documentation. Et une capture d'écran que j'ai retrouvé le vi devrait ressembler à ça :

 

Est ce que par hasard vous auriez ces vi quelque part ?...

Je peux aussi utiliser labwindiws cvi si le seul programme restant est en c.

 

Je veux simplement récupérer les données enregistrées dans mon logger au format ascii ou sous forme de tableur.

 

En pièce jointe une copie de l'image et la documentation ou il est fait référence à ces vi.

 

 

Merci beaucoup, ça m'aiderai énormément.

 

Cordialement,


Can't save IVI Configuration

Error Hex 0xBFFF0015 in NI MAX - Using Laser Scan Micrometer

$
0
0

I am fairly new to using LabVIEW and very new to using LabVIEW for instrument control.

I am currently trying to use LabVIEW to control a Laser Scan Micrometer (Mitutoyo LSM 6200 + LSM 501S) and I have been unable to communicate with the LSM properly at all.

 

I have the LSM hooked up via RS232-USB crossover connection, and it is showing up in MAX as COM4. From there, both the port and the LSM are set to have 9600 Baud Rate and 8N1 Frame with no parity or flow control. 

 

Anytime I send a Write command in VISA test panel, I get some return bytes, but whenever I Query or Read anything I get Error 0xBFFF0015. 

The same thing happens on a couple of other instruments I am working with, but I do not yet have the correct cables for those.

 

I am inclined to believe the error is with the syntax and which I am sending commands. Attached is the manual for the LSM. 

 

http://manualmachine.com/mitutoyo/lsm-6200/670042-user-manual/page:8/

 

The portion on RS232 commands begin in section 6.2.1.4 which is in page 

My termination character is set (both on labview and the LSM) to be a carriage return. This is CR in the LSM, and 0xD in LabVIEW (according to setup in MAX)

I have tried commands such as 'R' and 'STAT' and more followed by 0xD, xD, CR, \r, \n\r, and nothing I do ever gives me anything besides some return bits and that error. 

Am I communicating improperly? What Should I do?

 

Thanks for your time.

Error: Unexpected I/O data termination

$
0
0

Hello,

I am utilizing Visa with the Keysight 34980A. I can communicate with the device and send many commands but when I try and send a simple clear or reset command (lead by an asterisk) like "*CLS" or "*RST" I receive the error: "Error: Unexpected I/O data termination". The command does not work either. This can be seen in the attached image.

 

Does anyone know what the issue is or at least an explanation of the meaning of this error?

 

Thank you.

Problem creating catalog file from inf file in windows 10 home 64-bit

$
0
0

Hello, I am pretty green with instrument control and trying to self- learn how to create USB drivers using VISA.

 

I have a pair of inf files after running the driver wizard and  from the white paper I was reading I am supposed to go to command line and do something like this to get catalog files:

C:\Program Files (x86)\Windows Kits\10\bin\x86>Inf2Cat/driver:C:\Users\Owner\Documents\National Instruments\NI-VISA\prefix\/os:8_X64,8_X86,Server8_X64,Server2008R2_X64,7_X64,7_X86,Server2008_X64,Server2008_X86,Vista_X64,Vista_X86,Server2003_X64,Server2003_X86,XP_X64,XP_X86,2000,10_X86,10_X64,Server10_X64
Operating systems parameter missing.

 

But I get the last line "Operating systems parameter missing" and the catalog file is NOT created.

 

Can someone please tell me what is wrong here.

 

 

VISA serial read never times when using a particular USB devices

$
0
0

LabVIEW 2018, Windows 10 , VISA 17.0

 

Just had a piece of code and USB serial device (ADAM-4561 with a Prolific driver) that has been working for years freeze constantly. The problem is that even though the port is initialized with VISA timeout set to 200 ms, Visa Read *never* returns unless it gets the requested number of bytes...In other words - the timeout never kicks in. We either have to force the application to quit, restart Windows or get a blue screen of death, it varies...

 

The use case is as follows; we flush the buffers, write a short command to an instrument, then run VISA read with the byte count set to 7 as that is the reply header we wait for...Now, if we get those 7 bytes we parse out the length of the message and do another read requesting the remaining number of bytes. However, with this USB device we now suddenly have to make absolutely sure that the receiving buffer actually has that number of bytes already - before read is called (even though, as I mentioned before, the port timeout is set to 200 ms, which should make it return after 200 ms anyway unless the requested number fo bytes arrive within that time.)

 

The workaround is to poll bytes at port repeatedly until the number of bytes have actually arrived, but that kind of defeats why we use the VISA timeout feature in the first place (due to timing constraints we need to maximize the efficiency of the communication).

 

Now, the culprit might be the USB device driver (perhaps it has been updated by Windows at some point), OR it could be related to the change to LabVIEW 2018/VISA 17, which is fairly recent. My question is; is this a known issue with the latter, and/or is there a USB mechanism that is known to cause this behaviour - and if so is there a workaround other than changing the device or use the bytes at port polling solution?

Cannot mount TCP/IP instruments in NI-MAX for Mac OS-X (GPIB/USB/Serial Port are all OK)

$
0
0

I cannot seem to "mount" a TCP/IP based instrument in Ni-MAX for Mac OS-X. The NI-MAX for MAC looks quite different than that for a Windows OS. 

(i) Mounting GPIB/USB2/Serial Port (RS232) instruments in MAC OS-X NI_MAX has been OK

(ii) Mounting all instrumentation in PC/Windows based NI-MAX including TCP/IP instrumentation has not been of a problem

 

In the picture below of NI-MAX in MAC OS-X, many of the common side buttons, including the Device/Network Devices are missing (compared to the version of Windows). Can anyone having used MAC based NI-MAX and TCP/IP instrumentation therein tell me how to get the instrumentation to appear in the list?

The menu items don't have the Devices->Network options either.

 

Many thanks for the comments and help, in advance.

 

 - Santanu 

 

 

NI 5772 Adapter Module PC Connection

$
0
0

I am new to using FPGAs and new to using the NI 5772 Adapter Module.

I do not own the NI FlexRio FPGA but I do own a  KC705 Xilinx FPGA and wanted to know the best way to connect the Adapter Module to my PC.

In the NI 5772 manual it reads:

"The AUX I/O connector accepts a standard, third-party HDMI cable, but the AUX I/O port is not an HDMI interface. Do not connect the AUX I/O port on the NI 5772 to the HDMI port of another device."

Is it safe to connect this to my PC via an HDMI cable or is there a better/safer way to receive the digitized data?

Any help would be greatly appreciated, thanks for your time.

 


VISA serial read never times out with some USB devices

$
0
0

LabVIEW 2018, Windows 10 , VISA 17.0

 

Just had a piece of code and USB serial device (ADAM-4561 with a Prolific driver) that has been working for years freeze constantly. The problem is that even though the port is initialized with VISA timeout set to 200 ms, Visa Read *never* returns unless it gets the requested number of bytes...In other words - the timeout never kicks in. We either have to force the application to quit, restart Windows or get a blue screen of death, it varies...

 

The use case is as follows; we flush the buffers, write a short command to an instrument, then run VISA read with the byte count set to 7 as that is the reply header we wait for...Now, if we get those 7 bytes we parse out the length of the message and do another read requesting the remaining number of bytes. However, with this USB device we now suddenly have to make absolutely sure that the receiving buffer actually has that number of bytes already - before read is called (even though, as I mentioned before, the port timeout is set to 200 ms, which should make it return after 200 ms anyway unless the requested number fo bytes arrive within that time.)

 

The workaround is to poll bytes at port repeatedly until the number of bytes have actually arrived, but that kind of defeats why we use the VISA timeout feature in the first place (due to timing constraints we need to maximize the efficiency of the communication).

 

Now, the culprit might be the USB device driver (perhaps it has been updated by Windows at some point), OR it could be related to the change to LabVIEW 2018/VISA 17, which is fairly recent. My question is; is this a known issue with the latter, and/or is there a USB mechanism that is known to cause this behaviour - and if so is there a workaround other than changing the device or use the bytes at port polling solution?

Filling an array with serial data in a While Loop

$
0
0

Greetings,

 

I am fairly to new to LabVIEW, but I have a decent understanding of how to get things done. But I am currently stuck.

 

Issue:  I am trying to fill an array with serial data while running a While Loop. Only the first element is filled.

 

                  Specifically, I am running a program that accepts inputs of both pressure and diameter. Diameter is being read in from a Laser Scan Micrometer (Mitutoyo LSM 6200 + 501S). The data is read in using VISA Read, which is as a string. I am attempting to convert the string information into a numeric using scan from string (which, as above, is successful for one element). Then, I want to insert each converted piece of data into an array. I have tried this a few different ways, one attempt is attached, below:

 

I am using a While Loop because I want the program to start by running a DAQ box for pressure while simultaneously controlling a pump and the LSM. Then, once enough data is collected (my stop if True is when the size of the pressure  Array reaches sample rate * sample duration) I stop the LSM, the pump and the VI. Note, this stage of the VI only consists of the Daq box and the LSM. I have yet to buy a pump. 

 

Note also the sampling rate of the LSM is hardcoded into the device itself, but I am inputting an equal sampling rate for pressure. 

 

Every time I run I only get one value for Diameter, yet I fill all of my values for pressure. What am I doing wrong?

 

Thanks for your time,

Matt

Filling an array with serial data in a While Loop

$
0
0

Greetings,

 

I am fairly to new to LabVIEW, but I have a decent understanding of how to get things done. But I am currently stuck.

 

Issue:  I am trying to fill an array with serial data while running a While Loop. Only the first element is filled.

 

                  Specifically, I am running a program that accepts inputs of both pressure and diameter. Diameter is being read in from a Laser Scan Micrometer (Mitutoyo LSM 6200 + 501S). The data is read in using VISA Read, which is as a string. I am attempting to convert the string information into a numeric using scan from string (which, as above, is successful for one element). Then, I want to insert each converted piece of data into an array. I have tried this a few different ways, one attempt is attached, below:

 

I am using a While Loop because I want the program to start by running a DAQ box for pressure while simultaneously controlling a pump and the LSM. Then, once enough data is collected (my stop if True is when the size of the pressure  Array reaches sample rate * sample duration) I stop the LSM, the pump and the VI. Note, this stage of the VI only consists of the Daq box and the LSM. I have yet to buy a pump. 

 

Note also the sampling rate of the LSM is hardcoded into the device itself, but I am inputting an equal sampling rate for pressure. 

 

Every time I run I only get one value for Diameter, yet I fill all of my values for pressure. What am I doing wrong?

 

Thanks for your time,

Matt

Remote terminal to bus controller data transfer program

$
0
0

Hello,

 i am using astronics  ballard avionics MIL-STD-1553 data bus.I am new in this area.please provide RT to BC data transfer program.

 thank u.

RS-232 and GPIB communication problem Keithley 6517B

$
0
0

Hello.

I test my own software written in Python language using py-visa and NI drivers to communicate with electrometer Keithley 6517B and 6517B using RS-232, ENET100 and USB to GPIB.

My main problem is that sometimes (after 3 hours, 1 day, 3 days, i don't see any regularity) electrometer hangs up. I start infinite acquisition and then don't change any parameters of communication, measurement set-up, electrometer, cables and anything during measurement. After the occurrence of the problem I can't do anything with device (no button on the front panel reacts, including "local" button).

I've got this problem on two same devices Keithley 6517B and one Keithley 6517A- still got the same problem.

 

There was one problem with long term stability (regular disconnecting), but when I one time in an hour send to electrometers comands:

'trace:clear'

'traceSmiley Tongueoints 1'

'trace:feed:control always'

'initiate:continuous 1'

the problem of regular disconnecting disappeared.

 

- I was working on Windows XP, Windows 10 and Armbian (Orange Pi),

- 9600 baud rate was set for RS-232.

- I get data using only fetch? and read command. Nothing more happens on infinite loop.

- I get points in 3s period

- The device works on current mode on nearly constant level

- I attach electrometer settings (config.cfg) that I send after communication is established (not always but it doesn't matter)

 

Thanks for Your help.

Viewing all 5662 articles
Browse latest View live


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