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

Digital Oscilloscope Data acquisition using SCPI command

$
0
0

Hello folks, 

I have a Digital OScilloscope RTO Rohde (https://scdn.rohde-schwarz.com/ur/pws/dl_downloads/dl_common_library/dl_manuals/gb_1/r/rto_1/rto2000/RTO_UserManual_en_11.pdf#page=208)

 

The remote control worked perfect and some command too. Moreover, I dont know how to transfer the data (curve/Trace) to my PC. 

I want to reproduce the plot (result curve from Oscilloscope). Anyone has any idea to help? which should be a correct SCPI command? 

How will be a correct procedure to do it? read or transfer the Column data. 

Regards, 

 


GPIB-USB-HS Error code -37057

$
0
0

Hello,

Our GPIB-USB-HS works on Windows 7 with NI-488.2 14.0, however when works on Windows 10 with NI-488.2 18.5, error -37057 happened.

This GPIB device is not a genuine National Instruments product and is not supported by the installed NI-488.2 software. Please contact your National Instruments sales representative for more information at ni.com/contact. (Error code:-37057)

I don't the GPIB-USB-HS is not a genuine NI product, and I have registered the instrument.

Please tell how to resolve this issue.

Thanks in advance,

Rex Cheng

Keysight Command Expert & 34970A: Measuring Current

$
0
0

I'm trying to make sure I'm using the right commands with Keysight Command Expert before I use Python commands. Using GPIB interface and using the 34901A modules. I am able to display current off the data logger's display so I know it isn't a hardware configuration issue. I'm sure I just don't have the correct measure setup.

 

This is how I have it setup...

 

In order to read Measuring Current, I need those first four formatting commands (according to Command Expert). Which is why those are added to the sequence...

 

However, I'm unable to extract Current. My error with Command Expert: 

(':MEASure:CURRent:DC? %s,%s,(%s)' % ('AUTO', 'MAX', '122'))" "COMException:VI_ERROR_TMO: A timeout occurred | CommunicationTimeoutException:SCPI connection attempt timed out | SCPI Error: -102,Syntax error | SCPI Error: -420,Query UNTERMINATED"
Not sure where to go next... 

LV 2.0 (1992)

$
0
0

No laughing...

 

I have in my hands a complete LV2.0 with SCSI GPIB adaptor.  I have my trusty HP54600, HP3438, HP6334, and 8656B.  

 

This is for all you that have been around using LV for a couple decades. (I never used it back then, I used a VAX control system to run test equipment) who out there has the Instrument drivers for any of the listed pieces of test equipment that is compatible with 2.0. 

 

Thanks in advance,

Daniel Jones

Corona Ca

To Connect to DAT DDS4 USB tape drive in Win 7 64bit

$
0
0

Hi, I have a HP DDS 4 tape USB drive, I'd like to write a vi to connect to it, in Windows 7 64 bits, and do File I/O.

Did some digging and got the Win 7 64 bit tape driver, I'm stuck on how to make connection from Labview. The USB tape drive does not mount in Windows so there is no drive letter to make a path string.

 

I did get manage to it connected in VISA, (new to VISA) I wonder if there is a way to make a generic solution, a Labview app, exe distribution to connect and File I/O to any given USB tape drive. 

 

Many thanks!

Visa Resource Finder won't find TCPIP connected instruments unless they are added first by NIMAX

$
0
0

Hello, I am trying to make a standalone application on LabVIEW; it requires to be able to find TCPIP, USB and GPIB visa resources programmatically without NI-MAX installed in the host computer. My issue lies in that visa resource finder or visa property resource finder does not find the TCPIP connected instruments unless it is firstly found in NI-MAX. All other types of connection works, GPIB, COM, USB. If possible I want to avoid using the TCP functions, because I had a large program dependent on the visa resource finder for all other type of connections. I am working in LabVIEW 2017 64-bit and have NIVISA 19.0 and GPIB drivers installed. Also, I attached a copy of the VI I am using (LabVIEW example) and picture of NIMAX found instrument. Any suggestion is greatly appreciate it.

VISA runtime download link

Sending Ascii commands through RS-232 (NIOPS-4)

$
0
0

Hello,

 

I am trying to control a power supply (NIOPS-4, attached manual) for an ion pump using basic serial read and write vi (attached), but having troubles with it.

I set baud rate to 115,200 as suggested in the manual and tried simple commands like V<CR>, V, B<CR>, B .. but I get timed out at the read section. I don't see any errors at the write section but "B" command which is supposed to turn off the power supply doesn't really work.

Can anyone tell me what I am missing? Also, what bytes to read should I use?

 

1.png2.png

 

 


MCP4161 digital potentiometer SPI interfacing

$
0
0

Hi all,

 

I've done a bit with serial comms. before with NI VISA, but have a more basic question about what codes to send to my digital potentiometer. My pot is a MCP4161 with 256 settings for the wiper. The documentation shows the picture below.

 

It looks like code "100h" accesses the last resistor (N=257) and code "00h" accesses the first resistor (N=0).

 

Can anyone point me in the right direction to figure out everything in between? haha .... help a noob out here .....

 

Or, perhaps there is some LabVIEW SPI module that is designed to work with such a device? In the past I used NI VISA to talk to a RS-485 device.

 

Thanks for your help! 

 

PS. link to data sheet, see Section 5 for the wiper stuff https://www.mouser.com/datasheet/2/268/22059a-51937.pdf

 

Capture.PNG

VISA DIGITAL WRITE

$
0
0

HELLO EVERYONE,

I AM BEGINNER FOR LABVIEW AND NEEDS YOUR HELP. I AM WORKING ON A PROJECT TO READ DATA FROM THERMOCOUPLE AND WRITE THE DIGITAL PIN OF ARDUINO. HERE IS MY CODE


//interfacing arduino with labview using serial port communication

#include <OneWire.h> //built in library for ds18b20 temperature sensor
#include <DallasTemperature.h> //built in library for ds18b20 temperature sensor

#define ONE_WIRE_BUS 4 //confining digital pin 2 as output of ds18b20 temperature sensor

OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup(void) //initialization loop for serial port and sensor
{
Serial.begin(9600);
sensors.begin();
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);

}

byte x;

void loop(void) //main function loop
{
int y = Serial.available();

while(Serial.available())
{

x=Serial.read();
if(x=='a')
{
digitalWrite(13,HIGH);
digitalWrite(12,HIGH);
}
else
{
digitalWrite(13,LOW);
digitalWrite(12,LOW);
}
}

delay(1000);
sensors.requestTemperatures(); // Sending the command to get temperatures
String sensor1 = String(sensors.getTempCByIndex(0),DEC);
String temp1 = String("A" + sensor1);
Serial.println(temp1); //printing temperature on serial port
Serial.println(x);
Serial.println(y);

delay(1000);

}

 

PLEASE TELL ME HOW TO WRITE PIN USING LABVIEW VISA?

I am trying to retrieve data from a website but I keep getting errors

$
0
0

Hi, So in my project im supposed to retrieve the oil prices and convert it from USD to the local currency,
I have this code but It just won't work and i get errors "Error 1181 occurred at DataSocket Read" and "Error 1 occurred at Scan From String (arg 1)".
I'm totally lost here can someone help?

codeQ.PNG

Keysight N5744A not recognized by NI MAX via LAN.

$
0
0

Hello all. I have a Keysight N5744A power supply connected to a computer via LAN cable. I have the IP address, and using it I can ping, access the instrument using Internet Explorer and communicate with it using Agilent Connnection Expert.

 

However, when I try to set it up in NI MAX, it's not recognized. I used "Network Devices >> Create New VISA TCP/IP Resource >> Manual Entry of LAN Instrument" with the same IP address and LAN Device Name I got from Agilent Connection Expert. But when I click on Validate, VISA error 0xBFFF0011 shows up (see image1.jpg).

 

I also tried "Create New VISA TCP/IP Resource >> Manual Entry of Raw Socket", but got a similar error (see image2.jpg).

 

Something interesting I found is this window from "Agilent Connection Expert >> VISA 64 Conflict Manager". It seems like in my computer TCP IP can only be controlled by Agilent VISA and not by NI VISA (see image3.jpg).

 

Any suggestion is more than welcome. Thanks!

Is it possible to download an older version of NI-VISA that is compatible with Windows 98 and Labview 5.1?

$
0
0

Is it possible to download an older version of NI-VISA that is compatible with Windows 98 and Labview 5.1?

How to figure out what cards are plugged into the chassis through command prompt?

$
0
0

Hello,

 

I am trying to figure out what cards are plugged into my NI chassis either from cmd prompt or using a python script. I know we can open NIMAX and see this, but is there a way we can run this to query the intruments and get all the information to a log file.

 

So far i have been able to get only the GPIB devices connected but not of my NI cards show up

Batch file to restore Tulip in visa 19.0 doesn't run


cRIO-9081 Connection

$
0
0

Hello,

 

Sorry if this is in the wrong area, I'm still unfamiliar with the NI Forums.  So here's the background of my situation:

 

I'm wanting to start looking into using some NI equipment and LabVIEW in an R&D/Product Development environment.  I've acquired a cRIO-9081 that we used to have that was never used due to the engineer on the project leaving the company.  I'm having issues understanding how I can have the cRIO connect and talk with my laptop so I can see the cards that are plugged into the cRIO.  The cards that I have are NI 9219, NI 9375, NI 9205, and NI 9214.  Software side, I've downloaded the 7-day trial of LabVIEW, I've got RT Trace Viewer, RIO Device Setup, GPIB Interactive Control, NI Device Monitor, NI Launcher, and others (see picture).

NI Launcher.PNG

 

I've been fiddling around and I'm still new to using NI equipment beyond changing out cards/instruments when  they fail.  I'm really trying to get the ball rolling and prove to management that NI and LabVIEW is a worthwhile investment for future use beyond just this one $15,000 cart of equipment that never got off the ground.  Any advice, suggestions, or tips would be greatly appreciated.  If more information is needed (probably) just let me know.  Thank you all in advance.

cannot communicate with keithley 2450, 2400 or 2611

$
0
0

Hello, 

       I installed a labview 2017. Now for the sourcemeter of Keithley 2450, 2400, and 2611. I used GPIB and kusb to connect to my laptop. I installed the GPIB 488 driver and kusb driver as well. However, the computer did not communicate with the Keithley sourcemeter at all. Even I used a labview program that worked for 2611 in an very old desktop computer in the lab. But in my laptop, the Keithley did not change the voltage as the labview program. Anyone can help on this?

 

Thanks!

GPIB Setup

$
0
0

Hello,

 

I am using the NI-1095 and 8840 to try to get GPIB to work. I have the microGPIB cable plugged into a terminal block that then plugs into a GPIB cable into a BK Precision 9131B as a test to see if GPIB is working. It appears that I am unable to get it working and any assistance would be greatly appreciated.

 

I used NI MAX, and it doesn't detect the power supply as shown. When I use IBIC, I get errors of EBUS (command byte transfer error). When I use VISA, I get "VISA: (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state)." I've verified that the BK is set to GPIB as well as can take the "*IDN?" command from the manual.

 

Am I missing or forgetting some basic step that is causing this to not work?

entry point gpib-32.dll

$
0
0

Hello, the Keithley sourcemeter cannot communicate with the Labview program. The visa source name is always a empty pop-down menu. I tried to uninstall everything and reinstall everything. The problem is persistent. I install the same thing in another desktop, computer and the sourcemeter successfully talk. However in my laptop, it doesn't. I guess it is a GPIB issue. I didn't find the gpib-32.dll and gpibClassInstaller.dll in C:\Windows\System32. Then I copied the two dll file from the desktop computer it works. I used the GPIBdiagnostic, and it showed the "procedure entry point_ni488config_UnlockNi488@0 could not be located in the dynamic link library C:\WINDOWS\SYSTEM32\gpib-32.dll." Then I deleted the two dll files and relaunch the gpibdiagnostic. It still shows this information. Any professionals can help on this? This problem made me exhausted  .

Your help is appreciated very much!!!

VISA TCP/IP open connection does not work on localhost when network is disconected (VISA bug?)

$
0
0

Hi,

I have application (server) listening on TCP/IP and second application (LabVIEW client) connecting to it by VISA from local host (using raw socket). Everything works fine, until I disconnect all network cables (ie. there is no network connection in Windows), after that VISA open will return error -1073807343 (resource not found). The server is running fine, when I try tcp scoket from LV or another app, it will connect.

 

Is it some VISA bug/feature or Windows problem? Is there way how to avoid this?

 

I'm using VISA 18.0, Tried on two PC so far, my laptop (W10) and NI PXIe-1062Q (W7).

 

I'm including simple example demonstrating this issue. To make it (not) work unplug network cable and disable wifi, after that the visa client will not work.

 

Viewing all 5666 articles
Browse latest View live


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