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

9862

$
0
0

Hello,

 

I am designing an applicaiton that enables the user to communicate with a CAN network using NI9862 USB-CAN interfact.

 

I am quite new to Labview and something strange happens...when I press any key of my keyboard, the application freezes and I have to force-quit in order to start again. I tried to use event structures but it doesnt help...still freezes. Do you have any suggestions why this might happen?

 

 

Thank you for your attention,

 

Lorenzo


RS485 Serial HELP for Low-level Read Queries

$
0
0

Hi,

 

I am trying to communication with some lab equipement (Ebara Turbopump) over rs485. Now I have a Blastronix 2 port RS485 PCI board connect with cabiling to the equipement. But when I try and use NI-VISA to communication, the read times out, which is not particularly useful information because I don't know what part of my query is wrong then.

 

Below, I've posted some images from their communication protocol, but I am very confused as to how to translate this into a Labview VI. So far I've tried using a String Constant with the example 8.1 (last image, with my slave ID: 001) but I get nothing. I've tried it in both ASCII and Hex with a carriage return at the end.

 

Any help is very appreciated!!

 


 

Screen Shot 2015-05-25 at 5.45.43 PM.pngScreen Shot 2015-05-25 at 5.46.06 PM.png

Screen Shot 2015-05-25 at 5.46.16 PM.pngScreen Shot 2015-05-25 at 5.55.24 PM.png

error 1073807346

$
0
0

Good day all.

 

My signal generator model (E4432B) is of a ESG-D series. I had downloaded the relevant driver and I was exploring the examples given. However whenever I run the .vi program, there will be an error message prompting me as shown in the attached image.error.PNG

 

I had read through some of the forum posts from various sources and the prominent suggestions was to install the VISA driver. I did that but the same error still appears. Hence may I ask what are things that I may still miss out?

 

In addition, if it is something to do with MAX, may I know the step-by-step procedure on how to do it as I am new to it.

 

This is the program as attached: "Agilent ESG Series Config FM Signal".

 

 

Kind Regards.

 

PCIe-8375 problem

$
0
0

Hi

 

I recently purchased a PCI-8375, MXI-Express fiber optics cable (10m) and one PxiE-8375. The reason that I purchase PXIe-8375 due to I need to have a multiple chassis connected into daisy chain mode. So, I insert the PCIe-8375 into a desktop with a fiber optics cable and the PXIe-8375 to one PXIe-1075 chassis. I switched on the chassis connected first followed by switch on the PC. I can see the LED on the cable and both PCI and PXIe cards are turn green.

 

My problem is once I connected in this manner,  my PC cannot  boot in bios as well as windows. I had installed MXI Express compatible software 1.4 in the desktop. However no luck. i am currently curious what I did wrong . Can somebody please guide me ?

 

currently I am using Window XP services Pack 3.

 

Thanks

error 1073807339 - Eurotherm PID 3216

$
0
0

Hello!

 

I am trying to configure my Eurotherm 3216 PID Themperature Controller with LabVIEW. I tried to launch the examples as suggested in the Eurotherm manual "3200_AN_030908U001_1.pdf",
using the recommended Serial Configuration, however I get the following Error:

 

"Error - 1073807339 occurred at Visa read [...] VISA: (Hex0xBFFF0015) Timeout expired before operation completed."

 

I get the same error when testing the port through the "Continuous Serial Write and Read.vi", and also when testing it through the NI-MAX VISA Test Panel by attempting to read "*IDN?\n". On the other hand, I am able to communicate with the device through the same port using the software "iTools Engineering Studio", so I am puzzled. I read the vast material available about the same error in the forum but was not able to solve the problem, therefore some additional help would be extremely appreciated. I am not even sure it is a LabVIEW issue.

 

Thank You All and Best Regards,
Matteo

CAMTEC power supply with USB interface

how can i combine 1D array of numeric and 1D array of string

$
0
0

I have 1D array of numeric numbers (COLUMN)

and

1D array of string (COLUMN)

 

I want these two 1D columns to come next to each other and become 2D array.

 

 

1st column               2nd column

A                                1.2

B                                1.01

C                                  2

D                                   8

.

.

.

 

Keysight 34465A - ivi troubles

$
0
0

Hi guys!

 

I've problems with my new DMM Keysight 34465A. I'm not able to do measurements or anything else with LabVIEW (14 SP1).


Until now, i have some Agilent/Keysight DMMs, but all of them are "older" types, communicating by VISA. The 34465 driver is now with IVI. So this are my first steps with ivi - but i read some tutorials (http://www.ni.com/tutorial/4594/en/ ,....) and i think, that i should get it done... But i didn't geht it done in the last two days.

When i start the "Single Point Measurment "example VI with LabVIEW i get error -1074003951 Primary Error: (HEX 0xBFFC0011) Identification query failed.

When i set the "ID Query" from the Initialisize VI to false, i geht error -1074135024 Primary Error: (HEX 0xBFFA0010) Invalid value for parameter or property. Elaboration: The model specified is not valid.

 

So I'm not sure if there is a problem in my ivi configuration or a problem with the triver?! Or something else...

 

Please for help and sorry for my english :smileywink:

 

 

edit: The *IDN?\n command is working:

1: Write Operation (*IDN?\n)

Return Count: 6 bytes

2: Read Operation
Return Count: 72 bytes
Keysight\sTechnologies,34465A,MY54500397,A.02.06-02.37-02.06-
00.48-02-01\n

 


rs232

$
0
0

I won't let off the RS 232. I would like to communicate with an SPN 1 (Pyranometer). I use the Serial Port on my CRIo 9074

For the RS232 communication of the SPN 1

 

All digital information can be output via the RS232 port (9600,N,8,1). This can be used for reading the
sensor, as well as for production test and calibration functions.
Operating modes and Serial commands
The SPN1 can be interrogated from any serial port terminal program (eg Windows Hyperterminal, or
the Terminal screen in the SunRead software). Set the RS232 settings to 9600 baud, No parity, 8 Data
bits, 1 stop bit. In Hyperterminal, also set ‘Append line feeds to incoming line ends’ in Settings >
ASCII setup.
In the following tables, commands TO the sensor via RS232 are in bold, responses (also via RS232) are
in normal weight. All RS232 input characters are echoed back except for the ‘R’ command.
For commands with more than one input character, a command is abandoned if the input is not within
appropriate range, or 1 minute after a keypress. Unrecognised and aborted commands return ‘?’.
Sleep mode
Processor is in its lowest power state.
If the sensor is asleep when the DL-POWER pin goes high, then the sensor will wakeup and start to
output the analogue values, as described above.
Any RS232 input will wake the sensor up for long enough to respond to the command. The suggested
procedure is to send an‘R’, wait for the ‘»’ response, then send the desired command, and wait for the
terminating <CR>.
RS232 Input /  Response   
R  / » (ASCII 175)  For BF3 compatibility

 

 

I've deleted the Read/Write Controls in the continous serial write read.vi (example See attachment), checked the serial settings and the compatibility of the cables, meaning RX-TX and vice versa. The instrument should be powered through the serial.

Is this a possible problem?

 

The IO Trace file is attached as well.

 

What is wrong, any hints?

 

 

 

Controlling HL5500PC Hall Measurement System

$
0
0

Hello,

 

I am trying to control a HL5500PC Hall Measurement system. It is currently controlled by its (very old) software and uses GPIB and RS232. I want to be able to see what GPIB commands the software is sending so I can emulate it. I have never used LabVIEW or GPIB before. 

 

I have connected a GPIB-USB-HS cable to the machine. In the screenshot you can see that the instrument shows up as 14 separate instruments. Is this supposed to happen? Also when I send the *IDN? query it gives an error. I am doing this with the machine turned on and both with and without its software running:

Capture.PNG

 

I have also attached the manual. Relevant GPIB information is located on page 63. It says the machine has a "listener" and "talker" mode. The 14 instruments listed in NI MAX have secondary addresses corresponding to the 14 different commands in "listener" mode. What is "listener" and "talker" mode? How can I switch between them?

 

In general, how can I communicate with this machine? The manual says you call functions by using the primary and secondary addresses. How would I do this in LabVIEW? 

 

Finally, how does the RS232 connection play into all of this? Do I use LabVIEW to see/send RS232 commands as well?

 

Thanks!

Serial Write error -1073807339

$
0
0

I have an application running in LabView 2010.  It has been running flawlessly for 3 years. It polls two devices via RS485 and RS232 then logs and displays the results. I recently moved the computer and it was working OK until 2 weeks ago.  Now I get an error -1073807339 when attempting a serial write using a 4 port PCI-232 card.

 

1) Card is functioning properly

    a) I can send commands though the "connect to instrument" option for the appropriate port listed in NI-DAQ and the instrument responds.

2) The cabling is fine - I can see the data transmission at the controller (as far down the cabling as possible) using an ocilloscope

3) RS-485 communications in the same code using a PCI-485/2  is still working

4) Error seems to be arrising from VISA assignment, but its odd since it has been fine until now.

5) I even get the error when I use a simple write command with no response expected.

6) The computer's new location has no internet.  Its been offline for 6 months. Does this version need periodic contacts with NI to retain functionality?

-1073807343 ERROR NI VISA write in

$
0
0

NI VISA driver was working fine until I installed a Tektronix driver  .It threw the following error from then on

 

"1073807343 ERROR NI VISA write in"

 

So I uninstalled the NI VISA driver to install the new version with the bug fixes .

But I was not able to install the newer version NI VISA 14.0.1 as throws the following error

"

Unsupported version of NI-VISA detected

A version of NI-VISA that is not supported on this operating system has been detected. You must cancel this installation and uninstall the older version before continuing. Visit ni.com/info and enter the Info Code CleanVista for more information."

 

But I have uninstalled the older version already . How do I fix it ?

 

NI MAX sees GPIB controller/board, but hangs on Troubleshooting test/Scan

$
0
0

Hello,

 

I have a new PC (Win7, 64 bit) with a new PCI-E GPIB card and NI-VISA 14.0 (latest). I can't get the card to 'do' anything - it won't pass the troubleshooting self test, or scan for instruments, and the ibfind command in Interactive control does nothing (they all 'hang' no error reported). This is happening with two identical machines, each with the PCI-E card. My test machine from 6 monts ago works fine, but that is 32 bit and has a different firmware/chipset from the vendor (which was unexpected, we ordered the same model, but the vendor seems to think it's so minor they kept the model the same number).

 

Any ideas on what steps to take? I've downgraded NI-VISA a couple of times already, and Windows happily reports the driver/card are working fine. GPIB options all seem normal on default (GPIB0, system controller checked, etc).

 

Thank you for any suggestions!

- Rick

Stop button doesn't work

$
0
0

Hi,

It's my first time posting and my first time using LabView, so sorry if this post is in the wrong section or missing details. Please let me know what is missing and I will do my best to fill in.

I've designed a program that controls a step motor as part of a spectrometer setup. I'm using the SCB-68 which is connected to a coaxial cable which goes to the detector. The motors are connected to a card that's in a PCI slot. One of the problems we've been having is the "scan" feature: if one accidentally inputs the wrong values for the scan and attempts to stop it, it works only if the data acquisition hasn't already started. If the data acquisition has started, one has to wait for the scan to complete. This is problematic, since some scans can take as long as 35 minutes. I'm not sure why the stop button doesn't work.

 

The logic behind the scan is: if at correct starting postion, start scan/data acquistion. If not, move to postion and start scan/data acquisition.

Also, we've found that when a number that was previously used to start a scan (say pos: 11000) is put into the same field on the front panel, the scan will automatically start without the user having pressed the "Scan" button. 

I've spent nearly 3 hours trying to wrap my head around why these things are happening, but I can't figure it out.

Thank you in advance

How to send commands to a MFC via a RS-485 in LabView

$
0
0

I have a GE50A MFC from NI and am trying to send commands to it via a RS-485 in LabView and cannot get it to work. Has anyone built a VI for this? I have a VI that has worked previously for a p series MFC that I am trying to adapt for my g series MFC. Indicators show that I am sending the right commands to it but I cannot get a response. I tried to send commands directly though the open VISA test panel, but do not get a response that way either. Has anyone tried to do this before? Any idea? Help would be greatly appreciated. 


GPIB, RS-232, or USB?

$
0
0

I would like to purchase a programmable power supplies for our lab. Some power supplies have an RS-232 port, others have a GPIB port, While other still have a USB port and an RS-232 or GPIB port.

Is one protocol better than the others? If not, what are the advantages of each protocol? And why did NathanT recommend GPIB over RS-232 in this thread?

Thanks!

-1073807342 error

$
0
0

Hi,

 

I have been controlling a Keysight Power Supply device using NI VISA in LabVIEW  .It was working fine . I sent queries using MAX and after sometime I tried to control it again using the LabVIEW program and it sent me the error -1073807342 . I tried it multiple times and still not able to fix it . What should I be doing ?

 

Thanks in advance

USB RS232 'Is Port Connected' 'Invalid Property Value'

$
0
0

I am quite new to this so if any of the below is unclear or needs more explanation let me know and I will attempt to provide the information.

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 (COM5) from looking at the 'Manage Devices' part on Control Panel. 

All the Serial Setting are set up correctly as I can tell (the User Manual is here, with page 17 being the relevant part, and my configuration here). 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).

But when I went back to "View Attributes" the final Attribute "Is Port Connected" has an error with "Invalid Property Value", and the error warning Hex 0xBFFF001D. Due to my inexperience with all this I am not sure where to really start trying to fix this problem, or what steps I need to make to make it start functioning correctly.

Any and all advice is appreciated. Thanks

Control Matsusada DC power supply with IVI

$
0
0

I need to be able to control 3 Matsusada REK series DC power supplies using Labview. I don't have the hardware yet so I am using a simulation to test my code. It seems to be working with the simulation, but I would like to know if there are any obvious problems with my code, since this is my first experience with Labview. I would like to be able to turn the output of each supply on and off, set the voltage and current limits, and set the voltage. Let me know if my program is on the right track or completely wrong. Thanks!

How interface N5181A MXG signal generator with labview by using LAN Interface????????????

$
0
0

hai every one ...i have a doubt how  to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and

how to find IP Address of N5181A MXG signal Generator????????

 

when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me?????? 

Viewing all 5663 articles
Browse latest View live