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

GPIB/ENET 1000 not seen by NI MAX

$
0
0

Hello,

I am trying to link to a GPIB/ENET 1000 via IP address, but NI MAX cannot even see it (see image), even by looking for the actual IP Address, although the PC can ping it (see image). I was used to be able to, but I lost the capability at some point last year.

Anybody has suggestions about what Windows 10 PC configurations might prevent the instrument from being discovered in NI MAX ?GPIB-ENET_2.PNGGPIB-ENET_4.PNG


Virtual Serial Port

$
0
0

I'm trying to run a LabVIEW program on older Window XP computers (small portable with display, bought 10 of them).  I have a USB data acquisition device connected to an USB port.
The virtual serial port is not seen by VI. It does not show in NI MAX either.
But it shows in Device Manager.
It works fine on Windows 7.
Drivers are installed.
Works fine with a terminal program (Win7) .
What could be the problem?
Changing the name to "COM" in Device Manager, as some suggested, was not possible.

erreur de reconnaissance NI USB 6210

$
0
0

Bonjour Je possède une carte NI USB 6210.

J'ai un exécutable fait avec LabVIEW 2016 V16.0f2 J'ai voulu réinstaller de quoi le faire fonctionner (NIVISA1800full.zip/LVRTE2018SP1_f4Patchstd_x86.zip)

Hors au démarrage je me retrouve avec l'erreur "nilvaiu.dll" absent. Il semble que le drivers ne soit pas bien installé le périphérique USB\VID_3923&PID_7269\6&29F11EF&0&5 me marque une erreur, sous Windows n'a pas de driver associé à votre périphérique. Si je sélectionne ni.com/drivers je ne trouve pas comment palier à ce manque. Merci pour votre aide et me donner la bonne procédure.

Je précise je suis sous Windows 10

Bien cordialement,

The alias of Keysight's equipment in MAX disappeared

$
0
0

_0-1633919336969.png

I added an alias to the device in the picture (to be easy to write in the labview software). The device and the computer are always on. When the computer is idle for a long time, the software cannot identify the device. After I open MAX, I find that the alias is empty. This situation will often occur. Does anyone have a similar experience?

 

Unable to read RS-232 in proper format using Linx

$
0
0

I have a system whose output is sent through RS-232. I'm using a Max 232 convertor and reading using Arduino mega controller in serial port 2 using Linx UART. The data is coming at the terminal but some values are represented with symbols, like 1 is represented as "+-", 2 as "^2" and 7 as "." . I used code display to view the incoming data it is not recognizable. No proper format

 

I am able to get the data using the VISA interface & Arduino IDE in proper format, but i want it to work with LINX interface. 

 

RS-232 requires following configuration data bits=7, Parity= Even, flow control= RTS/CTS, Stop bit=1 . I am unable to set these in LINX interface, Is this causing the problem ? If yes how to i set this in linx inteface?

 

Attached by vi of linx and output of incoming data 

checksum calculation

$
0
0

Hello Everyone,

At the first picture is my calculation of checksum. And the second one is the rules explained in the manual. I get always get AAH for the same parameter value, that is used here. How is it possible that mannual says that character ¬.

Thanks in advance.

NI-9871 COM port RJ50 isolated?

$
0
0

Hi all,

 

We would like to know whether the COM port on RJ50 connectors of NI-9871 are electrically isolated from each other and from COM port of external power supply?

 

Regards

Controlling two machine in on VI

$
0
0

Hello everyone,

I have two instruments. One is autowave and another VDS. I need to controll them from same vi. Is it possible?

Here is what i want to do:

1) at first set initilize autowave

2) initilize VDS

3)Send wave form from Autowave.

 

I put these three cases in a state machine. They work as expected. But problem it is stuck in the third case. AS a result, I get the error below. "Object reference is not valid". I think my state machine doesn't reach to the third state. It could be because i am using the same instrument in State on and three.

 

fazlay42_0-1634215283324.png

 

I don't how to use Autowave then VDS and then go back to autowave to do the 3rd task.  

Thanks in advance for any clues.


Farsync Flex VI from windows to linux

$
0
0

Hello,

 

At work we have been using a VI for quite some time (See attached file, Test_TRB.VI).

This VI controls a Farsync Flex in order to get data from a serial port.

However, we have to switch from windows to linux so I'm trying to make this VI work under labview linux.

 

Do you have any idea how to replace an activex object (Windows) and have the VI work in linux ?

I think it is possible to download dll for linux, but how would I implement them ?

 

Kind regards,

Thibaut MILSON

How to use "GPIB-USB-HS" in C#

$
0
0

Hi there,

I have a mission is "use GPIB control several of instruments"

But I am not good at program and first use GPIB-USB-HS.

My boss only gave me previous project, but it's not work now.

 

It's show error code "CS0246" in program.

(Of course I have other error, but I think this is the most important)

I tried to add reference but program didn't work too.

(Project>Add reference>choose "National Instruments 488.2" and "NationalInstruments.Common")

 

using Ivi.Visa;
using NationalInstruments.Visa;

Above is the code with error.

 

I installed NI 488.2 first and I confirm the connection to instrument is successful (by Ni-VISA Interactive Control)

How to solve error code "CS0246"?

or where can I find sample code?

 

 

System: Win10

hardware: GPIB-USB-HS

Visual studio: 2019 community

Project: Windows Forms APP (.NET Framework)

 

Best regards,

 

 

Problem with PL506 H&H Electronic LOAD IN NI MAX

$
0
0

Hello everyone,

I have an issue of communication  with my PL506 H&H electronic load. 

The problem is I can't command the device despite is showing properly on NI MAX when I'm tryin to write and read from the device in VISA test Panel I have this error VISA: (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.

Besides this reference PL506 it's no longer available (drivers, documents & LabVIEW PACKAGE...) therefore I 

found another ref PLA506 instead because after the PL series discontinued, H&H  provide the PLA Series.

Now if anyone have any idea that can help me to command this equipment please don't hesitate.

More infos I'm using USB TO RS232 cable to communicate the PC with PL506 LOAD.

Thanks in advance.

cap 2.PNG

 

Troubleshooting GPIB Segfaults in NI drivers?

$
0
0

Hello Everyone,

 

What is the best way to troubleshoot GPIB segfaults?

 

I am using the Summer 2020 GPIB drivers on RedHat Enterprise Linux 8 (RHEL8) and getting segfaults from the driver's libni4882.so and libnipalu shared libraries.

 

My application is able to start up and run a few GPIB commands, then when it tries to run more commands the application crashes when trying to read data from the GPIB.

 

Running the 'dmesg' command shows the following log entries:

 

segfault at 439ec ip 00007f290b67c012 sp 00007f290493a890 error 4 in libnipalu.so.20.0.0 [7f290b606000+97000]

 

segfault at 7fc014fce2ec ip 00007fc0021bf0d7 sp 00007ffc58712bf8 error 4 in libni4882.so.20.0.0 [7fc0021a1000+52000]

 

Are there any recommendations about how to troubleshoot these segfaults?  

 

For example, are there any environment variables that I can set that will provide more verbose logging or more detailed error messages?

 

Do the GPIB drivers write any log files?  If so, where can I find those log files?

Synchronizing 2 devices

$
0
0

I've just started using labview sometime ago and am just a beginner. I am trying to run a monochromator and a lock in amplifier together using my program such that when the monochromator applies a certain wavelength starting from a user desired value , the lock-in amplifier should measure the current and phase produced by the sample being tested at that wavelength. Then after waiting a certain amount of time (also defined initially by the user), the monochromator should apply the next wavelength on the sample and the lock-in amplifier should measure the current on the next wavelength applied. This should continue until the last applied wavelength and finally the graphs of current vs time, phase vs time and wavelength vs time shall be plotted. Also a graph of wavelength against current should be plotted. I've attached the snippet of my code and would like to know that how can I synchronize these 2 devices in my code such that when the wavelength changes the current reading is taken accordingly so that wavelength vs current data can be obtained. I'd also like to mention that the lock-in amplifier is being triggered using an external frequency. |'d be really grateful for your help 🙂

USB (USBTMC) vs GPIB (IEEE-488) in terms of EM immunity and general robustness

$
0
0

May I ask for opinions based on experience and perhaps some written sources about USB (and USBTMC) and GPIB (IEEE-488) electromagnetic immunity and general robustness for instruments control? Some comparison would be nice. I'm more interested in EMI than bandwidth/latency comparisons.

 

I have some bad experiences with USB (but I'm not sure if it was USBTMC standard). Time flies, stuff changes, so I would like to know if my prejudices are still justified.

 

PS: RS232 could be added to this discussion but it is less important to me.

Excel VBA using VISA crashing (Oct 2021)

$
0
0

Hello,

 

I have been using Excel and Word to interface to test equipment (oscilloscope).

Recently (Oct 2021) Excel is crashing when I try to connect the scope (or any equipment on my GPIB bus).

    Set SCOPE1.Command.IO = io_mgr.Open("GPIB:: 12")

My code is ok as it has always worked before.

Similar code in Word is working fine --> hardware interface and VISA drivers are ok.

 

Looking and the bus data using Agilent Connection Expert IO Monitor I can see the the connection to the equipment is being made but Excel crashes - monitor file attached.

 

Before I try to roll back the Excel version I'd like to eliminate any other possible causes.  Has anyone seen similar problems lately?

 

Thanks,

 

D.


Labview usb communication with CPX400DP power supply

$
0
0

Hello

 

I’m trying to using a Power Supply CPX400DP with LabView via USB port, on a new pc (with Windows 10 OS, Labview 2014 SP1).
The same power supply device correctly works when used on my old pc (Windows XP, Labview 2009), that must nevertheless be substituted.

I’m trying to use the same test VI (attached) containing the basic subVIs for controlling the CPX400DP (initialize, set volt/amp values, ecc., close), and this works perfectly using the old pc, while gives often errors when using the new pc.

The CPX400DP is recognized by the new pc as COM6 when connected with the USB cable: I created in NI-MAX the ASRL:INSTR6 corresponding to COM6, then in the VISA resource name (specified before of the “initialize” VI) control the name “COM6” is specified.

However when I launch the VI, often it returnes an error to me, before establishing any communication.
Sometimes, after switching off/on the USB cable, the VI works correctly, but only for 1 time; then I only obtain error messages unless I switch off/on the USB cable.

Generally the error message is generated by the first subVI (“initialize”), because it is not able to establish the connection.

Sometimes it occurs that the volt/amp levels appear on the power supply front panel after that the VI has been closed (after an error!).

 

The error messages that frequently appear are:

Error code (initial): -1073807339
Error code (final): BFFF0015

If I open the NI-MAX on the new pc, then the information about the CPX only appear within the menu “IVI Drivers”, while in the “Devices” menu it only appear the “ASRL:INSTR6 (COM6)” that I created, but without reference to the specific devices connected.

 

Old pc: Windows XP 32 bit, Labview 2009 32 bit, NI-VISA, driver: lv-cv-CPX400DP-v1.0.0
New pc: Windows 10 64 bit, Labview 2014 SP1 32 bit, NI-VISA, driver: lv-cv-CPX-v1.4.0

 

Help please!!

Thank you
Best regards
Simone

DMM USB-4065万用表

$
0
0

你好,我想要DMM USB-4065的操作手册/说明书,不知道怎么使用该产品。。

Automation Direct STP-MTRD-23065RE Motion Control Program

$
0
0

Hello,

 

I am working on a program on a RT platform (CRIO-9045) to control two of the motors stated in the title.  These motors will operate perpendicular to one another to raster over an area of a specific size once and then repeat that same raster in reverse.  The motors communicate over RS485 and follow the set of commands Automation Direct uses in their SCL Language. I have a program written to control this motion, however, I am having trouble figuring out how to program a hard stop.  The command to be sent to the motors is "ST" to hard stop.

 

I realize that I may have written a spaghetti code program, and I am very open to suggestions as to how I can optimize this (I have 0 prior LabView experience, so please go easy).  If someone could please be so kind as to point me in the right direction to setting up a hard stop button on the front panel, I would be much obliged.

 

Also, please let me know what I can do to improve the flow of my program and the amount of hardware resources that it uses.  I will be glad to provide more details if needed.  Attached you will find the Real Time code and the Motion Control VI I am working with.

VISA资源名称控件会卡顿

$
0
0

在选择串口资源名称的下拉列表时候,控件会卡顿几秒钟,然后才可以列出所有的COM口,这个到底是什么问题呢,Labview使用2018版,VIAS使用NIVISA1850runtime

set measure interval time for Keithley2460

$
0
0

Dear community,

I'm using Keithley 2460 source meter.

I use the below-attached code for measuring continuous current vs time-source as voltage. the code is working fine for me.

But the Measure Interval (ms) time is not working below 11. if I try to set 10 or below that is not working.

The shown error is "the timeout expired before the operation starts".

The resolution of Keithley 2460 is 1 micro sec.

I want to set the Measure interval time as 50micro sec, kindly let me know what I should do for this condition.

 

many thanks

Priya

 

Viewing all 5686 articles
Browse latest View live


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