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

touchscreen serial

$
0
0

Hi all,

 

I'm trying to get a touchscreen to communicate with a National Instruments myRIO. I'm trying to get the myRIO to read the touchscreen and display the coordinates on screen. I was using a 4 wire touch screen and I was able to get come coordinates but II've since switched to a 5 wire touchscreen and now nothing shows up. Can anyone give me any tips on how to get this to work? I've attached the program I've been using for reference.

 

Thank you kindly,

 

James


E5061B

$
0
0

Hi

 

I have to use the NA E5061B to measure the impedance of a system , can someone explain to me the procedure for calibration and measure??? i followed the manuel steps but it doesnt work.

 

Thanks 

Agilent N9320 - How to switch on automatically?

$
0
0

Hello,

 

I'm using an Agilent N9320A Spectrum Analyzer (User's Guide).

When I served it the screen doesn't turn on. I have to press on the Standby Switch so that it goes out of his sleep mode.

Nevertheless, on other Spectrum Analyser I do not need to make this manipulation.

 

Have you a solution?

 

Thank you in advance.

Tektronix AFG 3253 USB issue

$
0
0

I am having some issues with running a long term test (100+ hour) with a Tek AFG 3252.  I was using a USB to GPIB convertor to communicate with it.  For some reason the USB port drops out and it refused to communicate after that and the settings are stuck on the AFG.  The issue seems to occur at random times and after running a while.

 

I checked the USB sleep settings on the port and it isn't allowed to set it asleep.  I also tried using a powered USB hub and that didn't fix the issue.

 

I will attempt to convert the communications to straight USB today or tomorow and see if that makes a difference.  If I can't get it to work reliabilty with USB I will try Ethernet.  We had an issue like this with a Tektronix Scope and eventually had to convert the comms to Ethernet.

 

Has anyone else had an issue like this?  If so what did you do to solve it?

 

Does anyone know if there is a Software and/or Hardware sniffer that can be used for USB ports?  I would like to see if there is any detectable reason this port is dropping out.

 

The issues gets corrected if USB cable is unplugged and plugged back.  I saw a paper about conducting a software re-start of a USB port.  Has anyone tried this?  If this works I will have to make sure I can detect an error to indicate a restart is needed.  Is there possible a hardware switch that I can put in line with the USB port that will create the physical disconnect with digital or software control and not interfere with the physical layer characteristics?

 

Thanks for your help.

Is there a way to get IVI.Visa.NativeVisaException Error Code details

$
0
0

Recently, I have been getting error -1073807193 0xBFFF00A6, which corresponds to the Connection Lost native error. However, the IVI.Visa.NativeErrorException message is: Could not perform operation because of an I/O error.

 

My question is:  Is there a way to get additional details about the error, such as the description from the native error class? The best I was able to do is get the Macro Name for this error: ERROR_CONN_LOST, 

 

David

 

NI MAX and Netburner

$
0
0

I have a NetBurner creating a virtual COM port (Ethernet to COM) and I installed the drivers and NI VISA needed. I can finally see the COM port appear as COM2 in NI MAX. Now when I try to send commands to the instrument, the instrument doesn't respond.

 

I know communication works because I have used Telnet and a Netburner application to prove that communication works in both directions with the NetBurner. So that leaves me with interpreting that the Server side doesn't read the response from the instrument through NI MAX and this is why I get an error.

 

Any ideas what I can do to fix this? If you have any questions, let me know and I can try to clarify them even more.

Reading the 3458a DMM Status Register

$
0
0

Hi everyone,

I'm using the 3458A DMM with labview to measure DC voltage. I'm performin the MATH PFAIL to check if any reading exceeds the limits. In case that happens I would like to perform a certain function. Now in order to check if the limits were exceeded, I'm trying to read the status register byte and check if bit #1 is set (Hi or Low Limit Exceeded). The problem that I'm facing is that the values are being returned as the weighted sum of all set bits, how can I determine which are set? is there a lookup table or something similar?

Also up tell now the values that I'm getting doesn't make any sense. I'm suspecting that there is a problem with the way I'm trying to read the register, but I've tried both the visa read STB function and sending "STB?" with a visa write and reading the returned value with a visa read, both didn't work as expected.

My VI is below, the TEST subVI is only performing the MATH PFAIL test inside the while loop.

 

Capture1.PNG

 

 

 

Thank you for your help 

baud rate

$
0
0

Hi there,

 

We've got a touch screen that we are interfacing with a myRIO. The touchscreen sends rs232 signals from it's microcontroller to a rs232 to ttl dte converter which then connects to the Diligent Motor Adaptor on the myRIO. I think the baud rate is the problem because I can read some type of information from the touchscreen in LabVIEW but the information is messy junk. The touchscreen's baud rate is 9600, and the spec sheets say the baud rate of the rs232 to ttl converter covers from 300 to 115k. Is anyone able to lend us a hand to get some data that makes sense please?

 

Thank you,

 

James


RE: VI to measure power with Agilent E4404B

$
0
0

Hi All,

 

I have developed a VI based on the Agilent ESA PSA series instrument driver library to measure power with the E4404B.

The process is straight forward and intends to replicate the following manual procedure:

 

  1. Preset
  2. Set Center frequency
  3. Measure > Channel Power
  4. Meas Setup > Avg Number > 100
  5. Set Integration BW(IBW)
  6. verifying Span = 1.5 * IBW
  7. Optimize ref level
  8. Read Channel power

The FW version on the Spectrum Analyzer is A.14.06 which is the latest and I am using the NI GPIB-USB HS to control the instrument.

I have two issues with this VI:

 

  1. Although using the instrument driver's "close", The Spectrum analyzer remains in the remote mode, how do I get it to go to local at the end of the VI?
  2. Another issue is that after taking the measurement (completing the averages)the instrument's screen freezes, where as I want it to go back to the normal mode so that I can keep monitoring my input signal i.e. same behavior as manual power measurement

Any ideas how I can correct these two?

Thanks

 

 

visual studio 2015, VISA, example

$
0
0

I'm implementing som instrument controls though VISA / C#.

 

I'm uisng Visual Studio 2015.

I've read about some issues with this combination.

 

I can't reference NationalInstruments.VisaNS, where is it ?

I can reference NationalInstruments.Visa, is that the same ?

 

Can anyone provide a basic working example of some C# code made in visual studio 2015 ?

It just has to readout *IDN? via usb

 

 

br

Nikolaj

 

 

 

how to use labview ask to scanner dll files?

$
0
0

how to use labview ask to scanner dll files?

i want to gain some examples? 

Thank you !

visa resource finder won't find PXI-4070

$
0
0

Hi,

I'm using LV 2015, 32bit on windows 7x64.  I have an NI PXIe-1065 connected to the PCI bus of the computer.  I have several instruments in the PXI chassis included some switch cards, a scope and a PXI-4070 DMM.

 

when I run the VISA resource finder, the result will show me all of the PXI cards in the chassis (as well as the serial port on the computer) but it will not find the PXI-4070.

 

NI MAX shows the card and I can run self test and open the interactive panels in MAX. I have saved the NAME (not alias) of the PXI-4070 as "PXI-4070" 

 

I can also use the DMM using NI-DMM drivers just fine.

 

the address of the PXI-4070 in MAX is:  PXI24::15::INSTR

 

I need to be able to programmatically detect which PXI/PXIe cards are in my chassis so that I can set them up as the system in the configuration that it's in.  can anyone help me understand why the VISA resource finder won't see the PXI-4070 and report it?

VISA viRead dropping bytes (Mac OS X, NI VISA 15.5)

$
0
0

I'm writing a command-line tool (Mac OS X, NI VISA 15.5) to pipe arbitrary data in and out of a GPIB device via an NI GPIB-USB-HS+ controller.

 

It seems to be working fine if I read the entire buffer at one time, but I'd like to make it more flexible and repeatedly read in smaller chunks until the read gets an end-of-transmission. When I do this, the last byte seems to be getting lost. If I do a 1-byte-at-a-time loop (as a proof-of-concept), every other byte is lost.

 

 

        ViUInt32 read_bytes;
 
        do
        {
            vi_status = viRead(device_session, s_data_buf, sizeof(s_data_buf), &read_bytes);
 
            if( vi_status != VI_SUCCESS && vi_status != VI_SUCCESS_MAX_CNT )
            {
                fprintf(stderr, "viRead returned error: 0x%08x\n", vi_status);
                return;
            }
 
            printf("%*s", read_bytes, s_data_buf);
        } while( vi_status == VI_SUCCESS_MAX_CNT );
                
        puts("");

 

If sizeof(s_data_buf) == 64, I get the following response to my *IDN? query:

 

ICS Electronics, 4867, S/N 1603049, Rev X0.00 Ver 11.08.16

 

If sizeof(s_data_buf) == 1, I get this response:

 

ISEetois 87 / 634,RvX.0Vr1.81

 

Stepping through the code and watching the status on the GPIB device, it looks like the GPIB device is only queried once, and the result is buffered in the GPIB-USB-HS+. Each call to viRead pulls data from the buffer. Is there an extra pointer increment going on somewhere in the VISA/488.2 chain?

Used card from uction - model choice

$
0
0

Hello,

 

I would like to gain my experience with GPIB and one step is to buy a controller.

Could you recomend me some models that will work with labview, have no compatibility problems and are price attractive?

I plan to spend max 60$ on e... .com with shipping to Poland.

 

Best regards

 

Adi

U2702A cannot communcate to device.

$
0
0

I just got this device and the accompanying chassis U2781A.  I installed their IO suite, the U2781A driver, and the U2701A IVI driver.  The chassis recognized right away in NIMAX but the scope module failed to install its driver in device manager.  I installed thier Measurement Manager(instructions said I didn't need this) and then the driver installed and I can see both the chassis and module in NIMAX.  I can query both "IDN?" and get the right responses back.  In my Labview VI though, I cannot talk to it.  I am calling it with IVIScope initialize and get:

 

Error -1074134946 occurred at IviScope Initialize With Options.vi

Possible reason(s):

Primary Error: (Hex 0xBFFA1190) The session handle is not valid.


Complete call chain:
     IviScope Initialize With Options.vi
     IviScope Initialize.vi
     checkout.vi

 

If I try to call it with the device specific driver, I get:

 

Error -1074134946 occurred at AgU2701A Initialize With Options.vi

Possible reason(s):

Driver Status:  (Hex 0xBFFA005E)

 

 

Any idea what is going on?


Suppo 20A ESC control with LabVIEW

$
0
0

Hi all,

 

I am having trouble communicating with a Suppo 20A ESC using a myRio. I have read different steps to be taken to begin sending a PWM signal to the ESC, the most common being start the ESC with a full duty cycle, then reduce it to zero after hearing a beep. This is not working though, and any further assistance would be appreciated.

 

Thank you.

tnt4882

$
0
0

Hello all,

I am trying to develop a Listner/Talker GPIB interface using the TNT4882AQ with STM8S208MB on the generic interface side and the computer with its GPIB controller on the GPIB side.MAX can find my tnt4882 when I scan for instruments.when MAX send string to 4882,ISR3 is always 0x48(NEF = 0).I don't use DMA and interrupt.I don't know how to go on?can anyone help me?

 

 

Thanks.

Payen

USB to I2C communication, CP2112 dev kit and ADT7470

$
0
0

Hello, 

 

I am new to the forum, so I appologize for anything I do that may be frowned upon. 

 

I am working on a project for school where I am trying to communicate with a ADT7470 IC through a Silicon Labs CP2112 USB to SMBus/I2C dev kit. I am fimiliar with Labview, but when it comes to things like this, I get a little lost. I was wondering if anyone here could provide some help to get me started or tell me this isnt possible. I believe that I need to use the NI VISA USB Contol In and Control Out to make this work, I Think. I appreciate all the help and Thank you.

 

CP2112 dev kit: http://www.silabs.com/products/interface/Pages/CP2112EK.aspx

ADT7470: http://www.analog.com/en/products/analog-to-digital-converters/integrated-special-purpose-converters/integrated-temperature-sensors/adt7470.html

noisy temperature reading mcc usb 2402

$
0
0

Dear all,

 

I have a USB module from Measurement Computing (USB 2408 2AO) and I use it for data acquisition.  I control the module with a labview VI.

 

I use a K thermocouple and the analog inputs of the USB device to measure temperatures. The thermocouples are located very close where there are huge voltage spikes (ca. 700V spike). I put an RC filter with a zener diode to "kill" the spikes at the input of the USB module, and also a copper shielding around the thermocouple.

 

The temprature reading is performed without any problem with the software provided by Measurement Computing (Instacal).


The problem is that when I try to read the temperatures in Labview,the reading is very noisy and I cannot get any data from this noisy reading. At the same time I see the reading of Instacal and of Labview and they are not the same – I see in Labview the spikes that I do not see in Instacal. In Instacal the reading is constant despite to the voltage spikes, while in Labview it moves of 20 degrees!!!!

 

I used the same labview code without problems for reading other temperatures in zoneswhere there was no voltage spike….

 

I just want to get the same reading of Instacall in Labview but I do not get it done….


Does anybody know what I have to do?

 

How to unlock the resource if it is locked with error code BFFF000FF

$
0
0

Hi,

 

I am using NI Visa library (NI Visa version4.6.2) for my applicaiton which written in C#.

Sometimes, the program might catch below error by using the exception handling function that halted my program. 

At this point, the VISA Sessions are still open and locked.
 

NationalInstruments.VisaNS.VisaException: Specified type of lock cannot be obtained, or specified operation cannot be performed, because the resource is locked. VISA error code -1073807345 (0xBFFF000F), ErrorResourceLocked

 

So, is there a way for me to programmatically unlock or close all VISA sessions on my machine, without knowing the handles

to the sessions in advance?

 

Thanks,

aiheong

Viewing all 5661 articles
Browse latest View live


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