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

Is there any problem with the 485 board card of NI's pxi8431/8?

$
0
0

The idle level of output in 2-wire auto mode is 0v, shouldn't it be logical high +5V? Check some data that  there is no bias resistance, but the bias resistance  how to add,  no one can explain in detail. How to solve this problem, hope answer!


Connecting to Old Instruments Having +-12V RS232 Voltage Levels

$
0
0

Hi,

  I have an old piece of instrument built in the 1980s. It requires +-12V voltage levels for the RS232 interface. My eBay USB to serial dongle doesn't work. Can someone suggest a PCI or PCIe card that can reach +-12V? For example, can NI's PCI-8430/2 do the job? I found the following table in the file http://www.ni.com/pdf/manuals/373170f.pdf, where the "Driver output" is listed to be 5 to 25V. Is this the voltage level of the signal, such as the "Data Treminal Ready" (DTR)?

PCI-8430.png

 

NI MAX

$
0
0

I am having problems getting MAX to recognize instruments.

MAX View.png

It only sees two power supplies

However, The VISA interactive control Sees all of the instruments.

Visa 1.png

I have downloaded the latest version of DAQmx, Visa and 488.2, but it still has the problem.

I don't know if this has anything to do with it, but some of the articles I read said to use the 488.2 utility in the tools menu. This is not showing up in the menu.

488.2 tools.png

Another article suggested checking the properties of the USB-GPIB-HS properties. That option also is not available.

cntroller options.png

What am I missing? I do not have this problem at any of the other stations

 

visa 生成的usb 的驱动不能被系统识别

$
0
0

大家好 我现在用visa生成一个usb hid的驱动但是在最后安装选项时无法安装到本电脑上,手动安装提示没有适合的驱动,系统是WIN10  VISA是19

1571791682_LI.jpg

NI Driver Classes Not Inheritable

$
0
0

I am writing .NET wrappers around NI drivers. Why does NI not make the driver classes inheritable?

How to control two devices with GPIB-UBS-HS+ in VB 2019 ?

$
0
0

Hai, I am working with Visual Basics 2019 to control two devices using GPIB-USB-HS+. I could control one device by following syntax.

 

Imports NationalInstruments.VisaNS

 

Dim GPIB_ResourceString1 As String

 

GPIB_ResourceString1 = "GPIB0::8::INSTR"

mbSession = CType(ResourceManager.GetLocalManager().Open(GPIB_ResourceString),

MessageBasedSession)

 

mbSession.Write("OUTX 0 ;")

 

response = mbSession.Query("OUTX ?").

 

Then how to control two devices with GPIBs? I could connect the two devices using two GPIBs, but not able to send command and read the response from a specific device. Can anyone help me in this? Thank you in advance.

PCIe-GBIB card vs. GPIB-USB-HS

$
0
0

Hi All,

On my PC (Win 10 OS 64-bit) unit I have labview software in executable version. In measurement procces three external devices with GPIB communication ports and one through serial port COM1. Firstly I installed PCIe-GPIB card. Using NI Max I checked communication with all external devices and it is ok. Then I started measurements on above labview software, and at beginning everything looks alright. However after few minutes operating system is rebooting and also software breaks down. 

 

Change from PCIe-GPIB card to GPIB-USB-HS converter solve this problem. Everything works normally without any issue. However I am curious why it is workig well through usb port rather than card. 

 

Did anybody have sucha situations? Did you have any explanation or suggestions what could checked to operate on PCIe-GPIB card?

 

Thanks in advance for any suggestions and help,

Borsuk

Controlling Mettler Toledo scale (ML3002T), there are no Labview Drivers for this scale

$
0
0

I need to be able to tare(zero) a scale with labview. The scale I'm using is the Mettler Toledo ML3002T. There are no drivers for this scale in labview. I also need to get the current weight displayed by the scale. Mettler Toledo scales use MT-SICS to send commands to the scales. Is it possible to be able to send those commands with labview to the scale? 


conectar un dispositivo VISA

$
0
0

Hello!
I need to connect a relay card to an array of Booleans to connect each relay, that is, I want to replace, in some way, the VISA read and the VISA write by the Boolean array, so that without writing the relay number you can connect in an order with the same while and for structure.
I hope you can help me.
Thank you!

VISA read return count changes at times

$
0
0

The read return count changes at times. Thus making the communication to be lost and e establish itself when the return count comes back to normal. I am using an RS232 cable and serial port to communicate with Nanotech C5 motion controller. Kindly Help !

SCPI Commands

$
0
0

Hello,

 

I try to communicate with SCPI commands to an instrument.

 

I've done a visa command to send it instruction.

 

The instrument is composed with 4 slots, and the slot 1-0 had 4 channel

 

So with the following VI, I succed to communicate with the instrument with sending the following instruction " lins10:READSmiley FrustratedCALarSmiley TongueOWSmiley Very HappyC?"

The instrument returns me the value of the slot 1-0 Channel 1

 

ti read the other channel  (C1 to C4), i've try to send: différents commands:

lins10Smiley FrustratedOURce C1:READSmiley FrustratedCALarSmiley TongueOWSmiley Very HappyC

lins10Smiley FrustratedENSe C1:READSmiley FrustratedCALarSmiley TongueOWSmiley Very HappyC

lins10:FETCh C1:READSmiley FrustratedCALarSmiley TongueOWSmiley Very HappyC

lins10:INPut C1:READSmiley FrustratedCALarSmiley TongueOWSmiley Very HappyC

 

with différents name: C1; Channel1 ; 1 etc...

 

 

so someone should tell me how can I do , or the good command to use please.

 

Thank you for your responses

 

[Newbie] help to revive 1988 GPIB-232CV

$
0
0

Hi all - a newbie here with a problem

 

I got a vintage (the board is dated 1988) GPIB-232CV (not -A) 64K adapter that I wanted to use to connect my HP 7475A plotter to a modern PC. I connected power to the adapter today to test it - it came on with all LEDs fully lit up. After around 2-3s I smelled smoke, so I disconnected quickly.

 

I openned the case and it seems the board is in a good condition, but one of the capacitor has blown (seen in the photo in lower right - C40). I am hoping to fix it (can't afford a new adapter on a student budget), but it seems I can't find a service manual for this particular model (the model doesn't even show on NI website). I am hoping someone has a copy of a service manual or know what capacitor was at C40 so I can replace it.

 

I suspect the core problem was a faulty power supply, so I am hoping to get a modern PSU connected after I deal with the capacitors. However, maybe all the LEDs being lit up on power on is a known code that points to some other issue.

 

Any help would be greatly appriciated.

 

Edit with some more (possibly helpful) into:

Device name on the bottom label: GPIB-232CV 64K

Part number on the case: 180455-01 rev b

Part number on the board: 180367-01 rev b

S/N: 356

Q: dot Net Connecto to Fluke 8846A In Lan Port using NI

$
0
0

Hello All
It was the first time I used the Fluke 8846A.I could connect to 8846A with socket , and it done perfectly;But now I have a question that if I can do same thing like connect to Fluke 8846A in Lan Port using the NationalInstruments.Visa. It disturbed me for a queit time;
What I have done:
I've downloaded the Fluke 884X driver set and installed. I have no idea after reading <8845A/8846A Digital Multimeter Programmers Manual>
And I have used google to search such thing. If anybody have such sample I would like to learn it;Since I'm new to NI, perhaps I've missed something?

How to control two devices with two GPIB-USB-HS+ simultaneously in LabVIEW?

$
0
0

Hi, 

I'm learning how to use LabVIEW to control my GPIB devices. I can find my device in NI MAX and run the examples provided by LabVIEW, "Simple GPIB.vi" and "GPIB with VISA functions.vi". But in these VIs, I can only input ONE GPIB address or VISA GPIB Resource, I tried syntax like "0:1,1:2" to bundle two GPIB devices, but it doesn't work.

I wonder if there are some syntax or functions that could solve my problem, or I have to run two same codes in parallel in order to send message almost simultaneously.

 

Thank you in advance.

NI's VISA32.DLL not compatible with Keysight's

$
0
0

HI:

I use the visa32.dll development tool

 

Declare Function viOpenDefaultRM Lib "VISA32.DLL" (ByRef sesn As Integer) As Integer

Declare Function viGetDefaultRM Lib "VISA32.DLL" Alias "#128" (ByRef sesn As Integer) As Integer

 

I find that if I use the "Keysight" driver. I can control the "GPIB0::20::INSTR" address of the instrument. But I use the "NI" driver. I will not be able to control the "GPIB0::20::INSTR" address of the instrument.

Why is this?

Are two visa32.dlls different?

I find the sizes of two visa32.dlls are different.


Get actual date/timestamp from Tektronix MDO3024

$
0
0

Dear all,

 

Being a relatively new user to Labview I am trying to build a program to acquire and save data from an oscilloscope.

 

I have connected an MDO3024 to my computer and am using the "Tektronix DPO MSO 2000 4000" instrument driver to acquire data. Currently I use the "Read (single waveform)" function to acquire data from channel 1 and write/append this data to a text file. Since the VI runs continuously inside a loop and data is acquired faster than the length of the data being displayed on the oscilloscope I get an overlap in the data. This is not a problem in itself since I could search and delete overlapping portions. However, for this I need an (absolute) time reference. Unfortunately the waveform "t0 data" does not contain this information, rather it sends the relative time which is constant for each waveform returned. Now I've tried to manually acquire/generate a timestamp at several locations (even inside the Read VI itself) and add this to the data, but so far this does not solve the problem; small delays occur ans cause a non-constant delay between each waveform, see picture. Since I also can't seem to find a way to have the oscilloscope return an actual date/time stamp with the data I'm kind of stuck.

 

Any advice or ideas would be more than welcome!

visa read value changes

$
0
0

After the axis hits the limit switches the visa read value from the motion conrtroller changes. The byte count is still equal to the return count but the value in my visa read changes only after hitting limit switch at a speed. For example: If the limit switch is set at a position of 300mm and if i give 300 mm there is not any trouble. But if i give a value of 340 mm, when my limit switch is set at 300 mm I have this problem. Kindly help.  

Reading SR400 photon counter buffer at every period

$
0
0

Hello,

We are using a photon counter SR400 with Labview. We had an old code that was working properly on Labview 2010 (on Windows XP), but we have now rewritten a new code in Labview 2018, on a new computer running on Windows 10, to be able to use other equipment together with the photon counter. We are re-using the same DAQ card on the new computer, and interfacing the photon counter through RS-232 port.

In our old code, we used the ET command to read the content of the photon counter buffer. By doing this, we were able to plot the number of counts for each channel at every period (i.e, continuously while measuring).
In our new configuration, we use a similar part of the old code structure and the same ET command to read the buffer. However this time, we can only access the content of the buffer at the end of the full task (i.e. only once, after N periods). Every attempt to read the buffer before N periods gives us as output an empty string, and a red light is flashing on the front panel of the photon counter. 
This is not an error that prevents us from continuing counting, but it is preventing us to monitor the data continuously while measuring (i.e unable to plot it).
Is there a specific configuration of the photon counter that we are missing in order to access the content of the buffer after every period? Because we know by our previous code that it is indeed possible to read the buffer at every period. 
Thank you for help!
 

VISA Framing Error in VisaNS

$
0
0

I am upgrading an old software package from VB6 to VB.NET. The old system uses the CWSerial object for serial communication and that system works just fine. In the new software, we have upgraded the VISA driver to use the VisaNS dll.

 

Using this dll, we get the same interface in the software (same properties and functions, etc.), but some of the devices have started giving parity errors and framing errors when trying to read. (eg. NationalInstruments.VisaNS.VisaException: A framing error occurred during transfer.  VISA error code - (0xBFFF006B), ErrorSerialFraming).

 

The errors are intermittent, but the code is running on the same computer in both software versions.I assume that the actually data passing back and forth on the serial lines is no different (is this true), so is the VisaNS dll more sensitive for some reason?

 

Anyone know either

  • What might be causing this issue?
  • How I can dig into what is happening?

 

488.2 DOS Support in Windows 10 32-bit

$
0
0

We have a PC in our production environment that was running Windows 7 32-bit and has been upgraded to Windows 10 32-bit.  The NI488.2 driver in NI Max has DOS Support enabled because there is a DOS application that we need to run on the computer that uses GPIB.  Upon trying to enable in after upgrading to Windows 10 32-bit, the program complains that the Config.nt file needs a device line pointing to gpib-nt.com.  I updated the file to add the line and I still cannot enable DOS support.

 

Anybody know why I cannot do this and how can this be corrected?

 

Thanks

Viewing all 5667 articles
Browse latest View live


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