function of viscanf() using the question

I write a function (not a primary function) I want to create this function as a document dll, when teststand use dll and run it.

the question is that I want to use this result to get the instrument function, but I do not confirm viscanf's right?

ViStatus _VI_FUNC Get_Frequency (ViSession instrSession, ViPReal64 frequency, ViString freqCommand)
{
ViStatus status = VI_SUCCESS;

Bruno buf [BUFFER_SIZE];
ViInt32 retCnt;

If (Status = viPrintf (instrSession, "freqComamnd\n")<>
Return MT8820B_status;
If (Status = viPrintf(instrSession,"*OPC?\n")<>
Return MT8820B_status;
If (viScanf = (instrSession, "% f", & frequency))<>
return the situation

Return MT8820B_status;

}

I use viscanf() like that, right? Thank you

You must use a pointer to ViReal64 inside your Get_Frequency () function to make use as output parameter.   When you call Get_Frequency(), you can use the & operator there often being a ViReal64 (not a ViInt32):

Get_Frequency (instrSession, & frequency, freqCommand)

Tags: NI Software

Similar Questions

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • I have a microsoft wireless keyboard4000 when I try to use the question mark I get / can you tell me what the problem with it I was getting with a line above.

    I have a microsoft wireless 4000 keyboard when I try to use the question mark I get / can you tell me how to fix

    or what is the problem, I received an e with a line above.

    Hello

    1. what was your keyboard last working fine?
    2. you remember to make changes on your computer recently?
    Try the steps and mark for the question below.
    a. click the Start button, type region and language and press ENTER.
    b. click the keyboards and languages tab.
    c. click Change keyboards.
    d. in the pop-up window, click Legeneralonglet.
    e. under default input language, select English (United States) - US or any another language you use generally.
    f. click on the OK button.
    g. click OK button region and language.
    I hope this helps.

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • Problem with copy paste function (for images) using the TinyMCE editor

    Can not copy paste images (a document - text Copies OK) to the tinyMCE editor in Windows 8. Seems to be the specific question of operating system.

    Use the tinyMCE editor for info on the download Web site. Copy-paste function works very well on a Windows7 machine

    Hi Anand,

    I would be grateful if you can help me with the following information related to the TinyMCE editor:

    1. What is the Web browser that you use to copy and paste images via the application editor TinyMCE?
    2. What exactly happens when you try to copy and paste images using the editor? You receive an error message?

    This problem may occur because of the compatibility of the browser with the TinyMCE editor.

    Check out these links and check if the suggestions help you to solve the problem:

    http://www.TinyMCE.com/forum/viewtopic.php?PID=34916

    http://www.TinyMCE.com/develop/bugtracker_view.php?id=6075

    If the problem is specific to the TinyMCE editor, you can also contact the support of TinyMCE:

    http://www.TinyMCE.com/enterprise/support.php

    Please let us know if you need more help on this issue. Otherwise, feel free to ask for more queries on Windows.

  • When you use the question mark, appears like a capital E with accent French and cannot use the quotes.

    Original title: I can't use my question mark (rises like a capital E with accent French and cannot use the quotes)

    I'm having a problem from time to time with my ability to use marks quotaion, brands etc. How can I treat it DEFINITIVELY the question.

    Thank you

    Hi golfnut11,

    1. you are using a laptop?

    2. you remember to make changes to the computer priro to this question?

    Step 1:

    If you use a laptop, check if the FN key is enabled. If so, then try to turn it off and check.

    Step 2:

    You can also try to check the keyboard on the screen and if the problem occurs or not.

    Check out the link:

    Type without using the keyboard (on-screen keyboard)

    http://Windows.Microsoft.com/en-us/Windows7/type-without-using-the-keyboard-on-screen-keyboard

    If you use a Microsoft keyboard, you can also consult the following article:

    Troubleshoot wired keyboards that do not or only the erroneous characters category
    http://support.Microsoft.com/kb/258826

    Hope this information is useful.

  • If the INSTR function will not use the INDEX o?

    Hi all


    I have a querry as
        Select * from Tab1 Where Instr(Tab1.Col1,'XX') >0 ;
    Is simple index on column Col1. If we use the index will be used or full table scan will happen in this scenario?

    Please give me explanatory answer because I have doubts


    Dhabas

    Hello

    You must use the index function if you want to avoid the full table scan. Check this box

    SQL> create table tab1(col1 varchar(20))
      2  /
    
    Table created.
    
    SQL> insert into tab1 values ('XXAB')
      2  /
    
    1 row created.
    
    SQL> create index col1_idx on tab1(col1);
    
    Index created.
    
    SQL> explain plan for Select * from Tab1 Where Instr(Tab1.Col1,'XX') >0;
    
    Explained.
    
    SQL> set autotrace on
    SQL> Select * from Tab1 Where Instr(Tab1.Col1,'XX') >0;
    XXAB
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=5 Card=1 Bytes=12)
       1    0   TABLE ACCESS (FULL) OF 'TAB1' (TABLE) (Cost=5 Card=1 Bytes
              =12)
    
    Statistics
    ----------------------------------------------------------
              4  recursive calls
              0  db block gets
             32  consistent gets
              0  physical reads
              0  redo size
            234  bytes sent via SQL*Net to client
            280  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    
    SQL>  create index col1_idx2 on tab1(Instr(Col1,'XX'));
    
    Index created.
    
    SQL> Select * from Tab1 Where Instr(Tab1.Col1,'XX') >0;
    XXAB
    
    Execution Plan
    ----------------------------------------------------------
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1 Bytes=12)
       1    0   TABLE ACCESS (BY INDEX ROWID) OF 'TAB1' (TABLE) (Cost=2 Ca
              rd=1 Bytes=12)
    
       2    1     INDEX (RANGE SCAN) OF 'COL1_IDX2' (INDEX) (Cost=1 Card=1
              )
    
    Statistics
    ----------------------------------------------------------
             28  recursive calls
              0  db block gets
             22  consistent gets
              0  physical reads
              0  redo size
            234  bytes sent via SQL*Net to client
            280  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    
    SQL> 
    

    Thank you
    AJ

  • The end of report database function call. Using the Evaluate function.

    Hi all

    We have a req when we need to call the functions of back-end of the end of the report. I knew the Evaluate function can be used to do the same. I tried to reproduce the same as the same thing, but it didn't work.

    One can please more elaborated on this. Syntax and other details. We must also pass the parameters to the function, probably a column value.

    Also please let me know where all changes must be made. RPD etc. as appropriate.

    It is of the selected, that we need to replicate in OBIEE.

    NVL (DWH.dwh_pa_get_si_value_f (Pa_Projects_All_V.Project_Id, Pa_Periods_All_V.Period_Name,-1, Dwh_Pa_Project_Si_Info.Currency_Type, Dwh_Pa_Task_Si_V.Task_Number, 'R'), 0)

    Thank you
    Pankaj

    Hey I am,.

    I found the solution to your problem...
    Under any logical table... you create a logical column and
    Select existing logical columns as source checkbox
    Click the Eclipse...
    Now, here you write...

    (Evaluate('dwh.dwh_pa_get_si_value_f(%1,%2,%3,%4,%5)', Pa_Projects_All_V.Project_Id, Pa_Periods_All_V.Period_Name,-1, Dwh_Pa_Project_Si_Info.Currency_Type, Dwh_Pa_Task_Si_V.Task_Number, 'R')

    Then click ok...
    Hope it works...
    It worked for me...

    Thank you & best regards
    Kishore Guggilla

  • In the video using the Question Flash Builder (19:22)

    Why she switch between workspaces and then finally import to use? If we are of beginner first don't we use always the default? I'm completely lost with what she was doing. Any help is appreciated

    I think it is to show you the capabilities of Flash Builder workspace options and also shows you how to use the files that you can download to Flex in a week.

  • Cannot change the password using the question of security in l/min.

    We have an identity server. We have a lost password management application. There is a webpass and a webgate configured for the application of the LPM. The mode of communication is simple. The forgotten password feature does not work for the application of the LPM.

    Steps to re-create the issue
    --------------------------------------
    -In the form of connection, the user clicks on "I forgot my password"link
    -User enter 'User ID' and then click on submit
    -It redirects the user to a page of challenge question, the answer to the question the user and click on submit
    -The next page confirms the user had correctly answered the secret question. And invite the user to enter the new password, retype the password, and then click Save
    -When, click Save shows "cannot change the password. The screen is refreshed. The new password is not saved.

    Identity & Webpass - 10.1.4.2 BP08 Server version

    Thank you.

    Hello

    For the LPM error "cannot change the password" check if you set a "minimum age" in the definition of the strategy of password.
    "If you set a minimum age of 2 days for example, the user will not be able to change his or her password before 2 days after the initial setting of the password and you will have 'identity/oblilx/logs/oblog.log' shows: ERROR 0 x 00000901 lost_pwd_mgmt.cpp:264 'cannot change password' loginName ^ xxxxx" in oblog.log

    --> In our POC password minimum age has been set, and we have forgotten that we have in him... This is why we hade this error on the LPM scenario...
    --> After setting the minimum age to 0, the scenario LPM works every time

    Best regards

  • My keyboard, when I use the question mark gives me only an E. How to bring back my normal keyboard funtions.

    Help me please, my keyboard is messed up... I can't use my punctuation... For example, this is my question mark E... Help

    Hi Robfraser,

    Have you changed the settings of regional language by chance?

    If it is changed, then try to change back to English, restart the system and check what is happening.

    For furtherinformation, please see the following article:

    Change the display language

    Hope this information is useful.

  • The blackBerry Smartphone ZOOM on Trackpad function when you use the camera no longer works. Help

    I can't zoom in when using trackpad, and Volume up/down, Buttom 3 and 9 can also.  I am able to ZOOM when I bought it first, but then, after that, I can zoom 1 x 2 x more after 1 month of use.  Can someone advise how I can configure return the ZOOm feature.  I tried all the OPTIONs field and still can not.  Thank you

    With the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart.

    IF you have problems with several buttons/trackpad, then, this looks like what I've seen several times on a device with moisture damage.

    Even sitting on a countertop bath during a hot steamy shower or bath can cause problems with keyboard and trackball up to this JUST-withered.

    Really, it is more common than you think.

    1 the battery immediately! Do not turn on your BlackBerry device.

    2. allow the device to dry in a warm, dry place for 3 to 5 days * (see below)

    3. DO NOT "check it every day" by placing the battery in. Leave what would to dry completely. It takes time. Replacing the battery to check it can damage only (humidity + power = disaster).

    3. If the unit is hot after the drying period, let it cool to room temperature before placing the battery in the.

    * Suggestions on your BlackBerry in a warm dry place (open, with battery):

    • Place the BB in a container of dry uncooked rice, and then you can also place it in one of the locations mentioned below.
    • On top of all heat dry emitting electronic components: TV or CRT, LCD, TV cable box / Satellite or plasma monitor
    • On the dashboard of your car on a day sunny
  • Using the question of RMAN cloning

    DB version: 10 gr 2
    Operating system: Solaris
    We are thinking of cloning a database taking his full backup can
    rman target / auxillary sys/mypass@auxdb                    --- Done at Primary DB
    rman> duplicate target database to "smdprod" NOFILENAMECHECK; --- Done at Primary DB
    We run all these scripts (orders full backup and duplicate) for the night. After the auxiliary DB is in editing mode, there will be new archived logs generated in primary DB, which is the DB auxiliary not aware of. . Even if the archive logs are part of the using PLUS ARCHIVELOG backup script, we are talking about the archive logs generated after the auxiliary DB is mounted.

    Question1. How to apply these new archive logs in the auxiliary DB?

    Question2. On which mode the auxiliary DB must be when we apply archive logs. Editing or open mode?

    N.Page wrote:
    DB version: 10 gr 2
    Operating system: Solaris
    We are thinking of cloning a database taking his full backup can

    rman target / auxillary sys/mypass@auxdb                    --- Done at Primary DB
    rman> duplicate target database to "smdprod" NOFILENAMECHECK; --- Done at Primary DB
    

    We run all these scripts (orders full backup and duplicate) for the night. After the auxiliary DB is in editing mode, there will be new archived logs generated in primary DB, which is the DB auxiliary not aware of. . Even if the archive logs are part of the using PLUS ARCHIVELOG backup script, we are talking about the archive logs generated after the auxiliary DB is mounted.

    Question1. How to apply these new archive logs in the auxiliary DB?

    Question2. On which mode the auxiliary DB must be when we apply archive logs. Editing or open mode?

    To do this, create a standby database, complete his creation and apply to all the restoring archived log files that were generated during the creation on hold and perform a failover
    Check my video tutorial on the creation of standby and Clone database with RMAN
    http://kamranagayev.WordPress.com/2010/06/25/RMAN-video-tutorial-series-creating-duplicate-and-standby-database-using-RMAN/

  • The Microsoft Wireless Mouse 5000 has a power button or an auto-turn off function when you use it,

    I am interested in buying one for use on a desktop PC, then the transmitter/receiver must be connected all the time...

    Mouse Wireless a usually - ON / OFF switch or the automatic stop function.

    And because this mouse is not to have ON / OFF switch, so it must have auto power-off function - and this function is independent of the question whether the radio is placed in the mouse, or even on your computer (plugged) attached.

    And sometimes - if the mouse goes into power saving mode - you must first press the button of the mouse to wake up.

    LC

  • Satellite L40 - 139 - after watching the video, I can't use the virtual scrolling

    Hello

    I own a Toshiba Satellite L40-139 under Windows Vista 32-bit. However, I think that this problem only applies to this model as other users are experiencing the same thing.

    I often watch videos online mode full screen (like on YouTube), but when I leave full-screen mode, I noticed that virtual scrolling stops working on the touchpad. This occurs in the latest versions of Internet Explorer and Firefox. I can still move the pointer, but cannot scroll. I also note that the icon in the taskbar freezes, because it does not meet all the movements on the touchpad. I have the latest version of the driver installed (10.0.3.0).

    Is it possible for Toshiba to issue an updated driver for the Synaptics pointing device which solves this problem?

    Thank you

    Hello

    It's the first time that someone has posted this question
    I checked this on my Satellite U400 and quest that; the touchpad works ok
    There may be a registry problem with your operating system who knows
    It would be interesting to know how the touchpad scroll function works by using the new OS installed

Maybe you are looking for

  • How to remove Options in the menu bar, it just keeps poping up upward.

    In the menu bar poping up Guard options, how can I remove it and keep coming back.

  • Re: Vista restarts using the Toshiba USB DVB - T receiver.

    I'm looking for by all threads associated with the use of this device on Windows Vista and I tried all the changes that I've found so far. Savvy TV begins in Vista right now. It is not to do with the old drivers.I do an Automatic Scan and it complete

  • Several utilities for Time Capsule

    I hard set up Time Capsule and so tried to do 3 times.  Now, I have Time Capsule utility 1, 2 and 3 and none work properly.  How can I delete all these and start again as if for the first time? Thank you. -Carol

  • HDMI with no sound

    I have the HP 13-3010ea spectrum and I can't not all my hdmi sound. Only the photo! * edit *. When I plug the HDMI to my tv, I always make me "not connected" in the sound settings Help, please

  • How to add a menu item to new tools Panel

    Have anyone knows how to add the menu item to the "new tools Panel.For example,.Add (Menu object > wrap distort > make) to "new tools Panel. I try many way and research, still can not solve my problem.Does anyone have an idea which can add a menu ite