Documentat​ion tags and static functions
I'm an issue with the documentation tags. It appears that if the function is declared as a static function, it won't show up in the generated documentation (I'm using HTML). For example:
static int ArrayLocation(int i1, int i2, int num_coeff)
Will not show up, but if I remove the 'static' keyword then the function will show up in the generated documentation, i.e.:
int ArrayLocation(int i1, int i2, int num_coeff)
Thanks for any help with this.
Hi Wolfgang,
here I send you the documentation of the three functions:
correlate: http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/libref/cvicorrelate/
correlateEx: http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/libref/cvicorrelateex/
normalizedCorrelate: http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/libref/cvinormalizedcorrelate/
I hope this helps you.
Best regards
Suse
Certified LabVIEW Developer (CLD)
Similar Messages
-
Abstract class and static function
Please tell me that why a static function can't be made abstract?
Thanks.
Edited by: RohitRawat on Sep 9, 2009 7:45 AMRohitRawat wrote:
Please tell me that why a static function can't be made abstract?
Thanks.Because the method belongs to the class. -
Question about the Documentat​ion Tags for Source Code
Hello,
I have a question about CVI's automatic source code documentation. My problem is that is seems like you need to write all documentation for a specific tag on one line. If you don't, a line break will be inserted when the documentation is displayed. Suppose I want to write a large amount of documentation for the function itself, using the HIFN tag. If I don't want linebreaks to be forced in the documentation, I need to write all this documentation on one single line, which kinda messes up my code. If I split the documentation over several HIFN tags, the documentation displayed to the user might look messed up because of all the linebreaks. Is there any escape character I can put at the end of a line, allowing me to split the documentation of several HIFN lines without forcing linebreaks in the documentation?
Thanks!
GEMIDIS - Innovating Display Technology
HQ Ghent, BelgiumThis information is certainly useful. Note, however, that it can also be found in the documentation
Tag
Description
/// HIFN help text
Specifies the help text for the function. Use multiple /// HIFN tags to display help text for the function on separate lines. To separate help text with an empty line, use /// HIFN on a line by itself. You also can use HTML tags, but you must enclose the tags in <HTML><BODY></BODY></HTML> tags.
Example
/// HIFN SampleFunction returns the value of a control.
int SampleFunction (int controlID, ctrlType controlType, char label[], double *value)
SomeAction; -
Member /static function and procedure
hi guys,
i'm trying to figure out diffrerences between the following;
1. member function and static function
2.*member* procdure and static procedure.
i wanna know when to use them when creating an object type.thanks.hope this enlighten you
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/objects.htm#CHDEFBEA -
The find function doesn't expanding the xml nodes to search. If the xml is expanded , then find function highlights both matching tag and data. how to fix this.
== This happened ==
Every time Firefox opened<xsl:value-of select="x"/> produces a string that consists of all text nodes in x.
<xsl:copy-of select="x"/> produces an exact copy of x.
Go to http://www.zvon.org/ for more information like this. -
Compiler error with default arguments and static template function
Hi
The following does not compile with visual studio 2010 sp1, and compiles with gcc.
#include <string>
class A
public:
template<class T>
static T& Get(const std::wstring&);
class B
public:
void f(
double d,
double c =A::Get<double>(L"test"));
int main()
B b;
b.f(5);
It gives me the following error
error C2783: 'T & A::Get(const wchar_t *)' : could not deduce template argument for 'T'
If I change Get to be global function and not static function of A, it compiles.It seems to be a compiler bug. It fails in VS2012, but compiles in VS2013.
For completion sake, the problem exists if A is a namespace containing Get. But not if Get is global.
The only solutions I can see are try to workaround the problem (make Get global) or upgrade to a newer version of VS. -
Excel function and ev function not working in static column key
I have created a evdre report and I notice that when I tried to use any excel function and ev functions in the static column key cell to get the value for that cell, it's not working.
e.g I have Col key define as:
ColKeyRange Sheet!&$J$12:$N$14
In K13 which is key id for time. I define is as = $K$10 where K10 is the time value from current view, it not working,the value is still K13 = $K$10. then I tried to use EVCVW function to replace K10, it also not working, but I use the same function in the description of the ID underneath, both of the are working, Any thought?
Edited by: DFW on Feb 9, 2010 7:33 PMHi,
That was exactly what I meant. They just dont work on the green ID areas or the yellow data region. Few days back even I tried that, but didnt work. So, I followed the different approach. I dont remember about the dynamic templates. Are you sure that the functions were written in the green ID region?
I remember this used to work fine in the MS version. However, in the NW version, even I am not able to make them work.
Edited by: nilanjan chatterjee on Feb 9, 2010 9:38 PM -
How do i create a static function in a class and implement ActionListener?
i am trying to create a pop up dialog box in a seperate class.
and i want to make the Function static, so that i only need to access it with the class name.
But how do i have a ActionListener ?
everything in a static function is static rite?import java.awt.*;
import java.awt.event.*;
public class StaticFunction
Dialog dialog;
private Panel getUIPanel()
Button button = new Button("show dialog");
button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
if(dialog == null)
dialog = OutsideUtility.showDialog("hello world");
else if(!dialog.isVisible())
dialog.setVisible(true);
else if(dialog.isVisible())
dialog.dispose();
dialog = null;
Panel panel = new Panel();
panel.add(button);
return panel;
private WindowListener closer = new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
public static void main(String[] args)
StaticFunction sf = new StaticFunction();
Frame f = new Frame();
f.addWindowListener(sf.closer);
f.add(sf.getUIPanel());
f.setSize(200,100);
f.setLocation(200,200);
f.setVisible(true);
class OutsideUtility
public static Dialog showDialog(String msg)
Button button = new Button("top button");
button.setActionCommand(msg);
button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
Button button = (Button)e.getSource();
System.out.println(button.getActionCommand() +
" from anonymous inner listener");
button.addActionListener(new ButtonListener());
Button anotherButton = new Button("bottom button");
anotherButton.setActionCommand("another button");
anotherButton.addActionListener(localListener);
Panel north = new Panel();
north.add(button);
Panel south = new Panel();
south.add(anotherButton);
Dialog dialog = new Dialog(new Frame());
dialog.addWindowListener(closer);
dialog.add(north, "North");
dialog.add(new Label(msg, Label.CENTER));
dialog.add(south, "South");
dialog.setSize(200,200);
dialog.setLocation(425,200);
dialog.setVisible(true);
return dialog;
private static WindowListener closer = new WindowAdapter()
public void windowClosing(WindowEvent e)
Dialog dialog = (Dialog)e.getSource();
dialog.dispose();
private static ActionListener localListener = new ActionListener()
public void actionPerformed(ActionEvent e)
Button button = (Button)e.getSource();
System.out.println(button.getActionCommand() +
" from localListener");
private static class ButtonListener implements ActionListener
public void actionPerformed(ActionEvent e)
Button button = (Button)e.getSource();
String ac = button.getActionCommand();
System.out.println(ac + " from ButtonListener");
} -
Hello there
Ray Camden has an interesting blog which I recommend everyone
reads. I have learned a thing or two from what he has written I can
tell you. Today he has posted a couple of HTML files which list out
all Coldfusion tags and functions with summaries and links to their
respective pages in Livedocs. These will be great offline quick
references and I think they would also be useful for people newer
to Coldfusion to read through to quickly familiarize themselves
with the CF language. Here is the link:
http://ray.camdenfamily.com/index.cfm/2006/9/19/New-Quick-References
I hope people find this as useful as I do.
Regards, Barryhttp://www.cfquickdocs.com
-
I need help, I'm on a laptop acer ... I install Dreamweaver cs6 and I can not seem to do the keyboard raccoucie Quick tags Crt T function
Dreamweaver support forumYou posted your question 2 minutes ago.
The first thing to try is Deleting Corrupted Cache in DW. You must turn on hidden files/folders in your operating system to find them.
http://forums.adobe.com/thread/494811
If that doesn't help, try Restore Preferences
http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
If all else fails, use the CS Cleaner Tools below followed by a software re-install.
http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
Nancy O. -
Can not call a static function with-in a instance of the object.
Another FYI.
I wanted to keep all of the "option" input parameters values for a new object that
i am creating in one place. I thought that the easiest way would be to use a
static function that returns a value; one function for each option value.
I was looking for a way to define "constants" that are not stored in
the persistent data of the object, but could be reference each time
the object is used.
After creating the static functions in both the "type" and "body" components,
I created the method that acutally receives the option input values.
In this method I used a "case" statement. I tested the input parameter
value, which should be one of the option values.
I used a set of "WHEN conditions" that called the same
static functions to get the exact same values that the user should
pass in.
When I try to store this new version, I get the error:
"PLS-00587: a static method cannot be invoked on an instance value"
It points to the first "when statifc_function()" of the case function.
This seems weird!
If I can call the static method from the "type object" without creating
and instance of an object, then why can't I call it within the body
of a method of an instance of the object type?
This doesn't seem appropriate,
unless this implementation of objects is trying to avoid some type
of "recursion"?
If there is some other reason, I can not think of it.
Any ideas?Sorry for the confusion. Here is the simplest example of what
I want to accomplish.
The anonymous block is a testing of the object type, which definition follows.
declare
test audit_info;
begin
test := audit_info(...);
test.testcall( audit_info.t_EMPLOYER() );
end;
-- * ========================================== * --
create or replace type audit_info as object
( seq_key integer
, static function t_EMPLOYER return varchar2
, member procedure test_call(input_type varchar2)
instantiable
final;
create or replace type body audit_info
as
( id audit_info
static function t_EMPLOYER return varchar2
as
begin
return 'EMPLOYER';
end;
member procedure test_call(input_type varchar2)
as
begin
CASE input_type
WHEN t_EMPLOYER()
select * from dual;
WHEN ...
end case;
end;
end;
The error occurs on the "WHEN t_EMPLOYER()" line. This code is only
an example.
Thanks. -
Problem with instantiation in static function
I have a problem with instatiation of objects in a static function. When I do something like this,
public static void test1() {
String s = new String();
everything works fine, but when I try to do the same with a internally defined class, I get the error "non-static variable this cannot be referenced from a static context".
My code looks roughly like this:
public static void test2() {
Edge e = new Edge();
class Edge {
public int y_top;
public double x_int;
public int delta_y;
public double delta_x;
The compiler complains with the mentioned error message over the creation of a new Edge object and I don't have the slightest clue why... :| When I put the class Edge into an external file, it works.
Can anyone help me out there?Your class Edge is a member of the instance of the current class. You don't have an implicit instance of the current class (the "this" reference) in a static context, therefore you get the error.
You need to either declare Edge as static, move it outside your class, or create an explicit instance of the outer class which you use to create instances of Edge ("Edge e = new YourMainClass().new Edge()") -
MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?
The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one. If the battery was questionable, the firmware update was really not too important.
You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity. -
Case statement and Decode function both are not working in Select cursor.
I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
know the reason why decode is not working, I heard some where Case statement do not work with 8i.
Author : Amit Juneja
Date : 06/20/2011
Description:
Updates the Diamond MEMBER_MASTER table with the values from
INC.MEM_NJ_HN_MEMBER_XREF table.
declare
rec_cnt number(12) := 0;
commit_cnt number(4) := 0;
cursor select_cur is
Select DECODE(1,
(Select 1
from hsd_prov_contract R
where R.seq_prov_id = PM.seq_prov_id
and R.line_of_business = H.line_of_business
and R.PCP_FLAG = 'Y'
and R.participation_flag = 'P'
and SYSDATE between R.EFFECTIVE_DATE AND
NVL(R.TERM_DATE,
TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
'Y',
'N') PAR_FLAG,
H.SEQ_ELIG_HIST,
H.SEQ_MEMB_ID,
H.SEQ_SUBS_ID,
H.SUBSCRIBER_ID,
H.PERSON_NUMBER,
H.EFFECTIVE_DATE,
H.TERM_DATE,
H.TERM_REASON,
H.RELATIONSHIP_CODE,
H.SEQ_GROUP_ID,
H.PLAN_CODE,
H.LINE_OF_BUSINESS,
H.RIDER_CODE_1,
H.RIDER_CODE_2,
H.RIDER_CODE_3,
H.RIDER_CODE_4,
H.RIDER_CODE_5,
H.RIDER_CODE_6,
H.RIDER_CODE_7,
H.RIDER_CODE_8,
H.MEDICARE_STATUS_FLG,
H.OTHER_STATUS_FLAG,
H.HIRE_DATE,
H.ELIG_STATUS,
H.PREM_OVERRIDE_STEP,
H.PREM_OVERRIDE_AMT,
H.PREM_OVERRIDE_CODE,
H.SEQ_PROV_ID,
H.IPA_ID,
H.PANEL_ID,
H.SEQ_PROV_2_ID,
H.SECURITY_CODE,
H.INSERT_DATETIME,
H.INSERT_USER,
H.INSERT_PROCESS,
H.UPDATE_DATETIME,
H.UPDATE_USER,
H.UPDATE_PROCESS,
H.USER_DEFINED_1,
H.SALARY,
H.PEC_END_DATE,
H.REASON_CODE,
H.PEC_WAIVED,
H.BILL_EFFECTIVE_FROM_DATE,
H.BILLED_THRU_DATE,
H.PAID_THRU_DATE,
H.SUBSC_DEPT,
H.SUBSC_LOCATION,
H.USE_EFT_FLG,
H.BENEFIT_START_DATE,
H.SEQ_ENROLLMENT_RULE,
H.MCARE_RISK_ACCRETION_DATE,
H.MCARE_RISK_DELETION_DATE,
H.MCARE_RISK_REFUSED_DATE,
H.COMMENTS,
H.USER_DEFINED_2,
H.USER_DEFINED_3,
H.RATE_TYPE,
H.PCPAA_OCCURRED,
H.PRIVACY_ON,
H.PCP_CHANGE_REASON,
H.SITE_CODE,
H.SEQ_SITE_ADDRESS_ID,
PM.seq_prov_id rendered_prov
from hsd_member_elig_history H,
INC.PCP_REASSIGN_RPRT_DATA P,
hsd_prov_master PM
where P.subscriber_id = H.subscriber_id
and P.rendered_pcp = PM.provider_ID
and H.elig_status = 'Y'
and (H.term_date is NULL or H.term_date >= last_day(sysdate))
order by H.Seq_memb_id;
begin
for C in select_cur loop
rec_cnt := rec_cnt + 1;
update hsd_member_elig_history
set term_date = TRUNC(SYSDATE - 1),
term_reason = 'PCPTR',
update_datetime = SYSDATE,
update_user = USER,
update_process = 'TD33615'
where seq_elig_hist = C.seq_elig_hist
and seq_memb_id = C.seq_memb_id;
INSERT INTO HSD_MEMBER_ELIG_HISTORY
(SEQ_ELIG_HIST,
SEQ_MEMB_ID,
SEQ_SUBS_ID,
SUBSCRIBER_ID,
PERSON_NUMBER,
EFFECTIVE_DATE,
TERM_DATE,
TERM_REASON,
RELATIONSHIP_CODE,
SEQ_GROUP_ID,
PLAN_CODE,
LINE_OF_BUSINESS,
RIDER_CODE_1,
RIDER_CODE_2,
RIDER_CODE_3,
RIDER_CODE_4,
RIDER_CODE_5,
RIDER_CODE_6,
RIDER_CODE_7,
RIDER_CODE_8,
MEDICARE_STATUS_FLG,
OTHER_STATUS_FLAG,
HIRE_DATE,
ELIG_STATUS,
PREM_OVERRIDE_STEP,
PREM_OVERRIDE_AMT,
PREM_OVERRIDE_CODE,
SEQ_PROV_ID,
IPA_ID,
PANEL_ID,
SEQ_PROV_2_ID,
SECURITY_CODE,
INSERT_DATETIME,
INSERT_USER,
INSERT_PROCESS,
UPDATE_DATETIME,
UPDATE_USER,
UPDATE_PROCESS,
USER_DEFINED_1,
SALARY,
PEC_END_DATE,
REASON_CODE,
PEC_WAIVED,
BILL_EFFECTIVE_FROM_DATE,
BILLED_THRU_DATE,
PAID_THRU_DATE,
SUBSC_DEPT,
SUBSC_LOCATION,
USE_EFT_FLG,
BENEFIT_START_DATE,
SEQ_ENROLLMENT_RULE,
MCARE_RISK_ACCRETION_DATE,
MCARE_RISK_DELETION_DATE,
MCARE_RISK_REFUSED_DATE,
COMMENTS,
USER_DEFINED_2,
USER_DEFINED_3,
RATE_TYPE,
PCPAA_OCCURRED,
PRIVACY_ON,
PCP_CHANGE_REASON,
SITE_CODE,
SEQ_SITE_ADDRESS_ID)
values
(hsd_seq_elig_hist.nextval,
C.SEQ_MEMB_ID,
C.SEQ_SUBS_ID,
C.SUBSCRIBER_ID,
C.PERSON_NUMBER,
trunc(SYSDATE),
C.TERM_DATE,
C.TERM_REASON,
C.RELATIONSHIP_CODE,
C.SEQ_GROUP_ID,
C.PLAN_CODE,
C.LINE_OF_BUSINESS,
C.RIDER_CODE_1,
C.RIDER_CODE_2,
C.RIDER_CODE_3,
C.RIDER_CODE_4,
C.RIDER_CODE_5,
C.RIDER_CODE_6,
C.RIDER_CODE_7,
C.RIDER_CODE_8,
C.MEDICARE_STATUS_FLG,
C.OTHER_STATUS_FLAG,
C.HIRE_DATE,
C.ELIG_STATUS,
C.PREM_OVERRIDE_STEP,
C.PREM_OVERRIDE_AMT,
C.PREM_OVERRIDE_CODE,
C.SEQ_PROV_ID,
C.IPA_ID,
C.PANEL_ID,
C.SEQ_PROV_2_ID,
C.SECURITY_CODE,
SYSDATE,
USER,
'TD33615',
SYSDATE,
USER,
'TD33615',
C.USER_DEFINED_1,
C.SALARY,
C.PEC_END_DATE,
C.REASON_CODE,
C.PEC_WAIVED,
C.BILL_EFFECTIVE_FROM_DATE,
C.BILLED_THRU_DATE,
C.PAID_THRU_DATE,
C.SUBSC_DEPT,
C.SUBSC_LOCATION,
C.USE_EFT_FLG,
C.BENEFIT_START_DATE,
C.SEQ_ENROLLMENT_RULE,
C.MCARE_RISK_ACCRETION_DATE,
C.MCARE_RISK_DELETION_DATE,
C.MCARE_RISK_REFUSED_DATE,
C.COMMENTS,
C.USER_DEFINED_2,
C.USER_DEFINED_3,
C.RATE_TYPE,
C.PCPAA_OCCURRED,
C.PRIVACY_ON,
C.PCP_CHANGE_REASON,
C.SITE_CODE,
C.SEQ_SITE_ADDRESS_ID);
commit_cnt := commit_cnt + 1;
if (commit_cnt = 1000) then
dbms_output.put_line('Committed updates for 1000 records.');
commit;
commit_cnt := 0;
end if;
end loop;
commit;
dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
rec_cnt);
exception
when others then
raise_application_error(-20001,
'An error was encountered - ' || sqlcode ||
' -error- ' || sqlerrm);
end;user10305724 wrote:
I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
You should also look at the FAQ about how to ask a question
SQL and PL/SQL FAQ
Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
know the reason why decode is not working, I heard some where Case statement do not work with 8i.
Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
Select DECODE(1,
* (Select 1
from hsd_prov_contract R
where R.seq_prov_id = PM.seq_prov_id
and R.line_of_business = H.line_of_business
and R.PCP_FLAG = 'Y'
and R.participation_flag = 'P'
and SYSDATE between R.EFFECTIVE_DATE AND
NVL(R.TERM_DATE,
TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
'Y',
'N') PAR_FLAG,
>
exception
when others then
raise_application_error(-20001,
'An error was encountered - ' || sqlcode ||
' -error- ' || sqlerrm);
http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html -
Hi,
Could somebody tell me if i can embed a static function (ABAP) in an XSLT.
Thanks in advance
RachanaHi,
Thanks a lot and this should help me. But I'm not that well-versed in XSLT.
Hence,
I'm getting an xml namespace not defined error now.
my XSLT looks like this
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output indent="no"/>
<xsl:template match="TaskType">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<TASKTYPEDESIGN>
<SBTM_CR_TT_DESIGN>
<ORIGINAL_LANG>
<xsl:value-of select="../@origLang"/>
</ORIGINAL_LANG>
<sap:call-external class="CL_SBTM_XML_CONVERSION" method="GET_SYLANGU">
<sap:callvalue param="EXTERNAL" select="../@language"/>
<sap:callvariable param="INTERNAL" name="SY_LANG"/>
</sap:call-external>
</SBTM_CR_TT_DESIGN>
</TASKTYPEDESIGN>
</asx:values>
</asx:abap>
</xsl:template>
I tried to fit in that code there...but i guess this is not the way.
please help
Maybe you are looking for
-
I have the latest iOS and the latest version of iTunes for Windows. When I plug in my iPhone 4S, my computer "knows" it is there--the phone starts charging, the computer says "Hey, do you want me to do these default actions, none of which are iTunes
-
Ni 5122: Use of functions that manipulate attributes in NISCOPE
HI, all I would like to first thank Alan L for responding to my last message. It was helpful. I am currently using ni 5122 in sampling data sets and EACH set consists of 400 triggered records and each record contains 1024 points (So this 1024 X 400
-
Can I take screenshot of my ADF Mobile Screen or Send HTML email containing pics
I'm using Jdeveloper 11.1.2.4 with the latest Adf mobile extension in my mobile application I've an amx page that contains some data and i need to take printscreen of this page and save to the mobile or Send this page with the pictures appear on it a
-
I have a wifi connection but no internet for both of out Apple Tv's (3rd gen). We have internet connection on all computers in the house. I am on an iMac (2010 ventage). What could be the problem?
-
[Solved] No wireless connection after reboot.
I installed through a wireless connection. I installed inside of VirtualBox, and I installed wireless_tools, wpa_supplicant, and wpa_actiond dialog. So I had wireless internet on the live cd, but not after the install. Is there some driver that I am