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

How to attach graph to Visa Read in labview for real time graph

$
0
0

I an new to LabView.

 

I have attached my labview program to this post. I want to know how to attach graph to Visa Read for real time graph.

 

Please tell me. 


Controlling Multiple Instruments: Continuous Read and Dynamic Parameter Update

$
0
0

Hello,

 

I am trying to control three instruments via LabVIEW. My DC power supply and function generator are connected to the computer with a GPIB/ENET 1000 while my scope is connected via USB. I am trying to have the scope take a reading during every iteration of the while loop and have the Event Handler check if there are any changes to the supply parameters. I went by the instrument's respective examples and came up with the VI attached. I've wondered for some time about a setup where you are constantly logging and are able to change the parameters dynamically; this is my first crack at it.

 

The idea is to expand this VI into logging the readings to a text file, automating a sweep from 1K-1MHz and taking averages from that sweep to plot in Excel. For now, I need to get the basic down and I'm getting constant freezes when I run the VI. Sometimes it runs without issue but begins to freeze when I try to set the DC supply voltage and other times it just freezes from the start. I'm wondering if it has to do with the placement of the scope read; before versus after the event handler, but I can't test the theory now as I'm away from the lab.

Would appreciate any advice you can give,

Yusif Nurizade

how can i stop prorgamm which use serial port ?

$
0
0

i make a program which read data from serial port . when i press on the " stop " button the program dosent stop. 

how can i solve this problem ?

FTDI 2Dxx for NI Visa under Windows 8

$
0
0

Hello,

I am using the FTDI 2dxx.dll for my acquisitoin board using VISA LV routines. However, I cannot see my COM Ports when I run it under Windows 8, although it works well for Windows 7. What can I do to see my COM ports under Windows 8?

Regards

Daniel

arduino, labview with DAC

$
0
0

hi,
This program is used for reading and generating an analog signal, for this purpose, a digital to analog converter 8 bits is necessary "DAC0800"  
when I measure the voltage at the output of the DAC with a multimeter voltage varies from about 2-4 volt orderly
but when I use the arduino to measure this analog voltage, the voltage varies in a disorderly, I do not know why! 

i want to know if my program is correct!

Raytek MM

$
0
0

I am trying to communicate with an infrared pyrometer via its RS485 port. I use a RS485 to USB converter which opens a virtual COM port on my Windows 7 machine. I tried giving it a few commands, such as "?XU" (sensor version), but did not get a coherent reply, just a bunch of ascii codes.

 

Has anyone here ever worked/communicated with such a pyrometer via its communication port?

 

Thank you,

Amit

Receive JPEG file on Labview and save it on folder.

$
0
0

Hello every one...

I m going to transmit JPEG image using TTL serial camera (learn.adafruit.com/ttl-serial-camera/overview) through zigbee(Transmitter).

So i want to get images from the zigbee(Receiver) which is connected at any comport of PC.

SO whatever the data(JPEG image) is received at receiver zigbee, i want to store it in folder. Is it possible in LabVIEW?

I have seen topic in NI forum ..

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Transfer-an-image-through-serial-port-from-PC-to-PC/td-p/1085365

 

In that topic Mr.

Serialinit.vi

Writer-1.vi

 

So is this useful for my problem.?

Here in the topic of shanaka, he wants to transfer image from PC to PC bt i just want to receive image from com port.

is it possible?

I have seen some examples of IMAQ. but in that it just showing Interface name like Inbuilt webcam or external webcam.

please help...

Termination character finding problem

$
0
0

Hello I am communicating with Antenna trainer AT-5000. 

 

The device Seven segment shows values 0 to 999 Max. For example such as 345, 34 679, etc.

 

These random values will convert to ASCII character so that it can compatible.

 

Now expert have to told me that how to find termination character in receiving data. 

 

The termination character will be in numeric or in ASCII????? How to find it.

 

Also how to enable termination character in VISA Read.????


GPIB-VXI/C

$
0
0

Hi gurus, 

    I hv a used GPIB-VXI/C (from NI) & HP E1406A. Next question I would like to clarify: Can GPIB-VXI/C be supported in DOS enviroment ? If so, where can we get the latest copy. How about HP E1406A ?

 

    Appreciate all your valuable feedback. Thanks.

 

Regards,

Francis.

LVRTE2013 and VISA5.4 error 0xBFFF0072

$
0
0

 

I build a runtime application (*.exe) using the development LabVIEW 2013-64bit on a PC running Win7-64bit.

I installed on another PC running Win7-64bit: LVRTE2013-64bit, NI-VISA 5.4 and my application. The application use a Serial com port. The application works, but when tries to open VISA resource, it generates an error: “NI-VISA 0xBFFF0072, The resource is valid, but VISA cannot access it.”

My application use VISA search to generate a list of available COM ports and this point works very well. When tries to open a Serial Port, is generate the error.

MAX also recognize the serial ports but when I try to change settings, it generates the same error report.

What can I do?

Thank you,

Cristian

Using the DAQ assistant

$
0
0

I have Labview 2013, version 13.0 

 

Should I have DAQ assistant? under measurement I/O, it is not present.

 

Do I have to purchase another package?

 

Thanks for any suggestions

 

What Driver for Agilent 2000-X Series Win NT / Labview 6

$
0
0

Need to Integrate a 2000-X series into an old AT system.

Win NT

Labview 6.0


Could use help getting started - not sure if this setup will work or what drivers will be compatible with this system?

Existing Alias in Max

$
0
0

I have an Agilent 34401A that is USB.  I assigned it an alias in MAX.  When we swapped instrument for calibration, max found the new USB address.  But when I go to add the alias in MAX I get an error saying "Alias exist" and MAX will not save the configuration.

 

I can't find where the existing alias is to delete it.  How do I delete it?  I have attached the MAX report.

 

Paul

VISA viWrite() hangs and instrument locks up

$
0
0

Config:

NI USB-GPIB-HS on Win 7 SP1.  

VISA32.dll  

talking to an HP8164A

 

Issue:

Unpredictable timeouts and then lock up on a viWrite() call.  I had a large program that was stopping after various calls to viWrite() so I made a simple program that simply does the follwoing over and over again (NI I/O Trace shown):

 

viWrite (GPIB0::20 (0x020653F0), "*IDN?..", 7, 7)

viRead (GPIB0::20 (0x020653F0), "HEWLETT-PACKARD,HP816...", 20480, 48)

This will work for an unpredicatable number of times a then timeout on the viWrite() call with fewer than the 7 bytes returned.  Once it times out the instrument locks up and I can't get it to respond to further viWrites() (i.e. times out with 0 bytes returned).  The only way I can get the instrument back to operation is to restart it, which is very painful and basically makes the application unusable.

 

Does anyone know how to troubleshoot this problem?  Is there something I need to do after the viWrite() timeout to make the instrument responsive again?  I could handle the error condition in my code if I could get the instrument to respond again.

 

 

 

【HOPE Ur HELP】How to control HP-3458A via GPIB interface?

$
0
0

   Hi, everyone!

   Recently, I am designing a software using VC++ for controling The HP 3458A. But I find I can not handle it!

   I want using the command "ID?\n" to query the name of the Mac as description in its datasheet, but I almost get noting!

 

   1. I can use the command"ACI"/"ACV"... to set its range. So I am sure the 3458A can receive the command and excute it.

   2. But as it mentioned above,  I want using the command "ID?\n" to query the name of the Mac as description in its datasheet, but I almost get noting! 

   3. I search for some references and konwing(not sure) that you can't get back infomation unless the 3458A to be set  as "TALK ONLY" mode. I have read the UserGuide of 3458A and I still do not konw how to set the 3458A  as "TALK MODE" mode!

 

   4.Meaning while, if you konw how to solve it, I also hope you can teach me how to get the meassure datas from 3458A via GPIB.

 

   I use the NI-VISA lib.

 

 

Would appreciate any advice you can give,

Xiaobu Xu 


MAX can't find serial to USB converter COM3

$
0
0

Hello friends,

 

I am using serial to USB converter for communicating the instruments.

 

I install drivers successfully and device manager shows COM3.

 

But when I go MAX 5.5 , I cannot see the COM3 port in  device and interface.

 

Please tell me solution of this.

GPIB/SCPI Browse File Path

$
0
0

Is there a way to browse the file path of an instrument connected via GPIB?  From my experience, only the file system on the local controlling machine is accessible in this manner.  I will have files saved within a folder on a PNA but the file name will have a variable characters in the name based upon the date and saved version -- so from an automated testing standpoint, I won't necessarily know the entire file name during execution.  If I could using a browse file command to locate and store the file name before running the code, the script would be more streamlined. 

 

An alternative method would be to search the known folder for the beginning of the file name string.  I know the List Folder function could do this for files stored locally, but again, this does not access the file system of the PNA controlled via GPIB.

 

Any suggestions would be helpful.  Thank you.

hp 56400

$
0
0

Buongiorno a tutti gli utenti. 

Mi trovo a dover interfacciare l'oscilloscopio di laboratorio (HP 56400) mediante interfaccia GPIB, tramite LabWiev. 

La richiesta esplicita del docente è quella di non utilizzare nessun driver.

Se qualcuno ha qualche informazione in merito.....

Grazie

Why does VISA show that a non-present device is still present?

$
0
0

I have NI VISA 5.4 installed and I'm using LabVIEW 2012 SP1 to control a USB HID devices using USB RAW. My computer is running Windows 7 Ultimate 64-bit. Using the VISA driver wizard, I created custom INF files that I have installed on my machine and the actual control portion is working great.

 

My issue is that once in a while VISA seems to think that a disconnected device is still present. As you can imagine, this messes with my application as it tries to talk to unit that really isn't there. Using LabVIEW VISA VIs, the device can still be discovered and attempted to be communicated with (it will just error out though). When I open NI MAX, I see the device listed as present even though it is powered off and disconnected from the PC.

 

While leaving MAX open, I can reconnect the same unit and nothing appears to change in MAX. The only difference is that now the device is actually connected and powered on. If I connect another unit, I see it populate in the device list. If I disconnect both units, the device I connected last disappears from the list but the first "phantom" device remains in the device list and is listed as present.

 

The immediate workaround I've found is to reboot the computer. Things seems to work OK for some time afterwards but will usually crop up again while using more than one USB RAW device in this manner.

 

Something else I just witnessed is that I left MAX and LabVIEW open on my work machine over the weekend and I still saw the phantom device listed as present  (it was not connected). I reconnected it and disconnected it and the device properly disappeared this time.

 

Has anyone else ever experienced similar issues? Can anyone explain what is going on? Since it is critical that my application can use more than one device at the same time, how can I ensure that the devices that are reported as available for use through the VISA VIs are really there and can be used?

 

Thanks!!

VISA error = timeout expired before operation completed

$
0
0

 

  Hi

 

  I have been developing a simple C# WindowsForm program by VS2010 for Agilent E3634A Power Supply.

 

  I try to initialize driver here in Main function. I just get instance of the object and initialize the driver. With the button click, I want to open output and then read voltage. It gives me always "VISA error  = timeout expired before operation completed" error.

 

 I think I have to open a session and set all serial parameters same as instrument but I do not know how to open session by IVI COM. Any help? Thanks

 

 

  using Ivi.Driver.Interop;
  using Agilent.AgilentE36xx.Interop;

 

  string resourceDesc = "ASRL5::INSTR";      //RS232 COM=5        
      

          public MainForm()
        {
            InitializeComponent();
               
            try
            {
                driver = new AgilentE36xx();
                driver.Initialize(resourceDesc, idquery, reset, "DriverSetup= Model=E3634A,Trace=false");
                       
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
                      
        }

 

         private void button3_Click(object sender, EventArgs e)
        {
           
            driver.Outputs.Enabled = true;         
           

             // Get Output1 object.  get_Name(1) returns "Output1".
            IAgilentE36xxOutput pOutput1 = driver.Outputs.get_Item(driver.Outputs.get_Name(1));
           

             // Measure the output voltage
            measuredvolt = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementVoltage);          

        }
                

Viewing all 5680 articles
Browse latest View live


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