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

Instrument not found after closing the VI reference

$
0
0

Hi ,

 

We are calling  two VI's in Teststand, out of which one VI initializes the instrument and other VI does the measurement. After the initialize VI is called i am closing the reference for the initialize VI due to which  instrument not found error is coming in measurement VI. If the reference is kept open the error is not coming, i want to ask does closing the VI reference has any effect on VISA resource also?

 

Thanks


What should I do when I can communicate with my instrument through NI MAX and other programs, but not LabVIEW?

$
0
0

Hi all, this is an issue I've had a few times before in one form or another.

 

I use a Boxcar Integrator (SRS 245 is the interface) for my experiment. I connect to it via GPIB using my Agilent GPIB/USB interface. My program runs in LabVIEW, and I have successfully used it in the (very recent) past.

 

However, sometimes, if I exit LabVIEW or something, weird stuff starts happening when trying to connect to it. For example, after exiting LV and starting it up again, and then attempting to run my program, it throws the error:

 

Error -1073807339 occurred at VISA Read in OR_Boxcar_ReadAnalogPort3.vi->OR_Boxcar_SimpleTest.vi

Possible reason(s):

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

Which basically means it can't connect for some reason or another (don't worry, I'm using the right GPIB address).

 

So then I go to either NI MAX or Agilent's equivalent (Keysight Connection Expert), go to the VISA communication part for either, and manually communicate with the machine. And it works! So clearly my computer is communicating with the machine at this point, but LabVIEW won't.

 

What could be causing this, and what could I try? thank you!

 

 

usb serial connexion

$
0
0

The problem I'm facing is as follows: I am trying to integrate a device into my LabView program. From the guides I could find on the NI site most of it mentioned going to NI MAX first, and then work from them down. My device is an RS232 port, so I have it connected through a USB converter, and I know I am looking at the right port (COM6) from looking at the 'Manage Devices' part on Control Panel. 

All the Serial Setting are set up correctly as I can tell (you will find attached the User Manual) , and my configuration also. I attempted to test the commands it gave me on the Input/Output section but constantly came up with the error "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed." I initially suspected I was entering commands incorrectly, as I find the instructions in the manual confusing, especially when compared to the stuff other users have posted about commands ("\r" and "\n" rather than what I am being told to write, though I accept that mine may not be the literal characters). I also change the timeout .. In vain 

I also connected with MAX.. I am also getting the same error timeout left... 

 

So I switched to control my instrument with the usb port (my device has also a usb port.. but it was asked that I use the serial one which explain my first try) everything now is working correctly.. No error but I am always getting this answer '01 whatever the request I am sending 

Capture1.PNG



Any and all advice is appreciated. Thanks

GPIB with labVIEW

$
0
0

If anyone can help me out, I am trying to hook up a Keithley 3390 Arbitrary Waveform Generator to LabVIEW with GPIB to control the generator.  The waveform generator is hooked up with an oscilloscope with a BNC cable and I want to use the instrument drivers for Keithley 3390.  I am new with LabVIEW and I thought I did everything right but it keeps giving me this error message saying id query failed.  I have found on multiple sites to disable the id query all together.  Does anyone have any input?

Can I listen to external GPIB traffic when I connected to the GPIB bus and other devices are communicating with each other?

$
0
0

Internally, I am aware that if the GPIB port is GPIB+ card then the card supports sniffer application (like NI spy) which are provided by default with the card.

I want to sniff the GPIB traffic between externally connected devices . Is it possible to capture and forward the GPIB traffic on the GPIB bus.?

Please also, let me know if it is possible to capture and forward the traffic while being a Listener?

USB-6501 Output open collector question

$
0
0

Hello all,

 

I am planning on using the usb-6501's digital outputs in open collector mode as a switch to ground to control a FET. I am using a 3.3V rail from my product with a 12k pull-down resistor with one end going to my USB-6001, and the other going to the FET's gate. On the small scale, this works great as the digital output on the DAQ at most sees 275uA. However, I need more channels than what the 6001 can provide and I was hoping to be able to control more than one FET per single line. I was wondering what the limitations were as far as current being driven into the USB-6501's digital ports?

 

I attached a drawing of the circuit in question

 

Thanks!

 

Sean

USB-8451 library wont install

$
0
0

I have installed the latest 2015 hardware driver for the USB-845x. However, niether the library nor Help Menu examples will intall. I have installed the driver on another machine without issue. Both machines are running LabVIEW 2015 (32-bit). The device is listed in NI-MAX and is said to be working properly. Are there any known issues that would cause the driver not to install properly?

GPIB with labVIEW

$
0
0

If anyone can help me out, I am trying to hook up a Keithley 3390 Arbitrary Waveform Generator to LabVIEW with GPIB to control the generator. The waveform generator is hooked up with an oscilloscope with a BNC cable and I want to use the instrument drivers for Keithley 3390. I am new with LabVIEW and I thought I did everything right but it keeps giving me this error message saying id query failed. I have found on multiple sites to disable the id query all together. Does anyone have any input?

 

Im using Keithley 3390 Standard Waveform.vi Driver and it's with labVIEW 2013


IVI compliance package, Max does not show any installed driver

$
0
0

Hi there,

 

I recently updated my compliance package to 15, now NI MAX does not show any LocialName, DriverSessions and so on. I'm even not allowed to create a new session. This feature is disabled (see attaced picture)

 

I tried to downgrade back to compliance package 14. Since this failed, I even reinstalled all NI software along with the IVI shared components.

 

 

Deserializing the ConfigStore in C# will also fail. It says the Configstore is not registred. So am I missing  something here? Do I have to install another package to get back the configstore?

 

kind regards

 

 

Slow startup after installing NI488.2

$
0
0

I recently installed NI488.2 on my Windows 7 machine.  After the installation the startup has gone from one minute to 20 minutes.  When I uninstalled the software the startup went back to one minute.  Can I have both fast startup and use of the software?

External DMM Not Communicating with LabVIEW Executables

$
0
0

Hi,

 

I currently have a system of power supplies connected with GPIB and a Agilent E34405A DMM connected via USB.  The system works fine when I use the full Labview program, but when i make a executable and installler and put it on another machine I cannot get the DMM to communicate the power supplies work fine and so does my other equipment.  Any thoughts?

Serial data between Shimmer and myRIO

$
0
0

Hello, 

I posted my question multiple times on the forum but I think I could find the answer here.

For my project I am using PmodBT2 bluetooth module to connect between NI myRIO and SHIMMER sensing device. After connecting them I want to stream data from the Shimmer to the myRIO, for that I used NI VISA with some commands. However, the data I am recieving is meaningless -as attached- and need to be organized. The Shimmer device is using firmwares that are documented as follows but I could not understand everything and get use of it.

The readme files below show the data format as well.

 

LogAndStream firmware: https://github.com/ShimmerResearch/shimmer3/tree/master/apps/LogAndStream

BtStream firmware: https://github.com/ShimmerResearch/shimmer3/tree/master/apps/BtStream

 

Please find attached the simple program I used to stream data. 

 

Thanks.

 

data acquisition with Agilent 33522A

$
0
0

Hello everyone Smiley Happy

 

when using NI-daqmx driver  (for data acquisition with agilent 33522A) what hardware should I use and configure please (name of the card )

 

please anything that might help me Smiley Sad

 

thanks Smiley Very Happy

Instruments with same Ip address

$
0
0

Hi all,

 

I'm using Pl303-P Power supply for experiment. 

I control it by TCP/IP protocol with VISA VI (classic open,write,read,close).

 

For practical reasons, i'm using LAN/USB adaptators to communicate by LabVIEW.

In my experiment, i have to control 2 resitances with 2 units dedicated.

 

The metter is appear when i connect both units on USB ports. Only one is recognized and i think they have the same address IP. 

 

I wanted to know how can i assign two different address?  

 

i use this reference of adaptator: http://www.dexlan.com/dexlan-adaptateur-usb-20-rj45-ethernet-10100-xml-2447_2474_2475_2487-29622.html

 

Thanks in advance, 

 

V.T

 

USB Interrupt-IN endpoint data

$
0
0

I am developing firmware for a USB instrument, and using NI-VISA extensively to test and debug it.  I would like to be able to read the data packet that comes on the Interrupt-IN endpoint during a USBTMC-USB488.2 service request (SRQ).  I think the firmware is doing the right thing because this code works:

 

ViSession defaultRM = VI_NULL, instr = VI_NULL;
// clear status; set OPC (operation complete) in event status enable;
// set ESB (event status bit) in Status Byte Enable Register; start an
// overlapped command; and generate a service request (SRQ) when
// the operation completes.
ViByte buf[] = "*CLS;*ESE 1;*SRE 32;:SYST:ARR:CLK 2304;*OPC";
ViUInt32 cnt;
ViUInt16 STB; 
viOpenDefaultRM(&defaultRM);
viOpen(defaultRM, "USB0::0x0000::0x0001::0::INSTR", VI_NULL, VI_NULL, &instr);
// Service request events go into the standard event queue
viEnableEvent(instr, VI_EVENT_SERVICE_REQ, VI_QUEUE, VI_NULL);
// start an overlapped command that takes some time to complete, and wait for the
// service request that indicates it is finished.
viWrite(instr, buf, sizeof(buf)-1, &cnt);
viWaitOnEvent(instr, VI_EVENT_SERVICE_REQ, VI_TMO_INFINITE, VI_NULL, VI_NULL);
// When you receive a VI_EVENT_SERVICE_REQ on an INSTR session, you must call
// viReadSTB() to guarantee delivery of future service request events on the
// given session.
viReadSTB(instr, &STB);

viWaitOnEvent gets the event, and the status byte I read has the right flags set (SRQ and ESB).  Since the status byte value is transmitted from the USB device to the host in a packet from the Interrupt-IN endpoint, it seems like it must be getting that packet.

 

I would like to see that packet.  But various things I have tried to get it from NI-VISA have so far failed.  For example, I tried installing this callback handler:

 

static ViStatus _VI_FUNCH interrupt_in_hndlr(ViSession vi, ViEventType typ, ViEvent evt, ViAddr userHandle)
{
	HANDLE interrupt_in_event = userHandle;
	ViUInt16 size;
	VI_ERROR(viGetAttribute(evt, VI_ATTR_USB_RECV_INTR_SIZE, &size));

	if (typ != VI_EVENT_USB_INTR)
		return VI_ERROR_INV_EVENT;

	if (size > 0) {
		ViPByte buf = new ViByte[size];
		VI_ERROR(viGetAttribute(evt, VI_ATTR_USB_RECV_INTR_DATA, buf));
		printf("Interrupt-IN data =");
		for (int i=0; i<size; ++i)
			printf(" %02x", buf[i]);
		printf("\n");
	} else {
		printf("No Interrupt-IN data!\n");
	}

	SYSERR(SetEvent(interrupt_in_event), FALSE);

	return VI_SUCCESS;
}

with this code

 

	HANDLE interrupt_in_event;

	SYSERR(interrupt_in_event = CreateEvent(NULL, TRUE, FALSE, NULL), NULL);

	// Install a handler for USB Interrupt-IN events
	VI_ERROR(viInstallHandler(instr, VI_EVENT_USB_INTR, interrupt_in_hndlr, interrupt_in_event));
	VI_ERROR(viEnableEvent(instr, VI_EVENT_USB_INTR, VI_HNDLR, VI_NULL));

and it never gets called.  I tried putting those events on the standard event queue, and the call to viEnableEvent fails.  I tried to open the ::RAW device instead of the ::INSTR device, and that fails.

 

Can anyone lend me a clue?

 


communication with agilent 33522A

$
0
0

Hello everyone,

Please anyone can help me communicate with my instrument named below (agilent 33522A)

what do I need exactly (drivers, hardware) please

thanks Smiley Happy

visa bulk read problems

$
0
0

Im trying to connect my PSoC 5 to labview via VISA USB, I have the drivers and everthing working fine. I started with the bulk.vi example and am able to transmit data and then mirror that same data back. my problem comes when I try and generate my own data. Im trying to write string data as uint8, I can tell that the VISA Read is seeing something when I send my data and then click the Bulk In button becuase if I dont send my data and press bulk in the program errors. Its almost like the read function is reading null.

 

any help would be great, im not super proficient with software in general but ill try and give you any more info you need.

Thanks

Case structure does not sarts!

$
0
0

I have creared the vi but after matches the pattren the matching vale does not stars the specific case instead the default case runs please tell me whats the problem problem?is it in string?

code in put as text file is

 A X01 Y04
C X03 Y05
A X04 Y08
C X07 Y09
M30

IMAQdx error code 0xFFFF3B1F

$
0
0

Hi,

 

I'm using the vision pack with AVT Stingray F201B Firewire cameras and USB microscopes. I've been using the IMAQdx drivers for a while now and all was working well but since a few days I often get error code 0xFFFF3B1F in MAX. In LabView this results in errors as well.
The information given when the error pops up is: "An undetermined error code has been encountered. Please note the error code and contact National Instruments Technical support for more information."

I couldn't find the meaning of this error online but I'd like to know what the problem is and how to fix it....
Hoping someone here had the same problem and knew what it was or some tech support guy saw it here.

 

Cedric

NI MAX VISA Test Panel Connection Troubleshooting with Device

$
0
0

Hello, 

 

I have an SST-HV device (Smart Sensor Transmitter) from Transducer Techniques and am attempting to test command execution using the VISA test panel in NI MAX. For devices on other COM ports, I can execute commands and read data results just fine, but for this particular device, which uses the RS-232 standard for serial communication, I cannot. The SST-HV device appears in the dropdown list of devices in NI MAX, but when I open up the VISA test panel and choose one of the commands, I do not get any data back. I set the corresponding baud rate, data bits, parity, stop bits, and flow control according to the manual specifications, so those should be fine. 

 

What might be the issue? Is there another easy way to test RS-232 connection? I am new to both using this device and NI products. 

 

Side note: When testing command execution on other devices (not the SST-HV device), we were able to retrieve data. Thus, this problem stems from this specific device not NI MAX connecting to devices. The second screenshot is of the manometer device, which does work, hence the returned data. 

 

The first screenshot is the error we are prompted with when executing a command on the SST-HV device. The third screenshot is our connection specifications. 

 

- Noah

Viewing all 5663 articles
Browse latest View live


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