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

MAX query error messages when communicating with ESPEC chamber BTZ-133 with controller SU-261

$
0
0

This has been driving me crazy.  I am new to LabView and MAX.  I could talk to the chamber last week and ran my LabView programs to control the chamber fine.  However this week without changing anything, once I entered "*IDN?" in MAX and clicked "query", I got either *NA:COMMAND ERR", or "NA:N", or "NASmiley Tongue" as response.  This morning when I used the following commands on MAX, I got the weird responses as listed below.

 

Input: *OPT?; MAX response: NA:T

Input: *IST?; MAX response: NA:I

Input: *ESE?; MAX response: NA:E

Input: *ESR?; MAX Response: NA:R

 

I am using a GPIB-USB-HS cable, which works fine with other instruments.

 

What can be wrong with my setup?

 

Thank you very much!

 

Tiaotiao

 

 


6487 nan

$
0
0

We are using labview 2011 to read a Keithely 6487 picoammeter. We get good readings for a while then suddenly Labview starts outputing NaN. It does this randomly. But once it starts it no longer outputs numbers to the screen only NaN. Right now our fix is to close restart labview. The error seems to be associated with the driver, in labview, that is for the Keithley (I think). Any ideas would be appreciated., thanks.

Access via GPIB from real-time target.

$
0
0

Hello.

 

I use Kiethley 2400 Sourcemeter which connected to PXIe-8135 by GPIB and PXIe-4139. I use real-time module on it.

I can see Kiethley from Visa Ineractive Control in localhost and in PXIe.

When I launch LabView program from the host computer I can see VISA resources, but can't see my Real-Time device PXIe-4139. When I launch it from Real-Time target, I can see PXIe-4139, but I can't see VISA resources.

I've tried to do so http://digital.ni.com/public.nsf/allkb/01F9536A7A1D12A486256FF000561DA6 , but it hadn't help.

How can I access both devices from LabView?

deloy an arduino code through labview

$
0
0

I am trying to develop a VI that could upload arduino sketches to arduino using labview. But I am totally lost if that's even possible.

Any ideas or thought how could it be done?

thank you in advance.

MKS 925 Transducer - able to read but unable to write.

$
0
0

I have labview code running that communicates with two MKS 925 Transducers regularly pulling their readings once a second.  It stopped communicating recently and I've been at a loss to identify the breakdown in communication.

 

I've opened up NI-MAX to test the communication seperately from the program and verified there is a communication breakdown there as well.  I plugged in a PRD900-12 and confirmed the transducers can communicate with other devices but not with the computer I'm on.

 

Using the PRD900 I tried sending a test signal to labview and successfully recieved it, but still got the error message: "Read Operation Error VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

 

I've confirmed I"m using the right address for the PRD controller and the transducers.  I've also checked and ensured that the com ports are right.  The write command I'm sending should change the address on the transducer or on the controllers and it doesn't.  I'm able to change the address through other devices over a serial line but not through NIMAX communication, and also not through my labview code.

 

Because the write commands don't work, the transducers/controller never bother to respond and I get timeouts on my read.  I'm new to both labview and NI so I'm not sure if there is an obvious mistake I'm making and would love feedback. 

 

I searched several times for problems relating to being able to read but not able to write and everyone else seems to have the opposite issue, but in advance I apologize if this is a repeat issue that has been answered elsewhere.  I will be glad to provide more info if I left something out that is needed to fix the problem.

 

Capture 2.PNG

 

 

My settings are below:

Status for device COM10:
------------------------
    Baud:            9600
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         ON
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF

 

 

Capture.PNG

 

To show that I'm using the right commands:

Capture3.PNG

 

Does anyone have experience with activate SICL errors using an agilent G1680-63715 pci card?

$
0
0
If the computer is does anything that max out the cpu I will end up with a bunch of activate sicl errors and our chemstation software will crash. If someone has experienced this type of error, have you tried using a NI488.2 pci card with onboard bus mastering DMA and did it solve the problem?

UART to LabVIEW

$
0
0

Hello i am wondering how to seperate form voltage sine wave with data from the adc on my microcontroller.  My code works as follows, im sending sets of 512 numbers and i have a $ that insitates the begining of each 512 numbers, then between each number there is a comma, there is 8 digits between each comma representing its own number, So now i need a way to find each comma and $ sign. I used the match pattern to find the $ and comma and it does but only one $ sign and comma. I need every one. Then i need to join numbers to replicate the same AC sine wave that my circuit produces. I have attached images of the data in the read buffer and my VI code.  If somone can please help me separate this data and then form a sine wave with it for analysis. There is also a image of the data in virtual uart terminal

visa error code -1074135024 with dmm 4065

$
0
0

what does this error code -1074135024 mean when requesting, read, the data from the dmm

NI PXI 4065 external trigger


dmm 4065 external trigger pull down

$
0
0

does the DMM 4065 external trigger input (aux port on card front) require a pull down for a postive edge trigger?

VISA 15.0 drops support for LabVIEW 2011?

$
0
0

(Generally I hang more on the LabVIEW forum but figured this was the more appropriate venue.)

 

Per the release notes, VISA 15.0 shows support only back to LabVIEW 2012.  I've got lots of production applications using 2011 runtime (and probably a few using 2009 as well).  Can someone from NI give me a read on whether I can still expect the applications to run if VISA runtime should happen to get updated to 15.0?  Nothing fancy going on with the hardware - just plain old serial stuff in use.

 

Thanks,

 

Dave

Agilent 6812B AC Power Source does not work with IVI class driver

$
0
0

I am trying to use an Agilent 6812B AC power source with the ACPWR class IVI driver over RS232.  I have everything setup in NI Max but I can't get through the initialization routine.  I've tried in both LabView and LabWindows and neither will work.

 

I decided to monitor the RS232 RX/TX lines and I see it is sending the "*IDN?" command and it times out before receiving a response.  Unfortunately, it is not sending the line feed terminating character at the end of the string.  I can go through NI MAX and send "*IDN?\n" and it replies back with the ID just fine.

 

So my question is, could it be possible that the IVI specific driver is just not written properly to send a line feed as a terminating character or do I need to setup the comport to send this character seperately?  The IVI driver was downloaded from NI's instrumement driver network and it says it is compatible with the 6812B but has been tested with a 6813B.

phasors measurments from serial data

$
0
0

Hello,

so i am sampling a voltage from a standard wall outlet, through the adc on my microcontroller, then the values are sent through uart to labview. I managed to get all the values and replicate the 120vac Sine wave.Im not to sure if i can do that. Also for the amplitude i made up my own formula that would give me 120Vrms. I heard something about resolution from my adc to get amplitude also. I am now wondering how would i calculate the frequency, i figured i can take the period to be peak to peak of the sine wave and then take 1/t to get the frequency. The frequency should be 60hz. Im not to sure if i can do that. Also would like to get phase angle. I have attached images of front and block panel of code.

IX-81 Olympus Camera-Visa and NI MAX read problem

$
0
0

Hello All,

 

I am getting Visa Read error  in both sample labview VI's and NI Max test panel.. IX2-BSW program (Olympus software) is working and I tracked the serial commands being written and read. An example is:

 

write:

 32 50 4F 53 3F 0D 0A

2POS?..

read: 

 

 32 50 4F 53 20 33 35 30 30 30 0D 0A

2POS 35000..

 

However,

1.NI Max test panel gives Read problem error from the test panel

2. Olympus Command VI gives read error as well, when I enter a command (actually the same command with the first message of this topic: 

 

2POS?\r\n

 

Since I am new to Labview, I tried everything I found on internet:

 

1. I changed the COM port settings as in this link and checked from msdos-->MODE if they are really changed:

https://micro-manager.org/wiki/Olympus

Or specifically:

Baud rate: 19200, data bits:8, parity:even, stop bits:2, flow control: RTS/CTS

 

2. I increased and decreased the timeout time, did not work

 

3. I am doing everything after restarting the computer again, to be sure.

 

4. I changed the command string's display property to backslash first, did not work,(which is the same write code written above), I checked it from the serial port monitor:

 

 31 32 50 4F 53 3F 5C 72 5C 6E 

12POS?\r\n

 

 It basically adds '`1' or '`31` in hexadecimal, this is coming from the Device number input in the program. Device no is concatenated to the message

 

5. .Then I changed the command string's display property to hexadecimal and entered the proper hex message, the same thing happened, a '`1` is added

 

The device number string is going to two concatenation objects. It (reasonably) adds 0 to the message when I make it 0. It gives error when I remove this from the block diagram, because concatenation wants another input.

 

What do you suggest me to do? Since there are other inputs to the object, I don't want to change it.  I am assuming there is something I might be missing, any help is appreciated, I attached the screenshot.

 

Note: I am not using Labview and BSW simultaneously.

 

voltage isolation in NI9206 channels

$
0
0

 

 

Hello All,

We are having an issue, not sure what can be done.  We have the following hardware that was just purchased.

1. NI cDAQ-9188XT CompactDAQ Chassis (8-Slot Industrial Ethernet)

2. -±80 mV Thermocouple Input, 14 S/s, 4 Ch Module

3.  NI 9206 ±200 mV to ±10 V, Analog Input, 250 kS/s, 32 Ch Module

4.  NI PS-15 Power Supply, 24 VDC, 5 A, 100-120/200-240 VAC Input

 

 

The intent is that we need to measure a series string of 12 battery voltages which are each 4.2V  (50V max).   However, this this 12 cells is just really the minimum, with the possiblity of doing upto maybe 150V max rather than 50V

The thought was that the channels are differential and we could use this system to do differntial measurements across each 4.2V cell as the individual cell voltage is all we are intersted in.   However, we are now confused as someone has pointed out that the datasheet says there is no channel to channel isolation, the 600V isolation is only across the 'mains'.   So I am guessing this will no lnoger work.

 

Anyone have any thoughts on what we can do to get running?

We have the entire system programmed and running on a test system input (ie function generator) so Im hoping to not lose any time invested in programming.

1. is there is a new product that has the channel to channel isolation?

2. is there a way to maybe do a voltage divider down to the 30V level, which is possible, but not ideal.

3. A way to reference measurments ground to lower potential outside of a voltage divider

4.  Do we even need the channel to channel isolation anyway?

 

thanks

Jim

 

 

IO Trace: What is VISA Attribute 0xBFFF0002?

$
0
0

Hi all,

 

The Question:

Can someone tell me what VISA attribute 0xBFFF0002 correlates to so that I can track the bug?

 

The Context:

 

This week I've been asked to help troubleshoot some odious bugs that others are encountering.

 

In continuing that theme, I've got a VISA IO trace that someone has handed me, and there are several lines with an invalid session/reference error.

 

That error occurs when "VISA Get Attribute (0xBFFF0002)" occurs. I really need to know what attribute it's trying to fetch and a hex code doesn't tell me anything by itself.

 

 I saw that a couple of other such requests in the past went unanswered - I'd greatly appreciate any input.

 

Thanks,

 

Mr. Jim


PXI-4065 -1074118656 Error

$
0
0

I am not sure if I am posting this in the correct forum as I seldom have a need to request help. If this is not the correct forum, then I can repost if you are knowledgable as to which forum this belongs in.

 

The company that I am working at has purchased a PXI-4065 DMM module for their  PXI-1036 chassis. I have just started to develop the software for the DMM so that their test functions can call my DMM functions. I have included the code, as simple as it is at this point. When I step through the code, the IviDmm_init function returns the error code -1074118656. Looking at the DMM help file, the error is listed as:

 

Decimal ValueHexadecimal ValueError or Warning CodeDescription
–1074126845BFFA2003NIDMM_ERROR_MAX_TIME_EXCEEDEDThe maximum time was exceeded before the operation completed.
–1074118656BFFA4000NIDMM_ERROR_UNKNOWN_DEVICEDevice was not recognized. The device is not supported with this driver or version.

 

 

I have included images of the NI MAX setup in case I have not configured something correctly. We are using LabWindows 2013. Latest version, more memory, faster processor, etc. will not happen with these folks. We have to be compatable with the factory.

 

In NI MAX, if I set the device to "Simulate With" and select "Specific Driver", the code returns a success status. That would lead me to believe that my code is correct in linking to NI MAX but the NI MAX setup to the device may not be correct. I could be incorrect in my assumption. In NI MAX, I can open a "Test Panel" to the DMM and that appears to work.

 

I do not believe that I need to call any other function prior to the IviDmm_init function call. If I do, please let me know.

 

If you know the solution or can recommend something in an attempt to determine if it solves the issue, I will give them a try.

 

 

Thank you for your help.

 

Bill

 

 

 

What kind of HW for the temperature measurement -60°C to +85°C (at least 8 channels eventually 16 channels)

$
0
0

Hello,

 

could someone pls advise me in matter of my NI configuration? I need acquire temperature in range -60 to +85 of electronic integrated circuits by using thermocouple (I quess type K,N or T?)

(I would go for K type, this one: http://www.farnell.com/datasheets/1918816.pdf). Device under test will be placed in climatic chamber. Idea is to get acquired temperature values in celsius degrees for example in .txt file (in order to create graphs and etc).

1st option I have selected:
CHASSIS: cDAQ-9178, CompactDAQ chassis (8 slot USB)
MODULE: NI 9213 16-ch TC, 24-bit C Series module

SYSTEM ACCESSORIES:
Power cord,240V,EuroClass
NI PS-9 Desktop Power Supply, 12 VDC, 1.25 A, 100-240 VAC Input

 

BTW in near future I will do some kind of automation tests and control programmable devices as Power supply(e.g. TTi), multimeters(e.g. Keithley) and etc. Do you think that cDAQ-9178 chassis would be sufficient also for these purposes?(by just additional purchase of appropriate modules?)

 

 

2nd option I have selected:

NI 9213 16-ch TC, 24-bit C Series module 780493-01

NI cDAQ-9171, 1-Slot USB Chassis 781425-01 (http://sine.ni.com/nips/cds/view/modelpopup/p/pcat/13254/lang/en)

Power Cord, 240V, 10A, North American (but I need power cord 240V for Europe)

 

 

 

OR 

 

 

3rd option would be use my keithley 2700 multimeter and buy Plug-In Module 7700 with 20channels  (http://www.farnell.com/datasheets/1884812.pdf)  + buy NI GPIB-USB-HS (http://sine.ni.com/nips/cds/view/p/lang/en/nid/201586) ???

 

 

SUMMARY:

Cost in total for NI components: 2 844 $ (1st option) Vs. 1 485 $ (2nd option)  Vs. Cost in total for Keithley solution: 1 239$ (3rd option)

 

 

Or am I completely wrong with those HWs?  Please help me because i am completely new in this field for the time being  =)

 

 

BTW: I have already LabVIEW software.

 

Many ThX!!!

HP3562A Signal Analyzer communication over GPIB: data array missing values

$
0
0

Hello!

 

I am working with the HP3562A Signal Analyzer over a gpib-usb converter called Proligix. I am coding in python as well. The Prologix came with a easy to use python module to write commands to the GPIB and output the data.

 

I am trying to get the data in the form of ansi-floats, using the command "DDAN". The output array contains all of the header values, but not all of the data. For example, the Programming Manual says that for the frequency response trace, the array should contain 13344 bytes, but the outputted array only contains around 3520. The number of bytes in the array also changes every time I pass the command DDAN (ranged from 3520 to 3560 normally), but it is always around 3520 no matter what measurement is currently being used. The prologix python module does include a waiting parameter, which tells the python program to sleep for 0.1 seconds by default, but changing this parameter does not effect the output array length.

 

I am not sure what to do here, so I would appreciate any suggestions!

 

Thank you!

computer reboot needed after power cycle on cDAQ?

$
0
0

 

I have a dell latitude 5450 and a cdaq 9188XT

they are connected by a direct ethernet connection.

 

if i turn off power to the c chassis, but leave power on to the PC, i have to reboot the PC to be able to connect to the chassis again in MAX

the refresh and reconnect options in MAX dont find the device.

 

Is the IP somehow lost?

Do I need a router?

Keysight N6701A Insufficient Location Information

$
0
0

Hello,

 

I need to use Keysight N6701A power supplies for a project. They are connected via ethernet and configured in MAX as network devices with VISA aliases. If I leave the system untouched overnight and attempt to connect to a power supply (i.e. with a VISA Open) I will get an error -1073807343 - Insufficient location information. However, if I continue to call VISA Open repeatedly, it will eventually obtain the refnum and I can control the instrument without issue. If I attempt to ping the device (via the command prompt) before calling VISA Open, the first one or two packet replies will state that the 'Destination host is unreachable.' However, by the end of the ping, it typically responds. Once it responds to a ping, VISA Open will work immediately.

 

So it appears the N6701A might be going in to some sort of sleep mode and does a wake on LAN. But I can't find any reference to settings like that in the manual or within the menus. Maybe I'm looking for the wrong terms. Has anyone encountered this before and know how to keep the network communication active? Is there something I can do with VISA to prompt a device to wake up, other than calling VISA Open repeatedly? I have used N6701As in previous projects without seeing this issue.

 

System:

LabVIEW 2014 SP1

VISA 15.0

Keysight N6701A, configured as Network Device over ethernet

 

Error Details:

Error -1073807343 occurred at VISA Open in Agilent N6700 Series.lvlib:Initialize.vi->N6700 Series.lvclass:Create.vi:6800001->Basic Power Supply Test.vi

 

VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

I acknowledge this appears to be a Keysight issue, and I have posted to their forums as well. But these forums tend to be more responsive. I'm looking for ideas.

 

Thanks,

Viewing all 5662 articles
Browse latest View live


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