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

Driver files for Ni-9861

$
0
0

Hello all,

 

Does anyone have the driver files for NI-9861, or the path where the driver files are located?

Device manager recognises "NI 9861", but not able to find drivers for it.

i have installed Xnet 17.5 (alsto tried 17.01), but the driver is not loaded. cDAQ-9171 works fine.

Running on windows 7 sp1

I also have NI-can 17 installed.

 

 


Keithley 2400 Continuous Voltage Sweeps

$
0
0

Hi Guys,

I'm working on developing a measurement system to measure resistance as a function of time. I am measuring samples with resistances on the order of a few hundred Mohms, which are out of the range of the Keithley 2400 (can only measure resistances up to 200 Mohms). Since I can't measure resistance "directly", I can get resistance "indirectly" by producing an IV curve (sweeping voltage (V) sweep and measuring current (I)). I need to be able to measure quickly, on the order of 10 IV curves / per second. These 10 curves are then averaged, so for each second, I have one resistance data point.

 

I have a working program where I am able to continuously sweep V and measure I, and I am able to adjust the measurement speed by changing the Power Line Cycles (PLC). The user specifies the desired number of IV curves per second (sample rate more or less) and the number of steps in the IV curve. Using this info and an EU cycle of 50 hz, I can calculate the required PLC (see attached picture). The lower the PLC, the faster the measurements takes (at a potential cost of accuracy).

 

After calculating the PLC, I configure the Keithley, but next problem is the continuous voltage sweeps. In order to do the voltage sweeps, I use a for loop within a while loop (see attached). I use data buffering to speed up the data acquisition loop. A few things aren't shown, but might be helpful to know:

The for loop runs the number of times specified by the user ( number of IV curves per second)

The input to the Keithley read subVI is the number of steps in the IV curve

The outputs from the Keithley read subVI are the voltages, current measurements, and the time stamp of each measurement

The loop where I process the data

I have autozero off to speed up measurements

 

After testing, I noticed that it takes longer than 1 second to complete one measurement cycle (x amounts of voltage sweeps in one second), and thinking about it now, I need to account for the time delay between LabVIEW sending Keithley the read command and Keithley sending the data back to LabVIEW (communication to/from computer). What would be the best way to do it?

 

One option I have thought of would be programming a PID controller at the beggining to adjust PLC so that every 1 second, I have exactly x voltage sweeps taken each second. Basically, I calculate the PLC using the inputed info and run the measurment (x sweeps in one second). Then, taking the difference between the first time stamp and the last time stamp outputed by the Keithley, I calculated the actual time it took to complete x voltage sweeps. Using this time I calculated, I feed it into a PID controlled, that adjust the PLC until it I get x voltage sweeps in one second. Does that make sense?

 

I hope I have made myself clear, and if anyone else has any suggestions on a better way to do continuous voltage sweeps, I would greatly appreciate it! 

 

 

Linux use visa?

$
0
0

I now have to use visa on linux(ubuntu) system, but can not find recource, it will print "num is 0" in below code, but lsusb have the device(keithley 2230)

how to use visa to control device on linux system? thanks!

 

zewen@zewen-OptiPlex-7040:~$ lsusb 
Bus 001 Device 002: ID 248a:5320  
Bus 001 Device 015: ID 05e6:2230 Keithley Instruments 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

status = viOpenDefaultRM(&defaultRM);

if(status < VI_SUCCESS)
	printf("viopendefaultrm error!\n");
else 
	printf("viopendefaultrm success!\n"); //print this line

ErrorStatus = viFindRsrc(defaultRM, "?*", &fList, &numInstrs, desc);

if(numInstrs == 0)
	printf("num is 0 \n");// will print this line




recommendations for GPIB card compatible with BSD

$
0
0

Hello, I am seeking a PCI- or PCIx-based GPIB card that's compatible with x86 BSD.  The server only needs to control a single RF demodulator unit (this is for a remote time metrology and NTP node) from the late 80s.

Chroma source with NI VISA 4.1 on Windows 10

$
0
0

I have a connection problem with my pc and the chroma source 62000H. The operating system on my pc is Windows 10 and the NI VISA 4.1 software is only compatible with the latest version operating system. The USB connects, but not the interface (see photo).
I tried the NI VISA run time engine 17 software, but no success obtained with the interface. Do not connect, do not recognized nothing via USB.

Can anybody help me?

Controlling thermotron 8200 using lab view 2010

$
0
0

I am trying to control Thermotron 8200 via Ethernet and GPIB. I am trying to add the instrument driver TH8200(from: http://thermotron.com/service/instrument-drivers). I am using labview 2017 32 bit on a windows 10 machine. I followed the instructions to copy the entire folder inside the labview dir(C:\Users\niladaha\Downloads\TH8800_Lab8\TH8800_Lab8\8.5\TH8800-8200)

 

I can see the pallet (See: Pallet.png) for the instrument but I don't know why it does not works.

 

 

If I copy the folder TH8800-8200 than I can see all the pallets without the question mark. But when I drop the VI It asks me for the shared library. After I browse Th8800.dll that came within the zip file. I get error message and The error list is also attached this this.

 

 

 

reading from IR camera

$
0
0

Hey guys,

I just got into working with LabVIEW and I have to read the data from an infrared camera that works with UDP network connection. I want my VI to receive the pixel - intensity data and print it out for further procession.

I am quite the beginner and don't really know what to do next. I am also new to reading data sheets from such devices, so it's hard to figure out how to get what I want.

 

I attached the VI and the data sheet.

After initialization ("Bind HTPA devices" means that only my computer in the network can command the camera) I am using two parallel while loops, one for reading in the camera data and one from sending commands to the camera. I am using the same port no. for writing and reading (the camera port was given in the sheet). In the reading loop I ask wether the incoming data is larger than 548 bytes. If that is the case, it is probably a stream of binary data (data sheet), so as a test I give out the length of the incoming binary datas.

 

I found out that using the command "t" yields a stream of binary data, it should be the pixel data I wanted. Due to the while loop, the camera sends again and again. Also, it seems like the camera keeps sending even if I stop the programm, because as soon as I start again I receive the same output even without using "t", but that is probably normal since the camera does not care about wether LabVIEW is active or not.

 

Now my questions: How can I extract the pixel data I need? Is everything alright with my VI?

I would appreciate the help, maybe someone here is used to working with UDP devices like that.

Oh and please try to answer on a beginner level ^^"

 

Best wishes

 

 

NI Spy Time stamp format

$
0
0

I'm Using NI spy. I want to calculate the elapsed time between write and read.
Write 08:50:56.5346
Read 08:50:56.5358
Hour:MimuteSmiley Frustratedecond
The second portion contains decimal point and 4 digits. What should I consider the fraction? as we know the fraction of a second is the millisecond. 

 

Thanks

 


Instrument Ethernet Communications

$
0
0

I wish to connect my SR865A lock in amplifier to my laptop using ethernet, I added the resource in max but the open visa test panel option is greyed out and attempting to open it through visa gives error TCPIP0::192.168.1.94::lia::INSTR  VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

Error -1073807305 occurred at VISA Read in Keithley 2450 :.lvlib :Sweep and Acquire Measurements.vi

$
0
0

This error happens time to time halting the test software. Error happens after few thousand calls to .vi

(5000x to 10000x calls). vi configures instrument to make a two point sweep.  

vi is from Keithley 24xx library with very minor modifications (attached).

 

Power cycling the laptop & instrument clears the error. No other way.

 

Error -1073807305 occurred at VISA Read in Keithley 2450 

Possible reason(s):

VISA: (Hex 0xBFFF0037) Device reported an input protocol error during transfer.

 

Environment:

Labview 8.5

Windows10 on HP laptop Elite8460p

NI-VISA 17.0 installed.

 

Keithley 2450 connected via USB2.0

 

(same program controls also another Keithley2000 via 2nd USB port with prolific USB to COM adapter)

 

Thanks for any suggestions how to solve this issue!

proot

PCIe-GPIB+ control 4 devices

$
0
0

Hello everyone,

 

can a PCIe-GPIB+ control 4 GPIB devices at the same time?

GPIB-USB-HS+ hangs

$
0
0

Hi,

 

I am having an intermittent problem with a GPIB-USB-HS+. It hangs very occasionally in a call to VISA. The timeout on the call has already expired for a long time, so my first thoughts were that it's a driver issue. However, upgrading from the 2014 drivers to the latest ones did not help.

 

I have now replaced it with a GPIB-USB-HS (without +). So far it works well. Has anyone else seen this problem before, or am I just having a faulty device?

 

Best regards,

Joris

Rubytech,

Netherlands

 

How can I determine base address for GPIB0 for use in ibconf.exe?

$
0
0

I am attempting to resurrect several instrument control programs I have used successfully in the past.

They are written in GWBASIC (because that is what I have and what I know how to use) and I am running them on an old Win98 machine (because it has worked in the past).

The GWBASIC programs include the required statements from: "DECL.BAS" and "bib.m" is present in the directory where I am running the programs.

I believe my problem lies in the configuration file created by ibconf.exe

When I exit ibconf.exe I get the following warning:

CAUTION: Board GPIB0 is not present in this machine at address 02B8H. Do you still wish to exit ibconf? (y/n). When I say "y" I get: "Handler file unchanged".

I can't find a base I/O address for the GPIO0 that ibconf likes.

Device Manager says the board is installed and working properly with no conflicts. Under Resources it says:

Memory Range: DFFDF800 - DFFDFFFF

Memory Range: DFFD8000 - DFFDBFFF

These addresses will not fit in the ibconf field for base I/O address.

As a result, my application program can not talk to my device (HP59313A A/D Converter) and I cannot access the device using ibic. I see no bus activity on NI Spy when I try to access the device using either of these methods. When I do an ibfind I get error: EDVR(2).

However, when I run the "Getting Started Wizard" to verify the hardware and software installation it says: Software Presence Verified, Hardware Presence Verified, GPIB Interface Sequentially Verified. GPIB Name: GPIO0, Interface Type: PCI-GPIB, Status: Passed.

When I use "Measurement & Automation Explorer" and scan for instruments it finds my device and says it is at primary address 16 (which is where I have it set up in ibconf). I can communicate with the device using "NI-488.2 Communicator" and when I do, the bus activity is seen on NI Spy.

It seems that neither my application program nor IBIC can communicate with my device while "Measurement and Automation Explorer" can. I suspect the difference is that "Measurement and Automation Explorer" does not rely on the configuration created by ibconf.exe while the other two methods do.

Any help would be appreciated.

 

Tektronix TDS2004B 4-channel scope: NI-VISA Driver doesn't allow CH3 or CH4 to acquire data or set probe attenuation

$
0
0

Hi,

I have a Tektronix TDS2004B 4-channel digital oscilloscope, and I've been using the auto-generated Measurement Studio .NET wrapper with the supported NI-VISA driver (provided here: tktds1k2k driver download page). 

 

The driver works flawlessly when I'm using channels 1 & 2, no problems. However, I'm having problems with channels 3 & 4.

  • When querying channel names, I get: CH1, CH2, MATH, REFA, REFB (not CH3 or CH4 as expected).
  • Cannot set probe attenuation for REFA or REFB channels (error message: "The attribute is not valid for the specified channel  or repeated capability")
  • Cannot take measurements for REFA or REFB channels (error message: "Measurements can be taken only on acquisition channels.")

To further troubleshoot, I've used the VISA Test Panel (through NI MAX) and directly talked to the scope with message-based I/O, using the commands from the Programmer Manual:

  • I can successfully change CH3 and CH4 probe attenuation, using commands: 
    CH3:PROBE\s10\n 
    CH4:PROBE\s10\n
  • I can also successfully start acquisition and get measurements using the proper commands.

So since the scope channels 3 & 4 can be successfully controlled through message-based I/O, that means the control problems are in the C DLL-based IVI driver. It's interesting how the IVI driver uses REFA and REFB, while the message-based I/O uses CH3 and CH4. For my project, I need at least 3 scope channels, yet I can only use the first two right now.

 

Has anyone bumped into this problem before? Have you found a solution for this?

I'm currently too deep into using the IVI driver, so switching to message-based is not feasible.

 

Thanks in advance,

Hazim

Keep getting error : -1073807339 VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

$
0
0

I have been trying to communicate to a electronic load using labview in serial mode.  The load works fine when communicated with Termite emulator as shown below.  I keep getting read errors in LabVIEW.  I don't know what I'm doing wrong.  I configure LabVIEW to the settings as pasted below to match.  Nothing works?  I attached the code in 2011 version - any ideas?

Pict of Termite interface settings.PNGPict of Termite.PNG

 


IVI Simulation Driver

$
0
0

Hello,

 

I have the Keysight 67xx IVI driver installed (AgN67xx.dll).  I can run the simulation mode no problem through the NI VI "N67xxOutputExample_1.vi".  The simulation grabs the:

InstrumentFWRevision as "Sim1.3.5.0"

measured Voltage of "6.74473E-6". 

As well as some other items, but the ones listed are hard-coded into the AgN67xx.dll.

 

Now I want to use the nisDCpwr Simulation Driver Software Module within NIMAX.

NI MAX Relevant My System>>Software:

IVI Compliance Package 4.5

NI-VISA 16.0

 

My System>>IVI Drivers>>Logical Names is setup with DcPwr1, pointing to Driver session is N6711a

My System>>IVI Drivers>>Driver Session is N6711a, Simulate With is pointing to nisDCPwr.

My System>>IVI Drivers>>Advanced>>Simulation Driver Session is nisDCPwr, Simulation Driver Software Module is pointing to nisDCPwr

 

Regardless of what I switch the "Simulate With" in the N6711a Driver Session, the simulation comes back with the same AgN67xx.dll responses of:

InstrumentFWRevision as "Sim1.3.5.0" every time, expected should be "A0.01.01" from Initial settings in Simulation Driver Session

measured Voltage of "6.74473E-6" every time, expected should be random number between 0-10volts

 

I have searched as much as I think I can possibly cover, unless I missed something.  Is there a setting I am missing?  Any help into were to look next would be greatly appreciated.

 

Best Regards,

Andrew

 

 

 

Keithley 6517b Remote Humidity Measurement

$
0
0

I am using a 6517b to measure currents and apply voltage to a device under test.  Along with the current reading I would like to log the humidity using the optional humidity probe.  How can this be done?  I am using Labview 2016 and operating the device over GPIB.  

 

Thanks!

J1939 Bam tutorial

$
0
0

Greetings,

 

I'm using the J1935 example shown here and I am able to transmit messages between two computers using it.

http://www.ni.com/example/31215/en/#toc16

 

HOwever my type field says CAN data and no J1935.  Has anyone else had an issue with that? I configure it using an ID of

0cf00401

and 8 bit message of FFs

Chroma 63204A USB triggered digitizing

$
0
0

I'm trying to control through LabView a Load Chroma 63204A, in order to sample a sinusoidal response from a device.

However I've had some problems with the digitizing function, both through Chroma's palette and/or direct commands written to the load itself: everything works just fine, but the digitizing trigger sent through USB connection.

I'm pretty sure that the VI is properly written since in "highlight execution" mode the VI is executed correctly, on the other hand trying to delay the execution of blocks before and after the trigger did not solve the problem.

 

Anyone knowing how to make the digitizing on a chroma63204A through USB command? Thanks a lot!

Incorrect configuration for USB PORT

$
0
0

Hello,

I'm trying to configure a COM Port as a USB port so that I can control a motion controller. I used NI-VISA Driver Wizard to "configure" the port but I got stuck at the "generate a catalog from the INF" step and I gave up after hours of trying. I still haven't been able to make it work but somehow NI-MAX can to see the device, which it couldn't before, as a serial port but not a USB port. Is there a way I reconfigure it to a USB port without using the driver wizard? Please help!!!

 

I'm using Window 10, LabView 2017, and the controller is DPY50611 from Anaheim Automation.

Viewing all 5661 articles
Browse latest View live


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