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

Création IVI Custom Class avec LabWindows - front panel refusé par le wizard

$
0
0

Bonjour, 

Je suis en train de creer un classe custom pour des cartes avec des GPios , adcs et dacs.

J'ai fait un driver à partir de la classe General Pupose.

Mais lorsque que je veut creer la classe avec le front panel , Labwindows me dit qu'il manque des fonctions prototypes. C'est aussi le cas si on veut dupliquer la classe switch par exemple. 

Il me semble qu'il manque les fonctions nécéssaires à la simulation :

- myClass_SimulationInit

- myClass_SimulationClose

- myClass_InitSimStatus

Mais je ne connais ni les fonctions prototypes, ni ce qu'elles doivent contenir.

Quelqu'un peut m'aider ? , Je travaille avec Labwindows 2013 SP2

 


NI DAQmx Base dying on startup with segmentation violation under Redhat 6

$
0
0

Hi All,

 

I am running NI-DAQmx Base 15.0.0 under RedHat Enterprise Linux 6.6.  It runs fine on machines with only a few cores where is starts up 5-30 threads.  But I also have a server with 24 processors where 90+ threads are started.  Frequently, my process will die on startup with a segmentation violation error "Attempt to reference address: 0x0x4".  Immediately re-running the process works fine each time.

 

Is there a way to limit how many threads are started.  I see in the lvrt_15.0f1 log file in /tmp that InitExecSystem() determines how many processors there are and adjusts the number of threads according to that.

 

Thanks

Paul

Not able to read serial data at higher frquency

$
0
0

I want to collect data from the sensor using serial port and for that I am using NI visa Labview programming. I am attaching my file for reference. My problem is when I set the frequency of the sensor at 100 hz it is working fine however if I increased it to 1000 Hz , it shows me error 1073807253 which is a framing error. Can someone help me to solve my problem ? My baud rate remains same for both frequency. 

What is the 'Scan for Instruments' sequence for a GPIB-USB-HS+

$
0
0

I am recreating a GPIB interface for a system. I have a problem getting the GPIB-USB-HS+ to recognise the device when I 'Scan for Instruments'. It seems to occasionally recognises a device and let me start using the NI-VISA tools. When this happens I can then send write and read commands sucessfully.

My question is this, what is the sequence does the system use to scan for devices on the bus?

I have attached a trace of the results that I am getting. It appears to be scanning each primary and seconary address, but I can't see it initiating an *idn? command. When I get a device show up from a scan then it says that it didn't get a response from the "*idn? command sent.

Is there any way of getting the system to only check the primary address that I am using?

 

 

VISA library not loaded (Error -1073807202)

$
0
0

Hello,

 

I have been using Labview 2015 (32 bit) to communicate GPIB instruments. After upgrading to Labview 2016, it reports an error (Error -1073807202) whenever I try to communicate a GPIB instrument. When I upgraded the Labview to 2016, I also upgraded NI VISA to 16.0 from the same installation package. I checked the visa*.dll files and the required dll files (visa32.dll, visa64.dll and so forth) seem to be all in correct places. NI-MAX recognizes the NI-VISA driver and communicates well with the GPIB instrument.

 

Below is what I have tried so far but nothing worked.

 

(1) Repair NI-VISA 16.0

(2) Remove/Reinstall NI-VISA 16.0

(3) Remove all the NI softwares (Labview's and drivers) and reinstall Labview 2016 and the NI-VISA 16.0.

(4) Install NI-VISA 17.0

(5) Repair NI-VISA 17.0

 

By the way, I have another desktop computer, which shows same symptoms after upgrading. I have a laptop computer that works fine with Labview 2016, but this laptop computer has never had NI softwares before.

 

The computers (two desktops with the problem and the laptop without the problem) all have Windows 7 Enterprise SP1 OS and I installed LabView 2016 64 bit version.

 

Thanks.

RS232 communication

$
0
0

Hello sir,

I want to communicate IT100 and Logic Machines server through RS232.Both having rs232 output. I have connected  gnd to gnd. TX to Rx , Rx to Tx

But I didnt see anything as output.

 

Please help me

 

Communication with Keithley 2700 via GPIB

$
0
0

Hello!

I am trying to connect a Keithley 2700 device to a windows 7 PC via GPIB.  Specifically, I am using Keithley's KUSB-488B (USB to GPIB interface).

 

I want to be able to send signals via Python and so I have downloaded NI VISA.  However, Python's resource manager is not seeing the GPIB device.  Windows device manager shows the device. When I open NI MAX and the device is not listed.  

 

NI MAX.PNG

 

 

However, when I open VISA interactive control the device can be seen.VISA interactive control.PNG

 

 

I can successfully write to the device.

write.PNG

 

However, I can only occasionally successfully query it and can never successfully read it.   When I try to read it I get the following error: 

Read Operation
Error

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

 

Sometimes when I query it I get that same error and sometimes I get: 

query.PNG

 

I have installed all the drivers from the disc which came with the KUSB-448B. The device appears in the keithley GPIB configuration utility.  However, the device appears as "unknown instrument" instead of appearing with its full name and model as it should.

 

Any help on this issue would be greatly appreciated!  

 

All the best,

Sinead

NI-DCPwr ignores IVI DriverSetup String set in NI MAX

$
0
0

Hi everyone,

I want to specify the simulated instrument Model in the "Driver Setup" field in NI MAX. In NI MAX I gave the Driver Setup as follows:

Model:4137

I then create an instance by calling the `IviDCPwr_init` function. However if  I then query the `IVIDCPWR_ATTR_INSTRUMENT_MODEL` attribute, I see that the option was ignored and only a 'NI PXI-4110' was created instead of the 4137.

 

What am I doing wrong?

 

(The only workaround I found is to I use the `IviDCPwr_InitWithOptions` function and pass the option string as a parameter. But I want to be able to configure the options in NI MAX.)


GPIB-USB-HS - This device cannot start. (Code 10) -

$
0
0

Hello, I'm having a problem with a GPIB-USB-HS. The device can no longer communicate with other lab equipment. 

 

The unit appears in "Devices and Interfaces" in "Measurement and Automation Explorer". However I receive the message "This device cannot start. (Code 10)" when looking at the properties in device manager.


I have installed the most recent version of NI-488.2 (version 17)

 

This unit was working properly for about 2 years. 

 

Has anyone else experienced a similar problem?

sbRIO 9637 RS232 communication with Amulet Touchscreen Display - Checksum Error

$
0
0

Hej there,

hopefully I am posting on the correct board for my topic!

 

I am currently facing some problems with the serial connection of a sbRIO 9637 system with an Amulet Touchscreen Display. Therefore I am hoping to get some advices on how to establish the serial communication between both devices.

 

At that moment I did the following: First I got started by using the example code of Amulet Technologies API to get a first impression on how to work with the Touchscreen Display. That worked fine for my laptop. On my laptop I am using an RS232 USB-adapter to attach the Display to my computer (cables are self-build). All example Vis from Amulet work fine and I do not have anything to complain about.

 

Second I wanted to do the same with my Desktop Computer which has an internal serial port. There I am always getting a Checksum Error on the example Vis on the first serial read after a few seconds. I tried around by the configuration settings of the COM-port but I have not managed to get it to work without any errors.

 

Third I established a connection between the sbRIO 9637 and my laptop (with USB-serial converter) to test the self build cables which I want to use between the sbRIO 9637 and the Amulet Display. Therefore I used the NI Example continuous serial read/write which I run on my laptop and which I put on the sbRIO 9637 – just to test if both is working: can I sent a string from my sbRIO and receive it over the serial connection on my laptop and vice versa. That worked as well fine for me.

 

Finally I wanted to connect the sbRIO with the Amulet display and test it with the examples provided by Amulet Technologies. Unfortunately I directly get a checksum error on the first serial read.

 

I got the impression that this is the same problem as I am facing with the build in COM-port on my desktop pc, but I do not know how to troubleshoot on. Actually the only thing I want to do with my sbRIO  is to read a value of the internal RAM of the Amulet display.

I feel all is related to the configuration of the serial port on the sbRIO/Desktop pc and on the Amulet Display. Do you have any advices how to go on to get it to work?

We are using LabVIEW 2017, I have installed the latest Amulet API 1.0.0.30. On my laptop I am running Windows 10 and on my desktop Windows 7. On the sbRIO I am using the Instr2-port but the console is also not enabled, so I could also use Instr1-port of the sbRIO.

 

If you need further details please do not hesitate to ask for them.

 

Thank you for your help and best regards,

 

Florian

 

 

Agilent 34970 "Not able to execute command in local mode" when operating over USB adapter

$
0
0

I'm working on a piece of LabView software and and can't seem to take readings from the Agilent 34970 Data Logger we're working with when we use USB to connect to the instrument. I'm able to take readings and communicate with the instrument over Ethernet, but the USB connection just produces the error "Not able to execute command in local mode".

 

It sounds like there should be a pretty simple fix - I just need to take the device out of local mode - but... I don't know how to do that. I've looked through the manual for the device and tried some google-fu but can't figure it out.

 

This is my first real LabView project and I think my inexperience is getting the better of me. Does anyone have any pointers?

Timeout error every other GPIB command

$
0
0

Hi,

I am sending periodically same GPIB command "*IDN?\n' to my instrument. I am talking via the GPIB interface. This works perfectly on the NI VISA test panel. If I ran it in my program I will get the first command response correctly, the second time will fail with timeout, the third will be fine and the fourth will fail and so on. I have checked and there is no loops in my GPIB setup.

 

I tried to slow down the periodic with longer interval but it did not help 

Any thoughts?

 

Thanks

 

 

C:\Windows\System32>python -m visa info
Machine Details:
Platform ID: Windows-7-6.1.7601-SP1
Processor: Intel64 Family 6 Model 60 Stepping 3, Genuine

Python:
Implementation: CPython
Executable: C:\Program Files (x86)\Python36-32\python.exe
Version: 3.6.1
Compiler: MSC v.1900 32 bit (Intel)
Bits: 32bit
Build: Mar 21 2017 17:54:52 (#v3.6.1:69c0db5)
Unicode: UCS4

PyVISA Version: 1.8

Backends:
ni:
Version: 1.8 (bundled with PyVISA)
#1: C:\Windows\system32\visa32.dll:
found by: auto
bitness: 32
Vendor: National Instruments
Impl. Version: 17825792
Spec. Version: 5244672
#2: C:\Windows\system32\visa32.dll:
found by: auto
bitness: 32
Vendor: National Instruments
Impl. Version: 17825792
Spec. Version: 5244672

Chroma 61502 delay measurement problem

$
0
0

Hello everyone,

I have a problem with delay time measurement - I've programed the Chroma 61502 and on changing the AC voltage, the current Iac measurements takes very long time to respond. As you can see in the picture I've attached it takes 9-10 seconds to display the value on the front panel. Sometimes it can pass 10 seconds and will take 15 seconds and sometimes even more. I'm attacing here a print screen of front panel of array of times and the VI I've build. 

I'd be happy for help.

How to obtain measurements from multiple identical instruments in parallel

$
0
0

Hi,

 

I have 3 transducers connected in a RS-485 multi-drop network using a USB to serial converter. I would like to be able to obtain measurements from these transducers quickly (upwards of 50 Hz) and with each individual measurement having minimal time difference from the others.

 

Currently I am using the timed loop structure with a sequence inside to write a query to each instrument, and then another timed loop with a sequence inside to read the responses. This works but is terribly slow and currently only talks to two transducers.

 

I am new to labview (and these kinds of problems in general) but if anyone can offer some ideas of how to better approach this problem, I would be extremely grateful!

 

Thanks in advance.

Lecroy 2551 Scaler Driver for camac

$
0
0

Hi all,

I have data acquisition system including camac crate with 8901a gpib and  lecroy 2551 scaler. I need C library for lecroy 2551 scaler. I couldn't find lecroy  2551  driver for camac on the forum. I would really appreciate if anyone could help me with this one. Has anyone already built a driver that I could use?


GPIB-USB-HS does not have a GPIB Instrument ID

$
0
0

I uninstalled NI488.2 version 16.0 and installed version 15.5 on my Windows 7 laptop. All my GPIB control applications stopped working. I opened NI-Max and my GPIB adapter is present but identifies itself as GPIB-USB-HS"USB\VID_3923&PIG_709B\0194E6A6" instead of the normal GPIB-USB-HS "gpib0". The settings do not show a GPIB Interface ID dropdown box, only a name and the name is blank. What happened?

GPIB.jpg

Please help me to find LabVIEW - NEXYGEN Interface Driver

$
0
0

Hello all,

Please help me to find LabVIEW - NEXYGEN Interface Driver

Instrument Ethernet Communications

$
0
0

I have a utility written in LabVIEW 2016 and am attempting to run it on a Win10 system running LabVIEW Runtime 2016f2 with Meas & Auto Explorer 17.0.0f0 also installed.

 

Operating System(OS) Windows 10 Home Edition
OS Version 10.00.15063
OS Info
Processor Intel(R) Core(TM) i3-4170 CPU @ 3.70GHz / Intel64 Family 6 Model 60 Stepping 3 / GenuineIntel / 3691 MHz
Number of Processors 4
Physical Memory 3.91 GB of RAM
Drive C:\ 380 GB of 433 GB free

National Instruments Software: Version:

NI-488.2 Runtime 16.0.0
NI I/O Trace 17.0.0f0
LabVIEW Runtime 2015 SP1 f7 15.0.1
Measurement & Automation Explorer 17.0.0f0
NI-USI 15.0.2.6343
NI PXI Platform Services Configuration 17.0.0f0
NI PXI Platform Services Runtime 17.0.0f0
NI-PAL Software 17.0.0
NI 1588-2008 Network Management 17.0.0 17.0.0f0
NI System Configuration 17.0.0f0
NI-VISA 17.0
NiVisaServer.exe 17.0.0.49152
NIvisaic.exe 16.0.0.49152
NI-VISA Runtime 17.0
LabVIEW Runtime 2016 f2 16.0.0

 

I am able to use cmd prompt and ping any device on the network. Additionally, the software utility "TekVISA" is able to see and talk to any device active on the network.

When I try to connect using NI MAX, even if I directly enter the IP address, the device(s) cannot be loctated.

 

AD 9910 Control using USB 8451

$
0
0

Hello I have been trying to control AD9910 through  LabVIEW using NI USB 8451 I can see the sync clock at 1/8 value which is a known state. The clock changes to 1/4 value after writing to registers. I cant write to the registers. I was successful doing the same with Arduino. Can anyone help me with this. I have attached the code.

 

Also AD 9910 has a bidirectional SDIO. Would that affect the programming ?

HM8118 Hameg usb connection issue

$
0
0

Greeting all 

 

                I’m sorry to bother you but I was wondering if you could help me with a software Issue. I’ve the HM8118 LCR Bridge/Meter (Rohde&Schwarz), and I used it regularly for logging data with the LabVIEW interface. Recently I haven’t been able to save the data in the computer I use because it seems there is some trouble with the labview interface, at first I thought it was the driver, but my computer does recognize the HM8118 well but the labview project doesn’t. I have tried reinstalling the driver and even changed the labview version (2013, 2014 and 2015), but still I haven’t been able to log data or to even recognize the device with the sw.

 Picture01.JPG

Picture02.png

Picture03.png

I hope you can understand and give me some piece of advice, thanks in advance for your attention and best regards.

Viewing all 5665 articles
Browse latest View live


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