Using EveryNCallback function with a C++ class (not VB)
Hello all,
I am trying to incorporate one of the ANSI C examples into my code which contains C++ classes. I receive errors because of having to declare the EveryNCallback and DoneCallback functions as static to keep their C function signature. This of course is not allowable when using these functions as members of a class. Could anyone help please?
Best,
Paolo
Firstly, thank you for the help. I have attempted to code the advice you gave but it still does not seem to compile properly. Can you suggest what is wrong with my code please?
Here is the code I am trying to configure:
forceDriver.h
static int32 CVICALLBACK static_callback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void* callbackData);
int32 EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples);
int32 DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData);
forceDriver.cpp
DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,2500,0,&forceDriver::static_callback,panel));
**START TASK**
int32 forceDriver::EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples)
panel->(member_function);
int32 CVICALLBACK forceDriver::static_callback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void* callbackData)
forceDriver* static_object = static_cast<forceDriver*>(callbackData);
return static_object->EveryNCallback(taskHandle, everyNsamplesEventType, nSamples);
where panel is the object I have created.
Similar Messages
-
Creating Report using EPM Functions with Dynamic Filters
Hi All,
I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
Would you please specify in detail step by step.
Thanks in Advance.
Siva NagarajuSiva,
These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
You can protect your report to not allow users to have that Edit Report enabled for them.
As Vadim rightly pointed out, start building some reports and then ask specific questions.
Hope it clears your doubts. -
How to use aggregate function with Date
Hi All,
I have a group of date from that is it possible to Max and Min of date.
I have tried like this but its errored out <?MIN (current-group()/CREATION_DATE)?>.
I have also tried like this but it doesnt works
<?xdoxslt:minimum(CREATION_DATE)?>
Is it possible to use aggregate function with date values.
Thanks & Regards
SrikkanthHi KAVI PRIYA,
if date is not in cannonical format, how can we change it in BI publisher, then how to calcualte minimum and as well as maximum.
please advise me,
Thanks,
Sri -
How can I use AGO function with aggregates
I use aggregated table and a detailed table
I have time hierarchy whose lowest level is date. For sales I
created year-to-year (YTD) comparision with AGO function. It
works OK.
BUT, I want to speed it up, so I used aggregates. I created new
time table grouped by MONTH and corresponding agg_SALES table. I
created connections and mapped the fields. It works OK for
normal queries, that means my queries at month level use
aggregates. BUT when I add YTD measures or YAGO measure in query, it goes to
then SALES table whose grain is date.
How can I force BI Server to use AGO function with aggregates?
I use OBIEE 10.1.3.4
Thank you
Ishaq
(Question originally taken from ITtoolbox and posted by Gorazd)
SORRY - THE QUESTION IS IN THE WRONG FORUM
Edited by: ishaq12 on Nov 19, 2008 12:21 PMHi,
you can not do it in Administration tool but you can set agregation for that field in Answers (fx->Agregation rule->Sum) and effect should be the same. Note that it may not work properly on Oracle 10g as generated SQL is not 100% recognized, on 11g everything is OK (at least in my case).
Regards,
Marko
Edited by: user10449532 on 2008.11.19 06:29 -
Using AGO function with partitions
I have a situation where we have logical sources with the same repository folder that are partitioned. We would like to use the AGO function but are getting the following error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22042] AGO function may not be used on '# Applied Invoices' because its source is horizontally partitioned. (HY000)
Has anyone had success using the AGO function with partitions? If not, do you have an alternate solution to the problem?AGO doesn't work with partitions - it's documented on metalink....there's an enhancement request , but that's it - no work-around provided....I'd suggest creating a common view for that particular report
-
Use private function with interface
I'm working with ActionScript 2 and wanted to use an
interface for one of my classes. However, the functions that it
would define should be private in the classes that implement the
interface. The problem is that I can't define private functions in
the interface, and if I leave off any scope in the interface
("function findAndSetInformation():Void;") and make it private in
the implementing class ("private function
findAndSetInformation():Void {...") I get the error: "The
implementation of the interface method doesn't match its
definition.WHATS UP ?? WHERE IS TEH MODERATOR ?!!!!
NO REPLY TELL NOW !!!!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yh:
hi,
how can i used REPLACE function with LOB database item????!!!1<HR></BLOCKQUOTE>
null -
Using modular functions with movieclips
hi guys, this morning i was looking a tutorial that shows how to make modular functions, the user only used numbers, i was wandering if there is a way to use this with movieclips or childs.
The example was:
function addNumber(num1:Number, num2:Number, num3:Number):void
trace(num1+num2*num3);
addNumber(3, 4, 7);
i tried using a movieclip called cuadro and triying to move on the x axis, but it didnt work out:
function mObj(obj1:MovieClip, num1:Number):void
obj1.x = num1;
addNumber(cuadro, 50);
any sugestion?
thnks in advanceoh sorry my bad, i was trying another stuff
i know that the last line must say
mObj(cuadro, 50);
what im trying to do is use the function with some objects in the stage, and for example when i press the first button, it will write mObj(cuadro1, 50) , button2 mObj(cuadro2, 80), so i can use the same function for diferents objects -
Using Multiple Functions with in members selection of Hyperion Financial St
Hello everyone, I am trying to retrieve all the level 0 entity members from a specific Level 3 entity member. Can I use multiple Functions with in Report studio to do this?? Or is creating an alt hierarcy my only option?
ThanksYou can try doing System Defined member list Lev 0 AND Descendants of Lv 3 member
JTS -
Want to use credit card with firefox but do not see a lock with firefox 5 on linux using priceline
want to use credit card with firefox but do not see a lock with firefox 5 on linux using priceline
Type '''about:preferences#applications'''<enter> in the address bar.
Now follow the picture. -
How to use TRUNC function with dates in Expression Builder in OBIEE.
Hi There,
How to use TRUNC function with dates in Expression Builder in OBIEE.
TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
Thanks in advanceuse this instead:
TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE) -
How to use INVOKE function with INT parameter types
Can you tell me how to use invoke function with int parameter type ?
Pass the int as an Integer.
-
I have a remote procedure and I can call it using http over rpc. I pass trough an rpc proxy server for arriving to my rpc server.
But I cannot call a callback function to my client inside the server function.
Is it possible using callback function with ncacn_http and rpcproxy server ?
We are using IIS on windows server 2008 R2 and the server rpc and the client on the same PC with rpc rpoxy.
If I use ncan_ip_tcp all works fine.
Thanks
GianlucaHi,
About the develop question please post to the MSDN forum.
MSDN forum Developer Network
http://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesVirtualNetwork&filter=alltypes&sort=lastpostdesc
Thanks for your understanding and support.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Using the earbuds with clicker I'm not able to advance my music
using the earbuds with clicker I'm not able to advance my music
The Compatibility section here shows it's only compatible with the 6th generation iPod classic (2009): http://store.apple.com/us/product/MD827LL/A/apple-earpods-with-remote-and-mic
-
Can I get iCloud if I use a MacBookPro with Intel Core Duo (not Core 2)? I can't upgrade from 10.6.8 to 10.7 without a Core 2.
Lion (10.7.x) needs Core2Duo.
-
Hi friends,
I have 2 screen fields EQUNR & EQKTX.i have attached custom help to EQUNR.when i select value from f4 help then i want corresponding value from search help should get populated in the EQKTX field.
I have used F4IF_FIELD_VALUE_REQUEST function module.but i am not getting the result.
DATA: lt_return_tab TYPE TABLE OF ddshretval.
DATA: lw_return_tab TYPE ddshretval.
DATA: lv_equnr LIKE eqkt-equnr,
lv_eqktx LIKE eqkt-eqktx.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'EQKT'
fieldname = 'EQUNR'
searchhelp = 'Z_EQKT'
SHLPPARAM = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'GW_SCREEN-WPTXT'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = 'X'
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
return_tab = lt_return_tab
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
IF sy-subrc = 0.
READ TABLE lt_return_tab INTO lw_return_tab INDEX 1.
IF sy-subrc = 0.
MOVE lw_return_tab-fieldval TO lv_equnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lw_return_tab-fieldval
IMPORTING
output = lv_equnr.
SELECT SINGLE eqktx
INTO lv_eqktx
FROM eqkt
WHERE equnr = lv_equnr AND
spras = sy-langu.
IF sy-subrc = 0.
gw_screen-wptxt = lv_eqktx.
gw_screen-equnr = lv_equnr.
ENDIF.
ENDIF.
ENDIF.
Please provide the solution.I have written the same code as you said but still its not giving me the equnr value.
DATA : lt_dynpread1 TYPE STANDARD TABLE OF dynpread,
lt_dynpread11 TYPE STANDARD TABLE OF dynpread,
lw_dynpread1 LIKE LINE OF lt_dynpread1,
lw_dynpread11 LIKE LINE OF lt_dynpread11,
lt_return_tab1 TYPE TABLE OF ddshretval,
lw_return_tab1 TYPE ddshretval,
lv_equnr1 LIKE eqkt-equnr,
lv_eqktx1 LIKE eqkt-eqktx,
lt_eqkt TYPE STANDARD TABLE OF eqkt,
li_dselc TYPE STANDARD TABLE OF dselc,
lwa_dselc TYPE dselc.
TYPES: BEGIN OF lty_eqkt,
equnr TYPE eqkt-equnr,
eqktx TYPE eqkt-eqktx,
END OF lty_eqkt.
DATA: lt_eqkt TYPE TABLE OF lty_eqkt,
li_dynpread TYPE STANDARD TABLE OF dynpread,
lwa_dynpread TYPE dynpread.
DATA:
lg_condition TYPE string.
TYPES: BEGIN OF lty_eqktx,
sign(1) TYPE c,
option(2) TYPE c,
low TYPE eqkt-eqktx,
high TYPE eqkt-eqktx,
END OF lty_eqktx.
DATA: lt_eqktx TYPE STANDARD TABLE OF lty_eqktx.
DATA:lw_eqktx TYPE lty_eqktx.
lwa_dynpread-fieldname = 'GW_SCREEN-WPTXT'.
APPEND lwa_dynpread TO li_dynpread.
CLEAR lwa_dynpread.
Read Screen Field Values.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = li_dynpread.
Read the first record as only one record will be present
READ TABLE li_dynpread INTO lwa_dynpread INDEX 1.
gw_screen-wptxt = lwa_dynpread-fieldvalue.
CLEAR lw_eqktx.
lw_eqktx-sign = 'I'.
lw_eqktx-option = 'CP'.
lw_eqktx-low = gw_screen-wptxt.
APPEND lw_eqktx TO lt_eqktx.
CLEAR lw_eqktx.
IF gw_screen-wptxt IS INITIAL.
SELECT equnr eqktx
INTO TABLE lt_eqkt
FROM eqkt.
ELSE.
MOVE 'EQKTX CP GW_SCREEN-WPTXT' TO lg_condition.
*lg_condition = GW_SCREEN-WPTXT.
SELECT equnr eqktx
INTO TABLE lt_eqkt
FROM eqkt
WHERE eqktx IN lt_eqktx.
ENDIF.
lwa_dselc-fldname = 'F0002'.
lwa_dselc-dyfldname = 'GW_SCREEN-WPTXT'.
APPEND lwa_dselc TO li_dselc.
CLEAR lwa_dselc.
lwa_dselc-fldname = 'F0003'.
lwa_dselc-dyfldname = 'GW_SCREEN-EQUNR'.
APPEND lwa_dselc TO li_dselc.
CLEAR lwa_dselc.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'GW_SCREEN-WPTXT'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'GW_SCREEN-WPTXT'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = lt_eqkt
FIELD_TAB =
return_tab = lt_return_tab1
dynpfld_mapping = li_dselc
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3
Maybe you are looking for
-
I'm trying to have existing Exchange accounts setup on my new iMac and can't get it to work.
I have existing Exchange accounts setup on my iPhone and iPad to access my work email. I'm trying to do the same on my new iMac and can't get it to work. I have it setup the same as my iPad and it asks me for my password over and over...any suggest
-
2011 17" MacBook Pro freezes for over 5 mins on user password
Hey everyone, I installed Yosemite on my 2011 17" MacBook Pro. Since then, after a period of my computer being on or after sleep, it appears that the process that handles login using my user password hangs for a bit and then proceeds to work. On the
-
How to convert sRGB images to CMYK retaining icc profiles?
I was given the follwoing info. but not sure it answers fully - it still doesn't resolve the problem of converting to CMYK with the icc profile. I think this might be an option if the profile is loaded into the colour setting (colour settings under e
-
CC 2014.1.1 Build 6982 buggy as f***
WTH Adobe! Build # 6982 is worse than garbage - I can't get work done like this! Thanks for the buggy *** update! Event the most mundane of tasks (insert an image????) causes wide-spread chaos! Things that have worked for years are broken! WTH? You u
-
Help! Screen brightness won't adjust =(
I have windows 7. Screen brightness won't adjust. Tried adjusting it with Fn, the battery settings, and the mobility center. The slider bar adjusts on the settings and mobility center, but once I close the window and reopen it, the bar is always at t