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

1 Want command to check whether SR830 lock-in amplifier is overloaded or not

$
0
0

Actually I want to know the coding for detecting whether the SR830 lock-in amplifier is overloaded or not. I have searched it in SR830 manual but can not find it. Can anyone help me regarding this ?


8 1/2 Digit Multimeter Agilent 3458A problem

$
0
0

Hi,

 

I have created a VI to read from the Agilent multimeter mentioned but but I am getting an error message. The connection is done using a GPIB-USB-HS. I use the Agilent drivers I download from the NI website (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=36A7F6A5AF553389E0440003BA7CCD71).

 

The VI consists of of a state machine hat goes through the various steps of the process of acquiring data from the multimeter. "Initialise" reads the sourde name of the equipment. "Open" initialises the comminication (with Initialize.vi). In the "Configure" state the measurement is conigured (with ConfigureMeasurement.vi). In the "Read" state, a single measurement is taken from the equipment. The "Close" state closes the connection with a Close.vi.

 

This VI is a subVI of the main program (MainDCRM.VI).

 

I need 5 measurements from the equipment but in the first measurement there is an error and the it doesn't go to the next measurement. The error I get is code -1073807339 and source: Visa Write in Agilent 3458.Measurement (Single Point)>DVMs.vi->MainDCRM.vi.

 

When I create a VI with just that sequence of VI's (from the source name to the Close.vi I don't get the error message.

 

I was wondering if anyone could help me with this. Could this be a driver problem for some odd reason? It doesn't seem to me that there is a problem with the state machine since at the same time I am acquiing data from another multimeter and this is performed with no problem.

 

Thank you,

Regards,

Rita

Communicating with CNC machine via ethernet

$
0
0

Hi everyone.

 

I am trying to communicate with a morisiki CNC machine via Ethernet.

 

I have not attended the Instrument Control course as of yet so may be missing something important.

 

We have a program that runs on one PC, but as soon as we copy that program onto another PC, it no longer works.

 

We think it's related to the .dll files and shared libraries. 

 

Any suggestions on what might be the problem?

CAN Monitor

$
0
0

I have two USB-8473 connected together, "CAN_H" to "CAN_H", "CAN_L" to "CAN_L" both are connected to my UUT Can Bus.  Communicating with CAN0 to the UUT works.  Communicationg with CAN1 to the UUT works.  I get multiples update message from the UUT.

 

However if I am using CAN0 to communicate to the UUT and CAN1 as a "listen only" monitor using MAX's CAN Bus Monitor, I see no data in MAX's CAN Bus Monitor.

 

Is there any arbitration that needs to be setup?

Getting my Wavetek 752a filter to work with Labview? Possible bug?

$
0
0

Hi, so I have a Wavetek 752A Brickwall Filter. It is basically just a combination low pass/high pass filter, and it is GPIB programmable. Here is the PDF manual for it.

 

There are no NI instrument drivers that I can find for it.

 

For reference, I *have* gotten it working with my labview program -- what I'm doing is pretty simple, I basically just set the threshold frequency either high or low with a single command.

 

My problem is connecting to it with LV to begin with.

 

Some background: I'm using an Agilent 82357A USB/GPIB interface, and I know it works very well (I have 3 other machines connected to it that all behave very well). I have all the drivers for the Agilent interface installed and working correctly; I'm almost positive nothing is missing on that end.

 

And just to emphasize again: I have gotten a labview program to communicate and program this filter, using this same interface.

 

Here's the kind of weird part. Normally when I start my experiment, I go to NI MAX and open the VISA test panel for each instrument and just query something to check that it's communicating, like *IDN? or some equivalent. Currently, I have the GPIB address for my Wavetek set to 18, set by some switches on the back panel.

 

Now often, when I plug in my GPIB/USB interface, go to NI MAX, and refresh the devices and interfaces tab, the other instruments are listed there, but the Wavetek isn't. Sometimes it is, but if I select it and try to open a VISA test panel, it says: Error opening resource: GPIB0::18::INSTR VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

There are two LED lights on front panel of the Wavetek: a "local/listen" one and a "remote" one. At this point only the remote one is lit.

 

Okay, now, I also have some Agilent (Keysight, now...) software installed that seems to be their equivalent of NI MAX. It's called Keysight Connection Expert, and it seems to be better at communicating with GPIB instruments sometimes. Strangely, when I "rescan" it (basically, like refreshing in NIMAX), it doesn't find my Wavetek filter. But it does have this "manual configuration" tab, and I can manually enter the GPIB address (18). If I ask it to "test connection", that fails:

 

man_config.PNG

 

But, as soon as I accept, it sends me over to the list of devices, and it's listed there. Furthermore, if I click "send commands to this instrument" (basically their version of the Basic I/O tab in the VISA test panel of NIMAX), I can communicate with the machine! At this point the "remote" LED is also lit.

 

filter_comm.PNG

 

I don't know why the VISA address is X'd out there. I know I'm communicating with it because I just have a 100Hz signal going to the filter, and the output going to a scope. First, the signal is displayed on the scope (the threshold of the low pass filter is 1kHz or something), and then I send CAF2M1G0 to it, and the output dies (sets the threshold to 20Hz). I can then switch the threshold around, so I'm sure it's working. (An important detail is that according the manual, you need a carriage return at the end of the command to make it work, so if I send these commands without doing anything, they don't work, so I have to select \r under "EOL sequence" in the options, and then it works.)

 

Alright, so remember how before, NIMAX wouldn't open the VISA test panel for the Wavetek? Well, now, after doing the manual configuration in Keysight, it does. However, the same commands don't work in it, so I'm pretty confused.

 

For example, I set "enable termination character" and set it to "carriage return \r", hit accept changes, and then try entering my same command as before. The panel at the right says "Write Operation (CAF2M1G0) No Error", but clearly nothing is changing in the scope output.

 

I really don't know what I did to get it working before with my program. I think it was some magic combination of restarting and un/plugging things in. I also think it may have something to do with the "assert REN" option (under the line control tab), but I don't really understand it to be honest.

 

Okay, I've actually figured out one more thing about this: I just got it to work with NI MAX, but I may have found a bug. I suspected that it wasn't actually entering the crucial EOL carriage return character so I used NI I/O Trace, first entering my command without the "enable termination character" checked and then with it checked. They had the same value in the NI trace. However, if I manually entered "\r" after my command, now it does what it's supposed to at the filter, and you can see a "." after my command in the trace:

 

nimax_bug.PNG

 

So, that really seems like a bug, but at least I found a solution. However, I still can't get it to work in my Labview program (that was running before!):

 

LV_error.PNG

 

Any advice would be appreciated, thank you!

Remote PXI controller instsrument control

$
0
0

Can you suggest the best method for controlling PXI instruments with an external controller?  I have two machines.  One standard desktop system and one PXI chassis with controller and instruments installed.  I can remote desktop to the PXI chassis.  I was hoping for MAX to recognise instruments in the PXI chassis from my desktop machine and use the VISA address as if it was local.  If possible pleas provide examples for a starting point.

 

Thanks!

VCOM Tx Function

$
0
0

I build a vcom connection with PC and STM32 MCU.

 

On the MCU, I send alternatively two strings, one is 3 byte long; the other is 5 bite.

DelayMs(20);
UartPutBuffer(&UartUsb, TxBuff.RSSI, 5);
clearBuff(TxBuff.RSSI,5);
DelayMs(20);
UartPutBuffer(&UartUsb, TxBuff.SNR, 3);
clearBuff(TxBuff.SNR,3);

 

On the PC, I write a program with labview, which measure the number generated by property node "bytes at port" to identify string1 and string2.

 

But the problem is that the node "bytes at port" returns three value: 3,5 and 8. How can I avoid the situation of "8 bytes"? 

GPIB comunication problem (Tektronix TK2465)

$
0
0

Good morning, I'm quite new with labview and I have some problem with the GPIB communication; Dealing with a Tektronix TK2465BCT, I have connected an adapter GPIB-USB-HS to my Windows8 PC, when I try to communicate with the instrument through NI MAX it seems to communicate properly or at least it is recognized by the PC on the right address, as soon as I start a VI downloaded from the driver page of the instrument it doesn't detect the oscillocope. Any Idea? Thanks.


Please tell occurrence condition of EPWR error.

$
0
0

Hello,

 

I don't know much about B 'EPWR error(error code:28)'.

Please tell occurrence condition of 'EPWR error(error code:28)'.

Is errors cause due the Control PC or Instruments?

 

Please advice me.

 

Thank you in advance and Best regards

IVI agilent Funcgen 33522B

$
0
0

 

Can't get the IVI driver to work with Agilent 33522B function generator.(VISA funktions work fine)

 

I have installed the IVI-C driver.  (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=A1C02CABC2854F97E0440021287E6A9E)

It adds an "Instrument Driver software module" ag3352x. (IviDriver 1.1 IVI-C and IviFgen 5.0 IVI-C)

 

Added a "Logical Name"  and selected the "Driver session" (ag3352x) and selected the Hardware resource (GPIB0::11:INSTR)

Tested with the "Simulate With" set to Specific driver works but when i set it to Don't Simulate i get "0xBFF0015 Timeout expired" in LV and TestStand.

The 33522B instrument goes into remote mode and show 2 communication Error: -113 Undefined header, -420 Query UNTERMINATED.

Is this a bug in the IVI driver? or have i missed something.

 

/J

 

 

VISA ERROR

$
0
0

Hola.
Excelente día.
Requiero de su apoyo, tengo un problema con instrumentos que trabajan con VISA y no pertenecen a NI.
Estoy trabajando con una DI/O NI, puertos seriales, una fuente de poder Keysight.
El conflicto se presenta cuando activo el pasaporte "NiVisaTulip.dll", ya que después de esto no se reconocen los instrumentos conectados a puertos seriales y los instrumentos GPIB.

Solamente me marca un error de VISA.
Estoy utilizando NI/MAX 5.3
IO libraries 17.1.19313.5
Windows 7 64bits

 

1

 

 2

 

Al llenar la casilla de los pasaportes "NiViAsrl.dll" y “NiVisaTulip.dll”, y actualizar los dispositivos aparece de forma correcta como se muestra en la siguiente imagen.

3

 

Pero después de unos segundos aparase el Error como se puede apreciar en la siguiente imagen.

 4

 

Saludos.
Quedo en espera de su ayuda.

Connecting ENET device to USB computer using NI GPIB-ENET/1000

$
0
0

Hello

 

I am currently trying to connect a PI E-712 controller with an ENET port to a windows 7 computer.

I have an NI GPIB-ENET/1000 converter and a GPIB-USB-HS cable and want to use the ENET end for the controller and the GPIB for contact with the computer, but is this possible? Or does it only work for connecting GPIB-devices to the compute rusing ENET?

 

I have drivers on my computer, namely the NI-488.2, IMAX can detect the GPIB connection and the cable has a steady amber light on ready. The ENET-converter lights green for power, ready and the ACT/LINK positions but nothing for either of the GPIB talk and listen lamps. When trying to connect, the computer doesn't see the device at all.

 

Any help will be greatly appreciated.

Connect Amulet display to sbRIO

$
0
0

I have programmed my Amulet display and also have an RT VI on my sbRIO 9636 that needs to communicate with the Amulet.  I have the Amulet connected to the sbRIO using the USB port.   I have also installed the following software on my sbRIO:

1) NI-VISA 15.0.0

2) NI-VISA-USB Passport 15.0.0

 

When I run the RT.VI it is not seeing the USB port on the sbRIO.  I am assuming that I am missing some software on the sbRIO but cant figure it out.

 

Thanks

 

 

 

 

GPIB (NI-488.2 15.1) on openSUSE 13.2 Linux 64-bit

$
0
0

I'm trying to install the latest GPIB drivers (NI-488.2 15.1.0f0) on openSUSE 13.2 (64-bit). I followed the extra steps (FAQ #6) for openSUSE in the README.txt.

 

After doing so, and attempting to run the INSTALL file, I receive the following error. Does anyone know how to proceed? Thanks!

 

 

NI-488.2 version 15.1.0f0
is about to be installed using rpm at /usr/local/natinst

Would you like to continue? [Yn] 

Installing NI-488.2 version 15.1.0f0...
Pre Installation .
Post Installation .
Pre Installation ...........................
Preparing...                          ################################# [100%]
Updating / installing...
   1:labview-2014-rte-14.0.1-4        ################################# [  6%]
   2:nissli-14.0.0-f0                 ################################# [ 11%]
   3:nimdnsresponder-14.0.0-f0        ################################# [ 17%]
   4:nipalerri-15.0.0-f0              ################################# [ 22%]
   5:nikali-15.0.1-f0                 ################################# [ 28%]
   6:nipalki-15.0.0-f0                ################################# [ 33%]
   7:nipali-15.0.0-f0                 ################################# [ 39%]
   8:ni4882ki-15.1.0-f0               ################################# [ 44%]
   9:nitargetcfgi-2.0.0-f1            ################################# [ 50%]
  10:nisslcerts-14.0.0-3.0            ################################# [ 56%]
  11:nicurli-14.0.0-f0                ################################# [ 61%]
  12:nisyscfgi-15.0.0-f0              ################################# [ 67%]
  13:nispyi-2.8.1-f0                  ################################# [ 72%]
  14:niiotracei-15.0.0-f0             ################################# [ 78%]
Could not parse file "/usr/share/applications/natinst-nivisa-readme.desktop": No such file or directory
Could not parse file "/usr/share/applications/natinst-nivisa-visaconf.desktop": No such file or directory
Could not parse file "/usr/share/applications/natinst-nivisa-driverwizard.desktop": No such file or directory
Could not parse file "/usr/share/applications/natinst-nivisa-visaic.desktop": No such file or directory
Could not parse file "/usr/share/applications/natinst-nivisa-help.desktop": No such file or directory
Could not parse file "/usr/share/applications/natinst-nivisa-server.desktop": No such file or directory
  15:ni4882i-15.1.0-f0                ################################# [ 83%]
  16:ni4882i-32bit-15.1.0-f0          ################################# [ 89%]
  17:nisyscfgi-32bit-15.0.0-f0        ################################# [ 94%]
  18:nipali-32bit-15.0.0-f0           ################################# [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:
Configuring NI-KAL for kernel version 3.16.7-24-desktop...
Building module nikal...
 nikal successfully updated.
nm: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nidimk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nidimk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nimdbgk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nimdbgk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nimxdfk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nicore/nimxdfk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/nicore/niorbk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nicore/niorbk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/nipxi/nipxigpk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nipxi/nipxigpk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/nipxi/nipxirmk-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/nipxi/nipxirmk-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/vxipnp/NiViPciK-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/vxipnp/NiViPciK-unversioned.o': No such file
nm: '/usr/local/natinst/nikal/etc/clientkdb/vxipnp/NiViPxiK-unversioned.o': No such file
strings: '/usr/local/natinst/nikal/etc/clientkdb/vxipnp/NiViPxiK-unversioned.o': No such file
Building module nidimk...
nikal: make: *** No rule to make target '/usr/local/natinst/nikal/etc/clientkdb/nicore/nidimk-unversioned.o', needed by 'nidimk.ko'.  Stop.
nikal: ERROR:  failed to build nidimk
nikal: ERROR: Update of National Instruments drivers failed.
..........................
Updating modversions database to include newly installed drivers...

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /home/ralph/Desktop/NI-4882 AND/OR
www.ni.com/patents

******************************************************************************
* A reboot is required before attempting to use the
* NI-488.2 software.
******************************************************************************
Would you like to reboot now? [yes|no] no

NI-488.2 Installation completed with errors.

Please reboot manually before attempting to use 
NI-488.2 software.

 

agilent current level

$
0
0

Hi

I got a Agilent E3648 Power supply, I need a program to control the current values, so within the driver there are some examples but just for voltage level and since I  am using the device as a current source I cant find a solution. Please there is another driver that has this kind of examples? I'll apreciate any help! thanks guys!

 

I am able to make a program that controls the level of the output voltage. my goal is to do the same but with  current!


keithley 238

$
0
0

Is it possible to connect the Keithley 238 to Lock in Amplifier through proper grounding ? At microvolt range it shows overload in the lock in Amplifier while just connecting the ground , Why ?  or how to connect proper ground through triaxial cable of keithley 238 to lock in amplifier ? 

Keithley GPIB only works on Ch 1?

$
0
0

Hello All,

 

I am new to LabView - doing the 45 day evaluation. So far, I have been successful getting my power supplies and scope connected with basic functions verified. With my Keithley 2700 DMM, I hve run into a problem and found nothing on the forum or documentation that has helped. 

 

The problem is that the Keithley 2700 only seems to respond on GPIB channel 1. It is connected through a Tektronix VXI-GPIB controller that all my other GPIB insruments are succesfully working on. I have tried multiple cables and reset/power cycled everything. When ch1 is selected, it comes up in the VISA interactive control and responds to commands. All of the other instruments can be whatever channel I choose. 

 

Not sure if it is related or not, but when I tried some of the examples for the Keithley 2700, I get this error: "Error -1073807330 occurred at Property Node (arg 1) in Keithley 27XX.lvlib:Initialize.vi->Keithley 27XX Single Measurement.vi"

 

Of course I took a look at the Initialize.vi but it is ahead of my knowledge. Trying to figure out why the instrument only responds on one channel and if it could be related to additional trouble I am having getting the example VI to initialize. 

 

LabView 2015 32bit

Win7 Pro x64

Tektronix AD007 VXI to GPIB controller

 

Other instruments tested sucessfully:

(2) HP 6653A power supplies

(1) Tek TDS-754C Scope

(1) Chroma 6614 Mainframe

 

sbrio-9651 to PC Ethernet Communication

$
0
0

I am working on a little side project to try and establish ethernet communication between a PC and a sbrio-9651.

 

I was just wondering, does it matter if the cable is a cross over cable or not?

 

Also, what are my options for ethernet communication? I wanted to get an overview for the different methods of communicaion so I could pick the best method.

 

Any literature or general advice for this project will be much appreciated.

serial reading and converting to HEX for processing data

$
0
0

Hi everybody!

 

I have to read a set of data provided by sensors that communicate via RS232 serial protocol. I've implemented a VI that reads continuosly the string output of the serial port, but I also have to process and analyze data to do other tasks with it. I thinked to use a consumer/producer structure because the reading process is faster than the analysis process.

 

In reading everything is OK, but I've the following problems:

 

1. There are three types of data I've to manage, each one with different length in bytes. I also need to convert them from ASCII to HEX. I do this with the Type Cast tool, but the converted characthers are followed by a big number of zeros before the next valid character.

 

By example, the valid set of data are:
- 24 04 C1 XX (first length)
- 24 09 CB XX XX XX XX XX XX (2nd length)
- 24 12 C9 XX XX XX XX XX XX XX XX XX (3rd length)

 

Instead, I read in the file that is created by the producer loop:
- 2404C1XX00000000000000002404C1XX00000000000000000000000000000000000000000000000...00000002409CBXXXXXXXXXXXX000000

 

2. First three bytes of each type are respectively the START of FRAME, LENGTH of FRAME, TYPE of DATA HEX codes. The VI has to be able to recognize the first one to split the whole set of data in small parts for being processed
in the right way.

 

Does someone have any idea?

 

I've attached a screenshot of my first attemp to to this.

GPIB Visa C++: Wait after viWrite Command until a Response comes

$
0
0

Hello,

 

I´ve been trying to make a little C++ Program.

The Program should wait, until the Device is Ready to Read the value.

 

Example Code:

 

Snippet

viOpenDefaultRM(&m_defaultRM);
viOpen(m_defaultRM, "GPIB0::1::INSTR", VI_NULL, m_tmo, &m_Session[x]);
viWrite(m_Session[pad],(ViBuf)"X?", 2, &actual);

/* Wait Until the Value is Ready to Read ( WaitOnEvent ??? ) */

viRead(m_Session[pad], (ViPBuf)strres, 255,&actual);

 

 

Have you any Solution for me ?

 

Thanks.

Viewing all 5668 articles
Browse latest View live


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