Agilent SCPI commands
Hi guys,.
I'm working on the SCPI commands to control my instrument which Agilent B2901A in this case.
Now, I'm able to control most of the settings via SCPI commands. But I can't get the model of the IMPULSE to 'OFF' to 'ON '. I also want to pass the model TRIGGER of the 'MANUAL' on 'AUTO '. I have read the manual and did some research online but still can not find
I know is not a question of LV directly, but since nobody answer me Agilent Forum, this is my last hope.
Could someone tell me what commands I need?
Thank you very much
huskerli wrote:
I'm not quite understanding what to say. Is that need others evoke a kind of node?
BTW, I have a pilot plant exactly? I am a continuous work with a project that someone left, looks that Agilent 34401 installed instead B2901A, he is so far works. I'm not sure, that could be a reason?
Thank you
Hello:
There are a few things that should be addressed. First of all, noting that the installed driver is a different model of the instrument being used wasa GREAT omission of information about your problem. Even if ot has nothing explicitly to do with the code you have presented, it means that, perhaps, this code was written with the wrong instrument in mind...
I strongly suggest you read the guide of the programmer for this instrument before proceeding further. He will tell you no doubt exactly what you need to know.
Tags: NI Software
Similar Questions
-
Hi guys,.
I want to send orders from SCPI in BT in order to communicate with Agilent B2901 make the pulse of sweep.
I have already read the Agilent 2900 SCPI command manual and find the Figure 2-2 is what I want. But I'm not sure that all the commands I've written is nessary?
In addition, I don't know how I can check my orders or not is fair? Spy NOR can help, but I don't know how he's going to work.
Thank you
Agilent has provided the list of commands. Ask them if they provided a blacklist. Place orders. If the measure does not work, these commands are needed.
Please enjoy your troubleshooting basic skills and knowledge of the communication of the instrument. You can send a command and display menus of instrument to see if it has changed as expected. You can issue the query error after each order or more.
-
Hello
I write software where I test 58 orders at 35 different States (decimal 0 to 34 decimal). Instead of writing the commands to set the State the value of the port over and over again for each switch, is possible to use a loop for change the decimal value (0) in the sub section of code 1, 2, 3 and so on? I have not found any means to insert a variable evolution in a command of the SCPI.
Private Sub btnSwitchTest_Click (sender As Object, e As EventArgs) Handles btnSwitchTest.Click
Dim port As IntegerDAQ = li.ibdev (0, 9, NO_SECONDARY_ADDR, TIMEOUT, EOTMODE, EOSMODE) "' addressing GPIB.
Port = 0-34
"' affects all switches to 0
wrtbuf = "SAFE: DIG: DATA: BYTE 0, (@201)" "---> > value 0 is the variable that I want to change."
Li.ilwrt (data acquisition, wrtbuf, Len (wrtbuf))
System.Threading.Thread.Sleep (1000)"' save tensions here/nai not yet written this code.
Next portAny suggestion would be great!
Thank you!
You must have the String.Format function inside the loop for because for now, it just writes the string once and then the loop it does not change the string at all. It is more what you are looking for.
Port = 0-34
wrtbuf = String.Format ("SAFE: DIG: DATA: BYTE {0}, (@201)", Port ")
Li.ilwrt (data acquisition, wrtbuf, Len (wrtbuf))
System.Threading.Thread.Sleep (1000)
Next port -
The driver NI-VISA Wizard and command of the SCPI
Hello
I had a go with an assistant driver NI-VISA. I wanted to create a driver for MH3114 DAQ. Assistant hollow went very well, and the driver has been installed.
However when I did * IDN? under MAX, I received an error.
This means that I have to create/put into practice all SCPI commands?
How the wizard is designed to work?
Hi MimiKL,
As Dennis said, instruments are designed to work with the SCPI commands or not. If the user guide does not indicate the device meets SCPI and SCPI commands will not work.
The wizard of the driver simply generates a number of screws that will send the standard commands of the SCPI compliant instrument of the SCPI. Depending on how you communicate with the instrument (bus), you may need to change these screws subtly to work with different instruments. But, as mentioned, if the device you are trying to contact is not in line with SCPI then this is never going to work. Later, when you use the Assistant driver, all the subVIs generated will be have comments in them tell you exactly what to replace and change to get the driver working for your instrument.
If your device is not in line with SCPI and you have a dll that works then you should continue to use it.
Best regards
Chris
-
HElP: Commands SCPI unsupported by instrument
Hi all
I actually write my own drivers now. I want to use the MOMENTUM for a measure, but I just discovered this SCPI command I use
«OURce [1]: function
HAPe "don't is not supported by the instrument.» What should I do?
Thank you
Looking at the docs you provided, this command is listed under conventional controls not supported by 2900. So I guess this function is not supported. If equivalent command exists, you will need to find in the documentation that you have provided. You may need to experiment a little.
-
Problem with driver with Agilent 6031 A feeding
Hello and goodmorning,
I tried to develop my first application of cvi in which I need to use a power supply (model Agilent 6031 A). I first use direct command of GPIB and I managed to make it work, but with some difficulty, due to the fact that sometimes orders are missed.
So I downloaded the driver from the website of OR, and I tried to implement in my code. I found a problem with the first statement, the init it. Here is my code:
ViPSession InstrumentH;
...
...
...
All = hp6xxxa_init ("GPIB0::5:INSTR", VI_ON, VI_ON, 1, & InstrumentH);After running the above code, I found in 'All' value '-1073807339 "and InstrumentH is equal to NULL."
Any idea and advice would be much appreciated.
P. S.
There is a way, as in Labview, to find the explanation of the error Code?
Found the problem. Food must be set of SCPI commands on the old controls ARP using "SYST:LANG".
-
How to get the numeric values with SCPI on an AG7034B
Hello
I use an Agilent 7034 osciloscope with 4 analog and 16 digital channels.
Read analog channels is no problem, but how do I get the digital channels (101010) waveform?
I see the digital signal on the screen of the instrument.
And: I want to do with SCPI commands and read/write Visa.
Thanks for all tips
Do you really mean the DSO7034B? If so, there are drivers available for LabVIEW and other programming environments. I suggest you only start with one of these. Check your manual to become familiar with the controls.
PS ad to the digital I/o Board is incorrect.
-
Agilent U2722A linear voltage ramp
I am currently writing a LABVIEW VI to interface with an Agilent U2722A. I want to measure current constantly while maximum increase of voltage of 0V to a defined use specifying the step size and no time (a linear scan of tension).
I downloaded the driver for this device which also includes an example used for output and then take action. My first problem is that when I run this unit VI is to expire. I think that this issue MAY have something to do with the entry "triggered the level". Happened to configure voltage channel VI. I have included the example and the voltage setting channel Sub VI.
My lack of understanding for the other SubVIs (which are based on being passed SCPI commands by VISA as strings) also prevents me from making progress. Especially the scan configures and configure trigger screws
Scanner Confgiure takes the values for the number of points and the timestep. I don't know how I'm supposed to make use of this VI. Should I put the values you want, and then use a loop to pass different values to the chain tension set up with each iteration. Also, how is the measured timestep? I need to set up a trigger to measure the time between the points or the scan function takes care of that? I've included the sweep set up VI as the Timestep VI as well.
Looks like that you've got another error in connection with the IO instrument. Here are some references for this error,
-420, "request not COMPLETED;
This error occurs when you addess the instrument to talk and he has nothing to say.
The most likely causes are:
1. do not send a query. You must send a valid request to the instrument before talking to talk to him. This is true even of the instruments of measurement, such as the 2001 model. You can not get a reading from 2001 until you send him a request.
2 send an invalid request. If you sent a request and still get this error, make sure that the instrument treats the query without error. For example, send a bad request that generates an error - 113, "Undefined header" and then treat the instrument to speak will generate an error-420, "Request not COMPLETED" as well.
3 query invalid due to an invalid command.
Currently I do not have an instrumetn in hand so I can't understand what is exactly what's wrong, but would you mind to paste your code so that we can look into it together?
The most accurate method is absolutely one provided by the material itself. Here is "Interval" in configure Sweep.vi.
-
think I found a bug in this driver and I wanted to get confirmation. (Here's the link to the driver page, to help locate the driver):
( http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=74D1F1D4EB5268E8E04400144FB7D2...)The VI in question is public > Action-status > configure > marker Configuration > Configure Marker.vi.
The question that I saw was that the marker was not be set to the frequency transmitted to the VI. (The parameter named 'Stimulus'.) I looked at the guide to the programmer for the Agilent 5071 B and decided that the format of the SCPI command string should probably:
%.;:Calc%ld:Mark%ld %s;
: CALC % ld: % ld MARK: X % lfThe ": X" had disappeared but seems necessary.
Can this be verified?
Thank you for taking the time to look at it.
-Joel
Snood1,
I took a glance at the driver and manual of the programmer. It seems to me that the driver behaves as described in the manual should. Configure the Marker.vi use the following string to format the command:
%.;:CALC%ld:MARK%ld %s; :CALC%ld:MARK%ld:X %lf
Is that what you see too? Looks like that's what you added yourself. What was the previous text? This is the text that was there when I downloaded the driver. When it is interpreted, it looks like this
:CALC1:MARK1 OFF; :CALC1:MARK1:X 0.000000
As described in the ENA series Programmer manual, the first turns of the line of the marker reads OFF (page 283). The second line sets the value of the marker 1 (page 295) stimulation.
Let me know if this looks OK to you.
Kind regards
-
NI9870 to the Agilent E3647A control
Hello
I'm trying to control a power E3647A using cRIO 9074 and NI 9870 FPGA mode.
When I send SCPI commands like APPLY, SYSTEM: REMOTE, INST:NSEL 1 | 2, EXIT IT. OFF, * first, * TST?, runs them the power supply (I can see in the display of power). But when I use any query as command * IDN, APPLY? I read whatever it is.
I tried to use the E364xA but does not work, I have changed the power supply to the other and the same thing happens.
I need to read the query commands. some body help me.
Hello world
I solved the problem.
The NI9870 doesn't use DTR/DSR (only RTS/CTS) flow control and the E3647A use DTR/DSR.
It must be done via i/o property node state of DTR FPGA programmable as stated.
Thanks, PalanivelT, for trying to help me.
-
I understand that other discussions on this topic are already, but I still have to find a solution among them.
Here's the scenario:
I have a PC (running Win7) which is connected to a monitor Signal Agilent N9020A MXA (WinXP) host over a LAN connection. The reason behind the connection to the LAN via the GPIB is software VSA 89601 B added I want to access through SCPI commands through code LabView on the host PC. According to Agilent, it's one of the ways to do so.
I have IPS assigned and specified the Agilent recommended port 5024 for a TCP/IP connection. I am able to write commands using TCP write using LabView, but I can't read anything by using TCP Read. Indeed, according to some variations of the options I tried of the subjects of the previous forum, I always end up with error 56 or 66.
I checked that the SCPI command is working to extract data using Agilent IO Interactive. It should be fairly simple. Because I want to automate this process, please help? What Miss me?
Thank you in advance.
Solved.
Remove the end must be disabled to get rid of Reading TCP timeout.
-
Hello
I'm reading the values of Agilent 34410 A by USB using usbtmc module.
I have successfully installed the module with output of cat/dev/usbtmc0Minor product manufacturer serial number
Agilent Technologies 34410 001 has digital multimeter MY47027713I followed the http://cp.literature.agilent.com/litweb/pdf/5989-8744EN.pdf document
but for steps 5, 6 and 7, the multimeter will beep and its panel shows a
message 'ERROR of DISTANCE' and it hangs.Can someone tell me what is this problem?
Thank you
gokussj9 wrote:
None of them even echo INT CAL:ZERO:TYPE > usbtmc1/dev / seems to work.
I feel the same beep error.
:SYST:PRES DEF>/dev/usbtmc1 says command not found
Orders in the linked file is a U2000 power not to the 34410 counter sensor.
I suggest that you open the help file for the 34410A and discover what SCPI commands it uses.
-
Problem of IEEE2 SRQ with METCAL
I know it's related problem sets / Cal and I should ask community Fluke Metrology for this - but just in case someone here has a solution or a similar problem...
Problem: new procedures TAKES / CAL by using the IEEE2 or SCPI commands cause SQR expect mistakes. Analysis of National Instruments with GPIB bus capture OR Spy software indicates that PUTS / CAL tests for TestSRQ (1, FALSE (0)) and forever (about 300 000 times before giving up). Change the SCPI commands to plain IEEE work very well (they don't seem wait unit SRQ at all). The tested EHR must be entirely consistent 488.2 (for example. Agilent oscilloscope DSO8064).
A trial was conducted with the following set up:
MEETING/CAL 7.2.51, editor in Chief MET / CAL 7.20Z
Procedure: Agilent DSO8064A: (1 year) WORM 9500 CAL, 1Hd, DMM
version: 2007-11-06 revision: 1.2Example of order of the procedure:
1,016 SCPI * RSTCorrespondent captured bus traffic:
1 ibtmo(0, T10s (13))
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:12.625 call duration 00:00:00.000
ibsta: 0 x 170 iberr: 11 ibcntl: 0(0x0)2. send (0, 0 x 0012, ' * RST; ") * CLS; * SR. "40 (0 x 28), DABend (0x02))"
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:12.625 call duration 00:00:00.000
ibsta: 0 x 168 iberr: 0 ibcntl: 40(0x28)3 Send(0, 0x0012, "*OPC", 4 (0x4), DABend (0x02))
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:12.625 call duration 00:00:00.000
ibsta: 0 x 168 iberr: 0 ibcntl: 4(0x4)4 Send(0, 0x0012, "*ESR?", 5 (0x5), DABend (0x02))
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:12.625 call duration 00:00:00.000
ibsta: 0 x 168 iberr: 0 ibcntl: 5(0x5)5 Receive(0, 0x0012, "1.", 511 (0x1FF), STOPend (0x100))
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:12.625 call duration 00:00:00.406
ibsta: 0 x 2164 iberr: 0 ibcntl: 2(0x2)6 TestSRQ(0, FALSE (0))
PID: 0x00000F14 ID of Thread: 0 x 00000624
Departure time: 10:33:13.062 call duration 00:00:00.000
ibsta: 0 x 164 iberr: 0 ibcntl: 2(0x2)(6 300 000 times repeated before giving up to PUTS / CAL)
Do you have suggestions on how to solve this problem.
Sincerely
___________________________________________
Miikka Raninen
Technician
Accredited calibration laboratory
Finnish companies material CommandChecked line 10 with a multimeter on the GPIB cable. He was cut inside the connector and no one scored as such cable. They've done this week.
-
Connection to the meter via LAN without VISA library
I connect my HP33410A via a LAN cable to my PC using the VISA library. I'll send SCPI commands and everything works OK.
But my application must also connect without a VISA and for me it's a big problem. I read some information, I have to use the SOCKET connection with the TCP feature.
Is there a simple way to do this? I was punctuating certain functions in LabWindows supporting TCP protocols and socket. SDK library also support the SOCKET connection, but for me it's black magic
Could someone post here a code to query a simple as command "* IDN?" in this interface LAN without a VISA?
I would be grateful
(Sorry for my English I hope you could understand the problem, I describe )
I solved the problem. It is more simple than I thought you just have to connect to the TCP server. Earlier, I tried to do that, but with the incorrect port number. I think that for most of the devices Agilent TCP port number is 5025 (I've read that in manual for SOCKET connection)
I stayed here a piece of code that shows how to establish a connection with the agilent device:
ConnectToTCPServer (& tcpHandle, 5025, '169.254.4.10', TCP_Handlig_Function, 0, 0);
ClientTCPWrite (tcpHandle, "* IDN?", 5, 0);ClientTCPRead (tcpHandle, buff, 50, 0);
And that's all you need to do. Is not as simple as that?
-
Recalling saved worth States of Rohde &; Schwarz NUMBER VNA with Labview
Hello
I work on the automation of certain measures of Network Analyzer. I am using the NUMBER of Rohde & Schwarz Network Analyzer and I am communicating with the instrument via GPIB. One of the measures make me remind a few manually saved calibration data.
I've been using the SCPI command to charge/reminder of saved calibration data are given in the manual of the VNA ZVR as operating "MMEMory:LOADTATe,
1 ', but the instrument does not charge/reminder these saved calibration data. In addition, labview does not have an error at the end of the program. When I try manually Recalling stored data, I am able to do this without any glitch. What could be the possible reason for this VNA did not respond to this command? I'd appreciate really any comment about it.
Thank you
Vivek
Hi Mike,.
I got touch Rohde Schwarz & in order to confirm that the command of sustainable intensification of CROP I've used is appropriate and I came to know that, although my SCPI command was good, the format has been bad and if the instrument has not responded to the command. The correct command would be "MMEM: LOAD: STAT 1,'filepath\file_name. '. ' CFG' ' where filepath would format BACK and one. CFG extension must be added file name. For some reason, the format of file name and the extension to use is not mentioned in the R & S manual operation resulting in the confusion.
Now, the problem has been resolved and the AVI works absolutely well. I appreciate your time to help me find the solution.
Thanks again,
Kind regards
Vivek
Maybe you are looking for
-
Printing labels direct mail from a worksheet using iWork 09
I know how to use iWork 09 to perform a normal mailing. However, to print mailing labels, I have to say that each label is NOT a new page. By example, if I use 2 "x 4" labels, I need to print 10 labels on each physical page. Is this possible? Than
-
It is said the plug-in does not work with my version, but I've already updated, so what to do?
-
Satellite A660 - 11M don't close
Often my laptop (A660 - 11M) is not closed.Will display it only 'closed system', and no more change! I can just end the session removing food since long time the Start button.
-
Cable LCD Y560 replacement problems
Hello good people of Lenovo forums! I have a laptop Y560 who has a damaged LCD cable (part no: "DD0KL3LC000"). Because of the hinge of this model problem, the LCD cable had caused the crazy screen flicker and inverted the colors. So I recently tried
-
Cannot install the SP1 and SP2; whenever I got to SP1 msg, for SP2 and he met unknown problem error error 646. What I am doing wrong?