Check the source code in absence of physical Hardware

For one of my applications, i have to work with 4 counters.So i increased counter input channels from 2 to 4 in the source code. But we are yet to get the hardware as we have a PCI card which can read 2 counters. But before we go for the hardware purchase, i want to make sure my source code which has 4 counters work.
I want to know whether there is any provision to check increased counter channels functioning.
Pls give me suggestion & procedure if you have any for this type of issues.
thank you in advance
-KIRIT

Do you not know what the typical measurement is supposed to be? By failing data, I mean a measurement that is outside what you would expect. You need this if the count is supposed to be some value and you have code that takes some sort of action when it is outside a limit. If you don't really care, then just set it up to return a range of nominal values.
Below is some simple code to generate a random number between a min and max range. You can replace the min and max with constants or just have the random count be a constant.
I hope you are aware that the simulated count function would be used in place of the DAQmx Read/DAQ Assistant. For counters, you cannot use a simulate DAQmx device to return anything but a 0. You could have a case statement with one case having the DAQmx function and the other case having the simulated data function.
Message Edited by Dennis Knutson on 07-24-2008 01:05 PM
Attachments:
Random Number Between a Range.PNG ‏3 KB

Similar Messages

  • Check the source code

    Hi Folks,
    I know it should be very basic question. I am not a complete technical person, but i am trying to understand the code. Please guide me for the below issues.
    How to see the source code for method (which is inside the interface) ?
    [SE24 --> Double Click Interface --> Method tab]
    I can see code for some method by click the Code button in Class --> Methods. But there are some extra method defined inside the interface. How to see those source code.

    place the cursor over that method and click the where - used lists button which will show you all the classes that are using this method
    Thanks
    Bala Duvvuri

  • To check the source code(VI) in absence of real hardware

    I need to check the VI , which is developed to measure pressure with pressure transducer.
    Later this VI is deplyed in the Test stand system as .exe file. At the test stand system we have all the hardware from the PCI DAq card to the pressure transducer.
    But the system where the software is there dont have the hardware.
     So how can i check the code in absence of hardware?
    Can the Simulate signal will be helpful or we should need atleat pci-Daq card and waveform generator to check the code.
    Any suggestions in this regard will be helpful
    Many thanks
    Regards
    Kirit

    Hi Kirit,
    You should go in MAX, and under My System, right click on "Devices and interfaces" then 'Create new ' and then 'NI-DAQmx simulated device'. In the M series or any , you can find both PCI, PXI cards.Select the particular device and click ok. This should allow you to test your code with a simulated device.

  • How to syntax check the source code of custom methos of classes?

    Hi,
    Experts,
    I want to check the syntax errors is present or not in methods of classes, to check that is there any function module or classes for that?
    Thank U,
    Shabeer Ahmed.

    T.CODE :- SLIN
    USING THIS T.CODE CHECK SYNTAX ERROR AND ALL
    LIKE
    SYNTAX
    PERFOMR/FORM
    FUNCTION
    AUTHORIZATION
    CHECK LOAD TABLE
    SET/GET PARAMETER IDs
    MESSAGE
    etc....

  • Is there any differnce between the Numeric Limit Test source code from TestStand 3.0 to TestStand 3.1? How to get the source code for the Numric Limit Test for both the versions?

    I need to know the differnece between the Numeric Limit Test between the TestStand version 3.0 to 3.1. If there is any differnec in the source code how to find it out? If somebody has the code can you share it?
    Thanks,
    Jeyan

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Can you share the source code for Customer ToughDay stress test tool?

    Hello,
    I would like to try Customer ToughDay tool (http://dev.day.com/docs/en/cq/current/testing/tough-day.html) for load testing of our author instances of CQ5. While I am able to execute the application, the logging with log4j seems to be configured incorrectly.
    Can you share the source code for toughday-5.5.jar?  I think it can be a very good starting point for those of us who are new to CQ5 and need to load test it.
    Thank you!

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to See and Change the Source Code of Spawned Concurrent Program.

    Hello Team,
    There is one requirement in which we have to add some condition in the Concurrent Program.But the Type of that concurrent Program is ,"Spawned ".
    Please suggest me , how can i check the Source code for this type of Concurrent Program and how can i make the changes to satisfy the requirement.
    Thanks & Regards

    There is one requirement in which we have to add some condition in the Concurrent Program.But the Type of that concurrent Program is ,"Spawned ".
    Please suggest me , how can i check the Source code for this type of Concurrent Program and how can i make the changes to satisfy the requirement.Please see old threads, it should answer your question -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Spawned+AND+Concurrent+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can we know the source code no.of lines

    hi guys!
    please help me, how can we check the source code(No. of lines)in program with out comments

    hi,
    Use this code. Replace with your program name with the text in bold. V_lines gives the no of lines of code excluding comments and as well blank lines.
    TYPES: BEGIN OF t_type,
             line(72),
           END OF t_type.
    DATA: program LIKE sy-repid
                     VALUE <b>'Z_ABC_INNER_JOIN'</b>,
          t TYPE STANDARD TABLE OF t_type WITH HEADER LINE.
    DATA: v_lines TYPE i.
    READ REPORT program INTO t.
    IF sy-subrc =0.
      LOOP AT t.
        IF t+0(1) = '*' OR t IS INITIAL.
          DELETE t INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t LINES v_lines.
    ENDIF.
    WRITE : v_lines.
    Regards,
    Sailaja.

  • The source code for my website shows up wrong for title line in firefox but not in other browsers-how can i correct it? My ranking depends on this.

    My title line is correct when I check the source code in Google Chrome. Why is it coming out differently in Firefox?

    Works here.<br />
    I see the same "Accent and English Skills Training for Success" title in Firefox as in Google Chrome although the title tag has a different value: &lt;title&gt;EnglishWorks.us&lt;/title&gt;
    Is that title set via JavaScript?
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)

  • Performance checking inside the source code

    performance checking inside the source code who to check it.
    thanks and regards
    chandra sekhar

    I guess you are asking how to check it, then here is the answer
    SQL Trace transaction ST05
    The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use

  • I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Is it necessary to add? If so, how do I add H Tags to iweb.

    I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Are they necessary to add?  Why would one add these tags and how do I add H Tags to iweb? And are there examples to look at? I am slowly learning about simple web design and assumed that iweb was stand alone without having to write code. Is this one of the reasons iweb is no longer supported? Thanks for looking at this!

    A simple text page like this:
    Heading
        sub heading
              text paragraph ....
    Is traditionally represented by html tags like:
    <h1>Heading</h1>
         <h2>sub heading</h2>
              <p>text paragraph ... </p>
    I would guess that the use of h1-h6 tags helps search engines to understand the structure of a page as the tags imply a certain structure.
    This can be compared to more generic tags like <div> that could represent any kind of content - and may be what iWeb uses (you'll have to check yourself).
    I would generally recommend that you use some kind of up to date blog/site building tool, perhaps Wordpress or Squarespace (I haven't used either one myself) that support current web technologies - this should reduce your SEO issues and make it easier to properly support mobile/tablet users.

  • If I Use JavaFX to Create a Game Do I Have to Release the Source Code?

    Hello,
    I've asked this question before, but I just thought I would try it again now
    that version 1.0 is out.
    If I Use JavaFX to Create a Game Do I Have to Release the Source Code?
    Thanx in advance.

    Could you please point me to a resource describing "the JavaFX Runtime license"? I'm trying to find answers to the following questions:
    1. I'd like to use Scenario.jar from the JavaFX project in a desktop app that is not using Webstart and is not an applet. Will I be able to ship the jar with my software?
    2. Can JavaFX applications be distributed as commercial software in the absence of a Web connection?
    What's not clear to me is which is the real license for Scenario.jar (as shipped with JavaFX). Is it the one in openjfx-compiler's trunk, or the one that comes with the JavaFX SDK (which is very vague about redistribution)?

  • How to get the source code of  "com.sap.caf.eu.gp.example.tiimeoff.wd.creat

    Hi Frendz..
    I want to know how we can build a callable obj which have a two buttons those r Accept n Reject accordiing to the actions on these buttons flow should forward to next screen(approver ) r sent back to the sender(screen with reject).
    I gone thru the Leave process(Time-Off process) which is very suitable for my requirment but in this app there r using predefined CO(com.sap.caf.eu.gp.example.tiimeoff.wd.create).How we see the source code of this predefined CO.
    Thanks in Advance
    Regards
    Rajesh

    Hi,
    check [this|Re: Source of Time-off Request Project].
    Regards,
    Naga

  • Customize interface without touching the source code

    My VP of of marketing is at it again. I have pasted in the exact email that he sent me. If anyone has ideas or suggestions or knows if Forms 9i has this built-in capability, please let me know.
    Thanks.
    Can you post this on metalink and see if someone at Oracle (or elsewhere) has an answer for us? Somehow, other LIMS developers are distributing LIMS products that allow their users to customize the interface without touching the source code -- no impact on their ability to take new releases. How do they do that?
    Here's my question:
    Anyone familiar with the Tools / Forms / Design this Form feature in MS Outlook? This allows a mere mortal to actually create and publish a custom Outlook form (could be a Contact, Task, Note, Journal, etc. form) across the organization. Is there such a capability built into Oracle9i Forms? In other words, can a developer easily build and distribute an Oracle software app such that the end-user can use an administrative tool to modify the interface/forms, add fields, change field names, move things around on the form, change colors, etc. -- without needing the Oracle Developer tool used by the original software developer, along with source code?
    Here's my original email from a few months ago:
    Our VP of marketing has been on my case about the ability to allow customers to "map" a form label (prompt) to a "custom" label of their choosing. The only way I know to do this is to create a "mapping" table and each time a form opens have code in the Post-Query trigger that changes the prompt of each column to the label that is in the "mapper" table. My fear here is Performance. Also, if the user closes that form and comes back to it - that logic has to be executed again - once again Performance. We have thought about the global variable idea, but we have over 100 tables with approx. 20 columns each. That's alot of globals to carry around. What's the overhead of carring around let's say 150 global variables?
    My questions to all of you are:
    1) Is anyone else doing this exact thing?
    2) If so, what is the performance hit?
    3) Is there a way to "remember" after the first time it paints - until the application is closed (not just that form) - other than global variables?
    4) Is there a solution already in place within Forms for this?
    5) Is there newer technology that has overcome this problem?
    My VP doesn't like the mapping idea. He wants to know isn't there a better way instead of mapping all the fields. Isn't there some simple utility provided by Oracle that allows the user to simply change the form labels (no, he's not talking about Oracle Developer). He is a real Outlook nut. So he's always comparing everything to how Outlook works. This is how it works in Outlook -- you click on Design Form, modify it, then install it on the machine. Surely Oracle must have something like this. He thinks we're asking the wrong question or not asking it in the right way. I'm not sure how else to ask it. Our users want to see "Date of Birth" spelled out instead of "DOB" as the label for a column on a form. Is there a way for them to take the fmx and change that label? Is there a better way other than storing this in a table and querying it up each time the form opens? Yes, I could use a global so I don't have to query it from the database every time, but I still have to evaluate every time the form is opened during that session to see which label I need to use and then set the prompt accordingly. Our VP doesn't like this, he wants this to be a one time change.
    Thanks so much for you help,
    Tina

    Hmmm.... either your VP of marketing or the users have too much time on their hands. ;-)
    I would go with a lookup table. If your database is responsive and you index the table by form name, you can retrieve a number of rows and setup the screen quickly enough that nobody would notice any time lag.
    If there aren't too many titles stored in the form, you could use a PLL library procedure and stuff all of them into a few globals -- just stack them into a single string separated by an odd character, like maybe chr(3). Then when the form is called again, it could first check to see if the globals exist, and parse the titles from there.
    But be careful about changing field titles. If they change DOB to Date of Birth, the length changes, and so you need to determine where the extra length goes. The title field must be wide enough and the text justification should be set properly.

  • How to wrapp the source code?

    Dear all,
    I am building an application here and i do not want other developers to be able to see my source code of the packages,
    i heared that i can wrapp the source code but i do not know how
    any suggestions?
    thanks

    Hi,
    There's a tool for that which is shipped with Oracle itself. It's called 'wrap'. Read the docs for examples...
    But: Why do you want to do that? If you and your colleagues are working on the same project, I would beat you if I were the project leader. How should anyone resolve issues with your code in case of absence?
    Curious regards

Maybe you are looking for

  • Reversing PGI without cancelling Excise Invoice

    Hi, Is there any process where we can Reverse PGI without cancelling the Commercial Invoice & Excise Invoice and again connecting the same corrected delivery to the old invoice number. To be more clear, in delivery if I have picked a wrong batch numb

  • HP 2600N Color Laser Printer

    I read that the drivers for this printer come with Leopard. However, when I go to system preferences, print and fax, add a printer, it doesn't see the printer. I have also read that the printer works better when i use the drivers that came with leopa

  • Temporarily Out Of Stock

    I'm eligible for a New Every Two upgrade as of tomorrow, and I'd been researching all the different phones and decided that I wanted to get the Kin TWOm. Now I see that it is temporarily out of stock. Any idea when this will be available again, or an

  • Find out duplicate rows in a flat file before using sqlldr

    Hello i want to import via sqlldr from a flat file to a table inside my data base. My flat file has unfortunately some duplicate copies inside. So, i defined my upload table with two primary keys- date and time(and sometimes there are more than one r

  • Spry horizontal menu becomes vertical menu

    In IE my spry horizontal menu becomes vertical but is stretched to the same width as the horizontal menu is suppose to be? Any ideas?