How to display a correct impulse response of VNA 8753ES in Labview 8.5.1

Hi guys,
I am trying to display a correct impulse response in Labview . The attachment is the VI code I used and its block diagram. This VI code performs the transfer function in the front panel when the time domain switch is off. This part is correct. When I displayed the impulse response with the XYgraph.vi, I got a problem.
For example, in the frequency domain, The initial conditions of the VNA were:
meas: S21
start: 1GHz
stop:5GHz
points: 1601
In the time domain, I should get the impulse response with the total length 400ns (1/((stop-start)/(points-1))). Without setting the range of impulse response, the default start and stop points are -20ns and 20ns respectively. Thus, I set the start point at 0s and the stop point at 400ns. However, the result only showed me 320ns. I found the problem is that when the time domain switch is on, Labview ignore the frequency start point and assume it is equal to 0 Hz. The calculation of the total length of the impulse response became (1/((stop - 0Hz)/(points-1)). I will appreciate that if you give me some suggestions to fix this problem. Thank you.
Attachments:
eng_intro.png ‏46 KB
eng_intro.vi ‏94 KB

Hi Marti,
Thank you for your advise. You are correct. The data in the cluster is correct, but the graph is not what I expect.
I already modified the Vi I used. I hope it is easy to understand this time. Please refer to the attached files. In 16362testing.vi, I use a case structure to decide whether the instrument running in time or in frequency domain. When the time domain switch is off, start and stop frequencies are inquired respectively so that each frequency point in X axis can be calculated. When the switch is on, each time point can be acquired.
However, I only consider the start time is at 0 s and the stop time is the length of one time period of an impulse response. I know this is not good approach. If I change start and stop time to some arbitrary numbers, the time axis will be wrong. For example, Assuming that frequency bandwidth from 1-4 GHz with 1601 points, based on the calculation in the VNA, one time period is equal to 533 ns (=1/((4 GHz -1 GHz)/(1601 - 1))). If I decide to show the impulse response from 0s - 400ns, I will get wrong time axis because the time interval is calculated by ((400ns - 0s)/(1600 - 1)). Do you have any suggestions??
By the way, would you please give some examples using chart, instead of XY graph?
Attachments:
16362testing.vi ‏47 KB

Similar Messages

  • Images, JFS, CSS - How to display the correct aspect ratio

    Hello,
    This is not really related to Jave ServerFaces, however, since I am using JSF to build my application, I thought I would post it here.
    I am trying to display images by using the following tag
    <h:graphicImage style="height:200;width:140;border-width: 0;"
    value="img/#{group.items[1].picFileName}-s.jpg"
    alt="#{mainMenuController.item.customerFacingName}"/>The above tag is doing what it is supposed to do, that is display an image with height: 200 and width: 140, which is equal to the aspect ratio
    of 1.43 (=200/143).
    However, some of the images that I want to display, do not have
    the aspect ratio of 1.43. As a result of that, their height or width is modified according to the above values. This distorts some of the imsage.
    I was wondering if some one else had faced that problem and solved it. One solution that can work is to edit the images to produce an aspect ratio of 1.43, however, editing the individual images is not feasible.
    One probable solution that comes to mind is via CSS: that is by FLOATing the image in a box of fixed height and width. By doing this, the aspect ratio of the image will not be affected. I do not know if FLOATing an image in a box is possible or not. I do not know how to float an image in a box.
    More over, I am using Tiles to control the layout. Defining an image box within a <DIV> tag might complicate things.
    Any ideas, comment, suggestion will be heplful!
    Rauf

    Put the post in a HTML/CSS forum....

  • Time From field is not getting displayed in correct format in Activities

    Hello Experts ,
    We are facing one problem in UI , when we search for Activities in Web UI . In the field "Time From" we are not getting the time in correct format , ie is instead of  getting time as say 13::38 we are getting time as 13::3 , but when we place cursor on it the field it shows correct format say 13::38.
    Can any one suggest how to display in correct format ?
    Regards
    Vinayak

    Hi,
    Its an SAP Product error.
    Please check note 1151821 ,if you facing the greyed button in time.Also the other note 1136402 needs to be applied for time display issue
    - Bobby

  • How to display text file in JSP?

    Hi,
    I am new to servlet/JSP/java programming.
    I have been able to download a file using ftp. I dont know who to display it in JSP.
    Here is my code. Any help will be appreciated...
    <%@ page import="java.util.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="com.dmhistory.*" %>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <%
    byte[] bytes = new byte[4096];
    URL theUrl = new URL("ftp://user:passwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
    BufferedInputStream in = new BufferedInputStream(theUrl.openStream());
    BufferedOutputStream outstream = new BufferedOutputStream(new FileOutputStream( new File( "D:/temp/log.txt" )));
    int pos = in.read( bytes );
    while ( pos != -1) {
    outstream.write( bytes, 0, pos );
    pos = in.read( bytes );
    %>
    <%
    in.close();
    %>
    DONE!!!
    </body>
    </html>
    How can i display this downloaded file in the browser?
    I want to display it in the original format i.e which new line and carriage returns...line by line..
    Thanks,

    Hi,
    I finally go it to display. but now I have new problem. The browser shows the text without the /n/r.
    But when I view the source using 'view->source', if see that the text has got proper format with newline and carriage returns.
    Any ideas how to display it correctly in the browser?
    <%
                   URL theUrl = new URL("ftp://user:pwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
                   //URL theUrl = new URL("ftp://dbcmaint:[email protected]/migr/Movers_for_Ora8/SNP/logs/SNP-PAC2-20020314.log");
                   URLConnection uc = theUrl.openConnection();
                   InputStream content = uc.getInputStream();
                   BufferedInputStream in = new BufferedInputStream (content);
                   LineNumberReader lnr = new LineNumberReader (new InputStreamReader (in));
                   String tempStr = "";
                   String str = "";
                   while ((tempStr = lnr.readLine()) != null) {
                   str += (tempStr);
                        %>
                        <%=tempStr%>
                        <%tempStr = "";
                        %>
                   <%
                   in.close();
                   lnr.close();
              %>
    Thanks

  • Impulse response function

    Lab view newbie  here. can someone please tell me how I can generate an impulse response given an input waveform and an output waveform?

    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • How can I display JTextFields correctly on a JPanel using GridBagLayout?

    I had some inputfields on a JPanel using the boxLayout. All was ok. Then I decided to change the panellayout to GridBagLayout. The JLabel fields are displayed correctly but the JTextField aren't. They are at the JPanel but have a size of 0??? So we cannot see what we type in these fields... Even when I put some text in the field before putting it on the panel.
    How can I display JTextFields correctly on a JPanel using GridBagLayout?
    here is a shortcut of my code:
    private Dimension sFieldSize10 = new Dimension(80, 20);
    // Create and instantiate Selection Fields
    private JLabel lSearchAbrText = new JLabel();
    private JTextField searchAbrText = new JTextField();
    // Set properties for SelectionFields
    lSearchAbrNumber.setText("ABR Number (0-9999999):");
    searchAbrNumber.setText("");
    searchAbrNumber.createToolTip();
    searchAbrNumber.setToolTipText("enter the AbrNumber.");
    searchAbrNumber.setPreferredSize(sFieldSize10);
    searchAbrNumber.setMaximumSize(sFieldSize10);
    public void createViewSubsetPanel() {
    pSubset = new JPanel();
    // Set layout
    pSubset.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    // Add Fields
    gbc.gridy = 0;
    gbc.gridx = GridBagConstraints.RELATIVE;
    pSubset.add(lSearchAbrNumber, gbc);
    // also tried inserting this statement
    // searchAbrNumber.setText("0000000");
    // without success
    pSubset.add(searchAbrNumber,gbc);
    pSubset.add(lSearchAbrText, gbc);
    pSubset.add(searchAbrText, gbc);
    gbc.gridy = 1;
    pSubset.add(lSearchClassCode, gbc);
    pSubset.add(searchClassCode, gbc);
    pSubset.add(butSearch, gbc);
    }

    import java.awt.*;
    import java.awt.event.*;
    import javax .swing.*;
    public class GridBagDemo {
      public static void main(String[] args) {
        JLabel
          labelOne   = new JLabel("Label One"),
          labelTwo   = new JLabel("Label Two"),
          labelThree = new JLabel("Label Three"),
          labelFour  = new JLabel("Label Four");
        JLabel[] labels = {
          labelOne, labelTwo, labelThree, labelFour
        JTextField
          tfOne   = new JTextField(),
          tfTwo   = new JTextField(),
          tfThree = new JTextField(),
          tfFour  = new JTextField();
        JTextField[] fields = {
          tfOne, tfTwo, tfThree, tfFour
        Dimension
          labelSize = new Dimension(125,20),
          fieldSize = new Dimension(150,20);
        for(int i = 0; i < labels.length; i++) {
          labels.setPreferredSize(labelSize);
    labels[i].setHorizontalAlignment(JLabel.RIGHT);
    fields[i].setPreferredSize(fieldSize);
    GridBagLayout gridbag = new GridBagLayout();
    JPanel panel = new JPanel(gridbag);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.insets = new Insets(5,5,5,5);
    panel.add(labelOne, gbc);
    panel.add(tfOne, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelTwo, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfTwo, gbc);
    gbc.gridwidth = 1;
    panel.add(labelThree, gbc);
    panel.add(tfThree, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelFour, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfFour, gbc);
    final JButton
    smallerButton = new JButton("smaller"),
    biggerButton = new JButton("wider");
    final JFrame f = new JFrame();
    ActionListener l = new ActionListener() {
    final int DELTA_X = 25;
    int oldWidth, newWidth;
    public void actionPerformed(ActionEvent e) {
    JButton button = (JButton)e.getSource();
    oldWidth = f.getSize().width;
    if(button == smallerButton)
    newWidth = oldWidth - DELTA_X;
    if(button == biggerButton)
    newWidth = oldWidth + DELTA_X;
    f.setSize(new Dimension(newWidth, f.getSize().height));
    f.validate();
    smallerButton.addActionListener(l);
    biggerButton.addActionListener(l);
    JPanel southPanel = new JPanel(gridbag);
    gbc.gridwidth = gbc.RELATIVE;
    southPanel.add(smallerButton, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    southPanel.add(biggerButton, gbc);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(panel);
    f.getContentPane().add(southPanel, "South");
    f.pack();
    f.setLocation(200,200);
    f.setVisible(true);

  • How to display response of http request as a web page in ABAP?

    Hi all,
    In ABAP, we can use class <b>cl_http_client</b> to send a http requst and then got the response data as a XSTRING variable. Usually, the response data is the html source of a web page. How to display this web page within dynpro?
    I found we can use class <b>cl_gui_html_viewer</b> to display the web page of a URL or data in SAP web respository. Is there any way of using it to load response data in cl_http_client and display that web page?
    Thanks a lot.

    Welcome to SDN.
    1. use http_client->response->get_cdata( ).
    to get the response data in string format instead of xstring format.
    2. use FM CONVERT_STRING_TO_TABLE to covert the string to table of type W3HTML
    3. use method
    data: l_doc_url(255) type c.
          call method html_control->load_data
                      exporting
                         type         = 'text'
                         subtype      = 'html'
                      importing
                         assigned_url = l_doc_url
                      changing
                         data_table   = html_table.
    call method html_control->show_data
                      exporting
                         url       = l_doc_url.
    to load the html content and show it in cl_gui_html_viewer
    Regards
    Raja

  • Large product page not displaying correctly on responsive webpage.

    Large product page not displaying correctly on responsive webpage. Not really sure what to adjust or correct.
    http://iamartde.businesscatalyst.com/apparel-1/i-am-art-sweatshirt-white

    Hi,
    I think it may be <div class="html5gallery-viral-0"> (contains the social media buttons) // screencasteu.worldsecuresystems.com/AP/2013-08-01_1033.png
    It's the only element that isn't in sync with the other elements on page, when compared to home.html for example.
    Kind Regards,
    Alex Pavelescu

  • How to configure the ST03N and ST06 for displaying the correct data?

    Hello guys,
    I have just finished a internal project installation following the installation guide.
    Our R/3 System can run correctly. However, when I type st03n, it displays some strange data instead of the real server information. and also in st06, I cannot get the real OS information.
    The OS collector said that saposcol is not running because of no process id found.
    But in the OS level, I've checked the server and saposcol -s said that the saposcol is running correctly.
    I searched some notes and modify the processor of the SAPOSCOl service, too. But nothing changes.
    I think the ST06 issue is the root cause of the ST03N.
    I just wonder that how I could configure the system to make the ST03N or the ST06 display the correct statistics?
    Thanks in advance.

    I got the answer myself.
    I didn't know there were some standard jobs that are required to scheduled for a live R/3 System.
    In SM36, find the standard jobs and input 'bc' in sap components and select the jobs scheduling job and set it as periodly run jobs(hourly).
    then release the schedule.
    And note 16083 has all the information.

  • How to Store SD Impulse Responses on External Drive?

    I'm curious as how to set up my folders so my impulse responses for Space Designer can be stored on an external drive. I dragged the impulse response folder into my external then created an alias and stored that where my IR's were originally, but it doesn't work. It asks me to search for them every time, so I end up going folder by folder until I find them on my external and then they load. How do I get it so they just load as if they were stored where they were originally stored?

    Hi Keith,
    Logic uses Spotlight search results to know where Impulse Responses are so you should be able to move them and Logic will find them once the drive is indexed. Do you have Spotlight disabled on that drive? Has it ever been indexed? Not a good idea to put them on a recording drive BTW. You generally want to disable Spotlight from indexing recording drives to prevent performance issues when it indexes it and that will prevent Logic from finding them.
    What is your purpose for moving the factory impulse responses?
    Cheers

  • How can we handle graphics in DITA source files in order to display them correctly both in PDF and H

    We are using FM9 to publish PDF and HTML output from DITA source files and we cannot find a way to display images correctly. By adjusting the appropriate DPI, the image gets correctly displayed in HTML but not in PDF where it appears cropped according to the the text frames of the source file in FM9, like this:
    We have tried to enlarge the text frame in the source file but for some reasons FrameMaker doesn't take these changes into account.
    By modifying the attribute of the element <fig> (expanse = page), it was possible to improve a bit the rendering in the PDF but not completely.
    Our graphics are in JPG format.
    Any help on this is highly appreciated.
    Thank you.

    Hi Al@s...
    DITA doesn't provide a way to store additional information about anchored frame properties (since there is no "frame" element, just image), that's why FrameMaker doesn't allow you to set the frame size to something other than the image dimensions.
    The "standard" DITA way to reference an image with two different DPIs is to insert multiple fig/image elements and conditionalize (via attributes and ditaval) each image so it shows up in the proper output. This can be a bit tedious to insert two images for each instance, but that's the typical way to handle it (unless you've got a CMS that switches the images for different output types).
    If you use DITA-FMx, it provides a "fmdpi" feature which allows you to tag an image with the DPI you want to use in the FrameMaker-generated output, but the DITA coding sets no DPI (or height/width), so it uses the default image size for your HTML output.
        http://leximation.com/dita-fmx/
    Cheers,
    ...scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • Space Designer How to load impulse responses from meny?

    I'm trying to get Logic to regocnize the impulse responses I've put in the /Library/App Support/Logic/Impulse Responses.
    I have to load any external impulse manually. Is there a way to get them just in the "Load" meny as the presets are to save time and to make it easy to browse trough?
    Double 2.5 GHZ PowerPc G5   Mac OS X (10.3.9)  

    Alllright... Maybe a suggestion for apple then to fix so that it's like in the EXS24.. Refresh or sumtin ?
    In Altiverb I've seen that it's just to put them all in a folder and then the program scans it to be in the presets list.
    Anyway, thanks for letting me know.

  • How do I display the correct value when using SELECT_LIST_FROM_QUERY

    I have an updatable report that displays the possible values for a field.
    I'm using HTMLDB_ITEM.SELECT_LIST_FROM_QUERY, so obviously I have to process the record manually.
    However, I need the trick to display the correct value as selected before processing the records.
    I appreciate your help.
    Thanks
    Juan

    Thank you.
    So, I just need to put the field name in the second argument.
    I have it working now.
    Thanks again
    Juan

  • How to display a text file in a html page?

    I have written a servlet that executes a batch file whose output is saved to a txt file. I am attempting to display content of the text file as a html page from the servlet but am struggling I have attempted to read the file and output it as shown below but it is not displaying the correct data
    Appreciate some help
    Thanks in advance
    Amjad
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("C:\\Condor\\test\\QueStatus.bat");
    PrintWriter out;
    String title = "Que Status";
    response.setContentType("text/html");
    out = response.getWriter();
    FileReader fr = new FileReader ("C:\\Condor\\test\\output.txt");
    for (int chr = fr.read(); chr != -1; chr = fr.read()){
         out.print(chr);
    }

    Couple of things. First you should search the forums for how to properly exec a dos batch file. There are some problems you may run into especially with io. I suspect you may not actually be running that batch file at all.
    I would test outputing a text file separately from execing the batch file.
    Here is some code so you don't have to output 1 char at a time. Setting the content length and closing the output stream might help.
    File downloadFile = new File("c:\\blah\\blah\\blah");
    response.setContentLength((int)downloadFile.length());
    response.setContentType("text/html");
    ServletOutputStream out = response.getOutputStream();
    FileInputStream fis = new FileInputStream(downloadFile);
    byte[] buffer = new byte[1024];
    int bytesRead;
    while ((bytesRead = fis.read(buffer)) != -1) {
    out.write(buffer, 0, bytesRead);
    fis.close();
    out.close();

  • How to display PDF in JSP using Iframe

    Hi All,
    I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.
    This method will be called from JSP by this way
    s:property value="getGeneratedPDF()" />
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
    questions 2 -- How to display it in Iframe?
    Please help me , If you know the solution.
    Thanks in Advance,
    Jimmy

    jamy_26 wrote:
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.A PDF file is a binary file, not a text file, and you're trying to display it as String. Of course you would get "junk characters". Have you ever tried opening a binary file (pdf, doc, jpg, xls, etc) using a text editor like Notepad?
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?Display it as binary stream, not as text stream. You can display it standalone, just let the link/form/addressbar URL point to some Servlet which writes the InputStream of the PDF file to the OutputStream of the response, along with a correct set of response headers (at least content-type, content-disposition and content-length), so that the browser can open it in the correct application (which is usually Acrobat Reader). If you want to embed the PDF file in a JSP, then one of the ways is indeed using the HTML <iframe> tag.
    questions 2 -- How to display it in Iframe? Just let the iframe URL point to the aforementioned Servlet.
    You can find here an example of a generic file servlet, you may find it useful to get the idea how to do it: [http://balusc.blogspot.com/2007/07/fileservlet.html].

Maybe you are looking for

  • Intel iMac wireless issues

    I've had a 20" Intel iMac for over a year now and have never had very good success maintaining a connection to my network wirelessly. I have tried everything, but nothing fixes it permanently. It would just drop the network sporadically, especially i

  • Need to isolate error with output with valid input (code included)

    Hey guys, this code will be a bit lengthy as I am posting from two separate Java files: Rectangle.java and RectangleTest.java - Basically I am stumped as to why even valid input keeps resulting in this message: System.out.println("\nThis is a SQUARE,

  • MQSeries and WebMethod adapters?

    Does WLI provide any adapters for third party messaging services such as MQSeries or WebMethods? Or do these adapters need to be written? Please advise, Dave

  • Upload data to cproject

    hello! i am new to cprojects, we have to upload data (excel file) to cproject. which method we have to  use for the upload ie LSMW OR BAPI can we use BDC/ LSMW for this. if possible with example thanks in advance

  • LCD starts clear, then goes fuzzy, but only for 1 user

    I have a Westinghouse LCD which worked fine with an employee's Mac mini (X.3.9) until suddenly one day it was very fuzzy and distorted (illegible). I switched to a different user, and it was fine. Reset PRAM. On restart, the dock draws clear initiall