Hi:
I have to use a USB-RS232 adapter to link my notebook to a device for the controlling.
The controlling will be done through LabView with the VISA library.
However, I found the price for USB-RS232 adapter varies a lot.
NI has one (http://sine.ni.com/nips/cds/view/p/lang/en/nid/12844), over 100 pounds, whilte there are many other USB-RS232 adapter just cost 10-30 pounds from other places.
What I wonder if, what make NI's USB-RS232 adapter this price?
Is there any compatibility issue (only NI's adapter is compatibile to LabView?) or other driving issue I should be aware of?
I just want to figure out the difference between NI's adapter between other cheaper adapter before I make the purchase (but I do want to avoid the compatibility issue)
Many thanks
Regards, Jhensi
USB to RS232 (NI adaptor or not)
cRIO VISA port forwarding
I am trying to access the Serial port of my cRIO-9067 from the host computer to program the Amulet display. I have found the following document which is suitable for this application: http://www.ni.com/tutorial/52140/en/
However, I would like to be able to interface other software directly over the serial port forwarded from my cRIO. Is there any way to configure this VISA resource (visa://xx.xx.xx.xx/ASRL1::INSTR
) and map it as a standard COM port on the host PC, so that any other application, not using the VISA librairies, can access it directly? This would be useful when we connect other equipment to be able to do a direct passthrough from the Host PC to the cRIO serial port and use the manufacturer's software directly, without having to rewire anything.
32 bit byte swap
Hello,
I'm trying to read data from Agilent OSA that output the data in 32 bit number through GPIB interface.
if the bytes are numberd as 0, 1 , 2, and 3 - I need to swap 0 and 3, 1 and 2.
that is: to start with 0/1/2/3 and to end with 3/2/1/0.
can someone help how to do that for each 32 bits?
Debugging intermittent Timeouts GPIB
Hi All,
I am at wit's end trying to debug an intermittent timeout in GPIB communications in a system involving a wafer prober and and Keithley 237 source-measure instrument. System is a basic Step-Measure-Step-Measure architecture where both instruments are VISA/GPIB controlled.
Measurement process involves thousands+ steps and each step can take in the 3-6 seconds range, making a single measurement process last a few hours.
Timeouts occur intermittently after minutes or hours of stepping.
Each instrument has it's own LV class and a wrapper class is used to time communication over the USB GPIB cable.
Any suggestions on how to attack this issue?
NI VisaNS dll released with NI=-488.2 Rev 15 references an older NI Common dll
It seems that NI VisaNS 13.0.40.167 references Common DLL revision 13.0.40.188 whereas the Common DLL that comes with rev 15 of 8/2015 is at 15.0.14.49154.
This causes the warning message:
Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
With the build output:
19> Consider app.config remapping of assembly "NationalInstruments.Common, Culture=neutral, PublicKeyToken=dc6ad606294fc298" from Version "13.0.40.188" [] to Version "15.0.40.49154" [C:\Program Files (x86)\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies\Current\NationalInstruments.Common.dll] to solve conflict and get rid of warning.
Running AsmSpy (from http://mikehadlow.blogspot.com/2011/02/asmspy-little-tool-to-help-fix-assembly.html) reveals the referece:
Reference: NationalInstruments.Common
13.0.40.188 by NationalInstruments.VisaNS
These kind of issues occurred in earlier releases. Whlle a workaround exists, this requires fixing the config files with each new release.
Would it make sense to have future released be more congruent all referencing DLLs of the same release?
Thanks
David
"The interface associated with this session is not currently the controller in charge" -- Why can I communicate with my device in NI MAX but not a VI?
Hi all, I have an Agilent 82357B GPIB/USB interface and I'm trying to use it to communicate with a Tektronix AFG310 Function Generator (FG). I've used another Agilent 82357A in the past (like, earlier today) with this PC and that works perfectly, so I assume all the Agilent/VISA stuff is still working.
It shows up in NI MAX as GPIB0::1::INSTR. This is the first strange thing, because when I set the GPIB address to be 5 in the FG's menu, it didn't show up in NI MAX; it only works if I set it to 1... but I thought the machine dictates the GPIB address and NI MAX displays that?
Anyway, so when the GPIB address is set to 1 in the FG's menu, I can click open the VISA Test Panel for GPIB0::1::INSTR and communicate with it, like get the system info by sending *IDN?:
I can also successfully change some parameters (you'll have to trust me that it's outputting the right stuff):
I can also communicate with it in the Keysight Connection Expert software:
However, for some reason, when I try making a very simple VI to do the same thing, I get an error. Here's the VI I used:
With the VISA resource name:
And it's giving me this fun error:
What's going on here? I googled that error, but didn't find anything that really helped me resolve it.
It's very strange to me that I can communicate with the machine (which should be like 90% of the hard part) but my VI can't. In the Agilent VISA User's Guide, here: http://cp.literature.agilent.com/litweb/pdf/E2090-90040.pdf
It gives that error as "VI_ERROR_NCIC". It seems like there's a VISA command it gives so you can put the controller in charge, viGpibPassControl on page 204 of that link: "Tell the GPIB device at the specified address to become controller in charge (CIC)."
...but I don't really know how to use that. Does anyone know what I can do? Thank you!
Random Timeout Error - 1073807339 using Tektronix TDS 200 1000 2000 Series Oscilloscope drivers
I am trying to take waveform measurements from a Tektronix 1052B oscilloscope using LabVIEW. My program is intended to be run for hours at a time, and it works perfectly as expected for the first few hours. However, I have noticed that after a few hours there is a seemingly random chance that a VISA read or write function block will produce error - 1073807339. After this happens once, all read or write functions also produce this same error for a while. This happens even while using the unedited driver subVIs provided by NI (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=047216EC20B66FABE0440003BA7CCD71). During this time if I pause the program, I can still bring up the oscilloscope in MAX and read and write commands to it. The error only seems to happen within a VI. I have already read this page here: http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0?OpenDocument, but none of the solutions helped. I know this is not an actual timeout issue because I have tested increasing the timeout to 30+ seconds but the error still happens instantly as soon as the read or write function block is called.
I would like to know why this is happening and what can be done to fix it. The subVI in question is provided. This VI is called at various points in the program to take acquire a waveform. The inititialize and close subVIs are called outside of this subVI.
Dll reference not working on different computers
I am trying to use Visual Studio 2010 to control some instruments over a GPIB connection using Visual Basic. I have the code working properly onVS2013 running a 4.5 framework, but I'm required to have the code working onVS2010 running the 4.0 framework. On my laptop with the 4.5 framework everything works flawlessly by adding references to NationalInstruments.Common.dll andNationalInstruments.NI4882.dll, then declaring my device using
Dim GPIBdevice As New Device(CInt(0), CByte(9), CByte(0))
On my desktop running VS2010 and the 4.0 framework I run into an error. The code initially recognizes the "Device" class and even has Intellisense pop up with the different constructors possible. When I build the program, I receive an error and a squiggly line pops up under "Device"
The error says that I'm missing a reference. I'm having the same error as http://forums.ni.com/t5/Measurement-Studio-for-NET/Missing-assembly-NationalInstruments-Common-Version-13-0-40-188/m-p/2595715/highlight/true#M14809
I'm not too familiar with programming and my supervisor said he'd like to avoid using the GAC. Are there any more recent ways to solve this issue or is adding stuff to the GAC my best bet? In the solutions posted in the thread above they mention editting a Common.wxs file, but a search doesn't have that pop up. Where would this file usually be located?
HP 8902 addressing issue
Hi,
I currently have an automation file in VB that communicates with various types of equipment using the visa interface commands, I am having trouble in writing to the 8902 as it is fairly old and when I communicate through NI max all is good as I can set different values. I ran NI spy and it gave me these:
ibconfig(UD0,ibcEOT(0x0004),1(0x1))
ibconfig(UD0,ibcEOSrd(0x000C),1(0x1))
ibconfig(UD0,ibcEOSwrt(0x000D),0(0x0))
ibconfig(UD0,ibcEOScmp(0x000E),0(0x0))
ibconfig(UD0,ibcEOSchar(0x000F),10(0xA))
I was wondering if anyone knew if I can use these commands with the visa commands or is there away around this.
Any help would be appreciated.
Thanks,
Stephen
using i driver with QT
Hi,
We are developing an application with QT and we need to use NI ivi driver in our application.
the ".h" file is included to the project and the ".lib" file is linked to the project. We can compile and link the project without any error. Yet, when the crashes when we try to open the device with the following error:
The inferior stopped because it triggered an exception.
Stopped in thread 0 by: Exception at 0x754cc42d, code: 0x6d7363: C++
exception, flags=0x1 (execution cannot be continued) (first chance).
What could be wrong? Do you have any Ideas_
regards\
ozgu
PCI-GPIB perkin elmer 300 windows 7 error
Hello,
I'm not expecting much on this since we are trying to do the impossible but here it goes.
We recently started having issues with our Windows 7 32 bit OS connecting to our perkin elmer 300 via the NI PCI-GPIB card while using the AA winlabs program. It give us the following:
> 26. TestSRQ(0, INVALID)
> Process ID: 0x00000FE4 Thread ID: 0x0000107C
> Start Time: 14:32:58.689 Call Duration 00:00:00.326
> ibsta: 0x8000 iberr: 0 ibcntl: -535560155(0xe0140025)
And continues repeating this error along with some others I have attached. I'm completely at a loss of what to do next and this is my last hope before we have to bite the bullet on a whole new system. It was working for the past year, but now suddenly is giving us this issue.
Some of the things I have tried, we have 2 of these cards, I swapped them and continued receiving this error. I swapped PCI slots with both cards with no luck. I have uninstalled everything and re-installed with both cards, on both PCI slots, restarting between all instances of uninstall/reinstall. I have started over with a fresh installation of windows 7x86, installed all drivers, installed software for the PE 300. Still no luck. I then started to swap out the cable that connects these, but that didn't change anything.
Thanks in advance.
Can you change the device type from "USB Raw Resource" to GPIB controller?
I am trying to configure a Contec GP-IB(USB)FL GPIB controller in MAX. I was able to get it to register through creating a driver from the VISA driver wizard, but it is registering as a "USB Raw Resource" rather than as a GPIB controller. I can send and recieve information from the controller but it does not give me an option to search for connected GPIB devices to communicate with them. Is there any way to change the type of the device, maybe by manually altering the driver created by the NI-VISA driver wizard? Thank you for your time.
778032 MTBF
Does anyone have the Ground/Benign MTBF for the 778032-01 PCI-to-GPIB card? I need it for a Spares requirements analysis.
Difference between NI GPIB-USB-HS+ and NI GPIB-USB-HS
I would like to know the difference between GPIB USB HS+ and HS (without the +)
Seems to me that the HS has no on board GPIB analyzer but has a GPIB ASIC Chip.
Main difference would be the speed, which is strange, the HS has a faster speed than the HS+.
Anyone using or has used before both of these? Is there any difference from user POV?
VISA read timeout error--- Keithley 2460
Hi all,
I am trying to control a Keithley 2460 Sourcemeter through USB to source a current and read the value of this output current.
I took an example code from the library "Keithley 2450 read single", however error 1073807346 pops out from the "Initialize" box ; from the VISA read block precisely. Even if I just switch on the Keithley power source and only run the "Initialize" box, the error comes. The VISA ressource name chosen is : USB0::0x05E6::0x2460::04069812::INSTR
A similar post was realized on this : https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/VISA-read-timeout-error-Keithley-2400/td-p/1771254, thus I tried to query the device with MAX by sending the command *IDN?\n but it returned me a timeout error VISA: (Hex 0xBFFF0015) (screenshot attached).
Still to mention that sometimes the device is recognized and work properly and then it doesn't work anymore. Therefore, I would like to point out what makes it work sometimes and sometimes not.
Thanks in advance
Nico
NI4882 Device Write Issue. Have to double write or I get a timeout.
Hi,
I'm trying to interface with a HP 3497A Option 110.
This is my code:
try { _dev = new Device(boardIndex, 9); _dev.Clear(); _dev.Reset(); _dev.Write(ReplaceCommonEscapeSequences("DR3"));_dev.Write(ReplaceCommonEscapeSequences("DL3")); string resp = InsertCommonEscapeSequences(_dev.ReadString()); _dev.GoToLocal(); } catch (NationalInstruments.NI4882.GpibException ex) { }
Highlighted in red is my issue. In order for me to read the response from the device, I have to call _dev.Write(ReplaceCommonEscapeSequences("DR3")) twice or I get a read timeout error.
If I call it only once, I get a timeout error, but calling it twice works.
Can anyone explain this?
This happens for other options as well.
Thanks!
Prior proscan not responding
Hello everyone,
I have a prior proscan H29XY controller. I wrote a simple program to move the stage and take a video using a camera for a fixed amount of time. The program works well but sometimes the motor simply stop responding to the program and doing anything. When this happens I'm not able to communicate with the instrument even through NI MAX, the program says the address is available but can't be accessed. These faults are random and I don't really understand what causes them. Has anyone any idea?
Thanks,
Matteo
Wireless network on Windows
As soon as I connect my laptop to c-RIO using a lan network cable, I lose my wireless connectivity on windows. How do I resolve this issue?
Thanks for any pointers.
Vishal
Sensirion SFM3000 via Sensirion USB Stick
Issue:
I'm trying to connect to a Sensirion SFM3000 Gas Flow Meter using their USB Stick (made by Code Mercenaries?). The SFM3000 is an I2C device.
Progress:
I can read from the device using the Sensirion software. I've created a NI-VISA driver successfully. I can even open and close connections to it without getting an error. However, I'm getting completely lost with trying to set up the Control Pipe command, even after reading the various posts about it (including the USB nugget 2 series). The simple version is that I need to send a 0x1000 (4096 decimal) command to the device and then continuously read the data from it until I need to close the connection. I'm just getting bogged down behind items and terminology.
I can get/confirm the VISA address using the GetVISAAddresses VI. I'm trying to use it in the SensirionTry01/02 files, but I think (know) I'm using the wrong read/write VIs for Control Pipe.
Can anybody walk me through what the core of the VI should look like (assuming I have the edges correct)?
Getting Yokogawa WT210 to Interact with LabVIEW (or anything for that matter)
Hey all,
I have a Yokogawa WT210 power meter that I'm trying to read from. I downloaded the Yokogawa drivers for the device from Labview's built in Instrument Driver finder, and can pull up the examples. I also have the appropriate cabling (DB25 to DB9 to USB) which works with other equipment (including a spectrophotometer I had to write drivers for myself - PITA). The issue is when I run the sample programs, nothing happens. I receive a timeout error from the first command that's sent to the device (*IDN?). If I wire a "False" to "ID Check?" the next command errors out in the same way. It's as if the device won't respond to any commands. I believe I have the instrument set up right (488.2 over serial in the "Local" settings menu - windows and device both have same baud rate, parity, etc - using default values). I've also looked over the manual a bit. I've seen other people on the forums get the sample programs working with little trouble, so I know the drivers are ok...anyone have any insights?
EDIT: It also won't work with one of the downloaded programs from the Yokogawa website, but then again, I have no idea if I'm using that software right. I haven't tried their WTViewer...or whatever it's called.
TG