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

n6700 query voltage/current settings via property mode

$
0
0

I am trying to query back the voltage and current settings on the power modules in my N7600 chassis.  I am using this routine.  I get the following error.  This works fine with my E363x power supplies

 

 

error message.PNG

 

 

 

 


GPIB-USB-HS won't communicate

$
0
0

I have GPIB-USB-HS connected to a dell desktop with Windows 7. I have tried using two separate desktops (same make/model) and cannot communicate with any instruments connected (HP33120A signal generator or HP34401A multimeter). These computers have not previously had any GPIB cards.

I have tried pluggingin the adapter into the usb port of the computer and connected it to either instrument and allowed windows to find the driver and uninstalling said driver (and all of my NI software) and installed the most recent driver from the NI website. I have done each of these with the adapter not plugged in, plugged in with no instrument connected, and plugged in with an instrument connected.

The adapter's yellow light next to "ready" is on. When I had no drivers for the adapter, the green led next to "active" was lit. With no drivers, viewing it in MAX would show me a details page that read "Windows does not have a driver for this device." When I have the drivers installed and I scan for instruments, I get a message "Instruments not found." A screenshot of the MAX page and my device manager is attached.

What else can I try?

IVI Driver for Hioki RM3544-01

$
0
0

Hello,

 

I am looking to connect a Hioki RM3544-01 to my LabView SignalExpress software.  For other equipment I have been able to do this by installing IVI drivers for the device, but I could not find anything for the RM3544-01.  Does anyone have a driver or know how to make one?

 

Thanks,

 

Chris

ordinal 9 error message

$
0
0

I'm trying to help a customer install a labview excutable softpanel, which has been installed many times successfully.  This is the first time I've seen this error and there is no information searching on Google or NI website.  No problem installing the software, the device manager sees the instrument as an IVI instrument in the USB section, however Test and measurement has an exclamation mark next to VISA under devices.  It says to uninstall and reinstall the software.  

I have an error that I can't figure out.  The ordinal 9 could not be located in the dynamic link library NiViSv32.dll

I have tried uninstalling the VISA runtime engine, the 488.2 v2.7.3 software and reinstalling with no problems.  

Thoughts?  Suggests? 

 

Driver wizard does not allow USB to be selected

$
0
0

I am trying to control a Keithley 2230-30-1 Tripple Channel DC Power supply with NI-VISA through USB.

 

When I connect the power supply and go to VISA interactive control, there are no options for a usb device.  I know that the USB port I am using works, and that the PC recognizes that the device is manufactured by Keithley (using the lsusb command).

In addition, when I attempt to use the NI-VISA Driver wizard, the option to set up a USB device is grayed out.

 

Screenshot1.png

 

So far I have had no success with this device.  However, this PC and this version of NI-VISA has been able to sucessfully connect to and control a GPIB device using both LabVIEW and PyVISA.

 

I would appreciate any help I can get on this matter.  Thank you.

 

Useful Information:

PC: Dell Optiplex 755

OS: Cern Scientific Linux 6 (SLC6) x86-64  (a distribution based on and

VISA version: Version 5.4 (32-bit version as there is no 64 bit Linux VISA yet)

 

I can post additional information if required.

ibrd & ibrdf not terminating on EOI line, timeout EABO

$
0
0

GPIB-USB-HS    Interactive Control

Reads with ibrd or ibrdf are terminating with a time out EABO, and ignore the EOI line.

if ibrd is set for the exact size (eg 21), it terminates correctly.

using

  ibdev 0 03 0  12  1 0

 

How dor I set to termiante on EOI line alone, so I don't have to know the size of the message (or termination character)?

visa driver wrong endpoint descriptors

$
0
0

Hello,

 

I am trying to communicate with a custom-made HID device with LabVIEW using the NI-VISA Driver Wizard. The device can be used with the standard windows driver with C#, but now I will use it with LabVIEW.

 

The device has the following endpoint descriptors:

 

Endpoint Descriptor 81 1 In, Interrupt, 1 ms
OffsetFieldSizeValueDescription
0bLength107h 
1bDescriptorType105hEndpoint
2bEndpointAddress181h1 In
3bmAttributes103hInterrupt
 1..0: Transfer Type ......11 Interrupt
 7..2: Reserved 000000..  
4wMaxPacketSize20040h64 bytes
6bInterval101h1 ms
Endpoint Descriptor 01 1 Out, Interrupt, 1 ms
OffsetFieldSizeValueDescription
0bLength107h 
1bDescriptorType105hEndpoint
2bEndpointAddress101h1 Out
3bmAttributes103hInterrupt
 1..0: Transfer Type ......11 Interrupt
 7..2: Reserved 000000..  
4wMaxPacketSize20040h64 bytes
6bInterval101h1 ms

 

 

There are two endpoint descriptors for communication in Interrupt mode. But after creating a driver with the Driver Wizard this driver doesn't have these two endpoints. Instead it recognizes the descriptor with 0x1 as Bulk In Pipe and the Descriptor 0x81 as Interrupt In Pipe (a screenshot is attached, because the values cannot be copied).

 

A communication with the LabVIEW examples which uses the Interrupt In Pipe does work, but everything else failed because of the wrong out endpoint.

 

Is there any way to correct the descriptors?

 

 

Thanks,

Chris

 

Error: Property Node (arg 1) in VISA Configure Serial Port

$
0
0

I am getting this error as ""Error: Property Node (arg 1) in VISA Configure Serial Port""  

in my VI

 

I am not able to locate the problem..

please help out.


Configuration de la Fréquence de réception de données d'une trame RS-232

$
0
0

Bonjour,

 

Je suis sous LabVIEW 8.2 et je débute dans la programmation G.

 

Je souhaiterais avoir la possibilité de choisir la fréquence de réception de mes données à l'aide d'un bouton variateur

 

exemple: lecture de données toutes les 1 seconde ( 1Hz) via un connexion RS-232, affichage dans un graph et sauvegarde des données dans un fichier texte.

 

Merci d'avance, et bonne journée

ni4882.dll references

$
0
0

We have many programs running with the 1997 version of the VBIB32 we also has visual studio programs running older version of the GPIB DLL NationalInstrument.ni4882.dll and Nationalinstrument.Common.dll but this files are not part of ni488_312.exe.

 

What dll's should be added to Visual Studio programs in the reference area to correctly run the GPIB ENET/1000? What VBIB32 version should be added to VBA software to correctly run GPIB ENET/1000 and ENET/100 units? 

 

I found many references in the forum to a location C:\User\Public\Document\Nattional Instrument\488.2\example\DOTnet??? directory that also did not come with 3.1.2... 

VISA error code -1073807239

$
0
0

Hi,

I am using NI-VISA 5.4 to communicate with Keithley SMU 2636B. On the PC, my application registers a callback to receive service requests from the meter. Once a service request is received, the application calls "ReadStatusByte()" from the MessageBasedSession object to get the status byte and processes it.

 

That logic works fine most of the time. However, the call to "ReadStatusByte()" fails intermittently with the below error message:

 

"The protocol specified is invalid.  VISA error code -1073807239 (0xBFFF0079), ErrorInvalidProtocol"

 

I would appreciate any help I can get on this issue.

Thank you,

 

Keithley source and measure code

$
0
0

Hi all,

I an trying a code in Labview on Keithley 2400 instrument.

here my requirement is on my block diagram i want to write a program for source and measure and that can list out the any  error in that instrument once i run the code. it will list the errors like error1,error2,.......like that.

In the out put window i want to see the instrument serial number.

GPIB address

set volt, set current and limit.

display the error.

please suggest me how to do this.

 

where to find ivi.h documentation

$
0
0

Hello everybody!

 

I have a trivial question: where to find ivi.h documentation. Whats really interest me is function descriptions, what they are doing and what parameters are passed. I search everywhere so this is last place where I can find some help. I have only header file and library. What is funny to other ivi class headers like iviSwitch I have full documentation in fp file. For ivi.h there is a problem.

 

Regards

Tomek

LabVIEW Communication with AWG TGA12104

$
0
0

Hi all,

 

I am currently exploring the use of LabVIEW VISA for communication with instruments. I am looking at communicating over the different interfaces (USB, LAN AND RS232). I had no problem establishing communication with Agilent DSO1012A and 33220A over the USB and Ethernet interfaces.

 

However, I have got an AWG TGA12104 with USB and RS232 communication interface. I have not been able to establish any successful communication with this instrument except the identity query. First I had problems installing the USB driver. Information that came along with the driver CD states that when the remote interface of the instrument is set to USB, the system plug and play will automatically detect the USB device when it is first connected and there will be onscreen directions to follow to install the driver. This I did but the device driver failed to be installed the first time and there was no onscreen direction to follow. I have tried other USB ports to see whether the system will recognise the device but this has been without success.

 

A second attempt to communicate with the device was through the NI-MAX. The only communication was the *IDN? query. This was achieved through the Serial communication port.

 

Can anyone please tell me what to do so that the device can be recognised as a USB device? I would also like to know how I can establish communication with this device. I have got a list of the instrument programming commands from the user's guide.

 

Please every useful suggestion will be welcomed.

 

Thanks

 

Peter

 

 

Is there a schematic for TNT5002 cpu bus interface in GEN4882 mode?

$
0
0

I have been given a GPIB PCB which uses a TNT5002 chip.  However, I am having trouble reading the registers using a TI Omap-138 CPU with the board attached to the CPU's EMIFA bus interface.

 

In particular, I believe that the PCB I have does not use HWORD properly.  Unfortunately, the information in the TNT5002 Tech Ref is vague and I have not been able to find anything on the NI site or elsewhere on the internet which shows the TNT5002 correclty wired up.  Apparently there was once an example schematic but it no longer exists anywhere.


Error -1073807343 in VISA Configure Serial Port in Compiled LV7.1 Executable (Possible VISA Alias Issue)

$
0
0

Hello,

 

I am having an issue trying to get an old LabVIEW 7.1 executable program working on Windows 2000. The program communicates with a device over RS-232 on COM2 (this port is hard-coded with a constant, unfortunately). I am getting error -1073807343 in VISA Configure Serial Port (Instr).vi as shown in the following screenshot:

 

visa_error.png

 

Running NI-Spy while the application is running shows that the application is trying to open a resource identified by "COM2", failing at viParseRsrc. The relevant log entries are shown below:

spy_capture.PNG

 

I have verified that COM2 shows up in MAX and that I can successfully communicate with the device using the test panel. When I first launched MAX though, the alias field was blank for all the COM ports, and trying to change it and save resulted in an error dialog. However, after closing MAX and the executable and relaunching MAX, the alias was correct. The executable still throws the same error though. I tried editing visaconf.ini to have an alias, as it did not list any (the NumAlias field was set to 0). This to proved to be futile. I also used Add/Remove programs to repair the VISA Runtime component, but this had no effect.

 

I do not have access to the computer right now, but after some more research I think I will try to remove the alias' from MAX and re-add them; perhaps they were corrupted somehow as I was changing the COM numbers through the device manager mutliple times. If anyone has other suggestions or possible solutions, I would be very grateful for the help.

 

Thank you,

Luke

Serial Communication with TDK-Lambda

$
0
0

Hello, I'm trying to control the genesys TDK-Lambda 750W power supply through serial communication(Through hyperterminal). I have connected my power supply with the PC using a RS 232 cable with DB25 and Rj-45 connectors. THe power supplu has the following settings:

Bits per second:9600(Default)

Parity :None

Address:06(Default)

For serial communication the power supply is setted to use RS232 in the rear panel.

I have verified the address, the baud-rate, the switches on the rear of the instrument, but it appears all ok.

I have verified the COM in the PC, too..but it doesn't talk with the tdk lambda. when I send "ADR 06" to the power source through hyperterminal it should say "OK", but I read only

ADR 06

ADR 06

 

I don't know whether the communication port on the power supply is enabled or not.could any please help. Thank you

Sending button configurations to a serial port

$
0
0

Hey there.

I am totally new into labview, therefore this might be an easy question for you guys.

I have four on/off buttons, which I'll use to send bytes through a port. Each button is supposed to send a byte that will, later, turn an equipment on/off. 

My program is supposed to be always running, but it'll only send a byte when a button is pressed. 

I'm willing to send a 3-byte package. The last one is a constant stop-byte, but the first ones are supposed to be sent by each button, being the first an identification byte and the second a command byte. 

Example: First button on will send 0xC4 and 0x16, and off will send 0xC4 and 0x15, plus the stop-byte.

Example: Second button on sends 0xC6 and 0x16, and off sends 0xC6 and 0x15, plus the stop-byte.

I am using a case structure for each button, with the identification byte out of it and the on/off byte inside of it, being concatenated. This result string then concatenates with my stop-byte, and goes to my visa write. All this inside a while loop.

My problems are:

- I don't know how to make this program send the byte-package only when a button is pressed;

- I don't know how to make my final concatenation be dependent of the button i have pressed.

I'm sending a base-image for you guys to understand what I mean. 

If I'm going completely the wrong way, please tell me how this kind of stuff is done!

Thanks.

 

example.png

 

serial comunication - bluetooth - data analysis - text to speech

$
0
0

I need to implement a project in wich an equipment comunicates via bluetooth (activating the serial port in Labview smplserl.llb) and the data most be analyzed through a VI named SIGNO that receives numbers 1 2 or 3 for each finger in a hand to detect what would be the sign showed in the hand output the letter or sign into a buffer to create a conversation using a Text to speach for windows created in Labview (TTS) and execute the TTS when a certain movement is done (right now is just by pressing a button speach).

 

ive tried allot of things, changing the structures in the TTS VI the cycle to proceed or the form of calling the VI. 

Ive tried to call the TTS VI from the Smplserl but it stops the serial input, and also to put the smprserl into the TTS when requested. 

 

1. I need that the port always receives. 

2. While it receives the sign code the TTS VI must recognize the sign and put it into the buffer that will enter to the Text To Speach programed. 

 

can some one help me with this, some recomendations. Im not an expert on Labview but i love to execute projects with Labview. 

 

thanks allot. 

 

attached is a zip with the files ive been using. 

4 wire settings for B2902 SMU

$
0
0

 Hi all,

 

Im using an SMU to discharge a battery(s), I need to set the B2902A SMU to 4 wire mode, as i understand it may be Remote Sense setting in one of the measurement VI's, but i cannot find it, can anyone assist?

 

Steven

Viewing all 5674 articles
Browse latest View live


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