Help me :calling c dll for get cluster data

I have read the .d7d data files with the DWDataReaderLib.dll in labview,i can get the data and time_stamp through allocate memory (data and time_stamp) then call DWGetScaledSamples ,but when i want to allocate the DWChannel structures then call DWGetChannelList to get channel list properties,it will fail .In fact,now i don't konw how to get channel list .In my program,i have allocate the DWChannel structures ,but it doesn't export the data ,and when i wire the array of channel list,the labview will destroy.thanks
Attachments:
read DWdata.zip ‏870 KB

duplicated post: http://forums.ni.com/t5/LabVIEW/Help-me-Calling-C-dll-to-get-cluster-data/td-p/1556722

Similar Messages

  • Help me:Calling C dll to get cluster data

    I have read the .d7d data files with the DWDataReaderLib.dll in labview,i can get the data and time_stamp through allocate memory (data and time_stamp)  then call DWGetScaledSamples ,but when i want to allocate the DWChannel structures then call DWGetC​hannelList to get channel list properties,it will fail .In fact,now i don't konw how to get channel list .In my program,i have allocate the DWChannel structures ,but it doesn't export the data ,and when i wire the array of channel list,the labview will destroy.thanks
    Attachments:
    read DWdata.zip ‏870 KB

    You can't do this in the way as in your example. Your DWEvent and DWChannel structures both contain fixed sized string elements. This means they are inlined in the structure. The only way in LabVIEW to create a compatible structure is to create an embedded cluster with the according number of byte elements. So your DWEvent cluster should be really a LabVIEW cluster which contains  an int32 event_type, a 64bit float, and then another cluster containing 200 unsigned 8bit integers. The same rule will accordingly apply to DWChannels.
    On return you can then use ClusterToArray and then ByteArrayToString to convert these bytes into a string. You should clip the array to the first 0 byte before converting to a string, otherwise you will always get strings that contain 200 characters, with random characters after the first 0 byte character in the returned data.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Call a dll for Labview: Function not found in library

    Hello,
    I am trying to call a very simple .dll form Labview. I compiled the .dll for x64 using Visual Studio 2010, because I am using Labview(64-bit). I did everything exactly the way I read it in several Tutorials. But the "Call Library Function Node" doesn't create a popup menu with the avalible functions like it is supposed to do. The Import Wizard doesn't find any functions neither. What is wrong with my .dll?
    I added a block marked 'extern "C" ' into my source file, but it still won't work.
    Thanks
    Matthias
    Solved!
    Go to Solution.
    Attachments:
    DynamicLibrary.zip ‏2452 KB

    You need to define an entry point to the DLL
    BOOL APIENTRY DllMain( HANDLE hModule,
                            DWORD  ul_reason_for_call,
                            LPVOID lpReserved )
        return TRUE;
    Also add extern "C" __declspec(dllexport) to your functions
    More details here: http://www.ni.com/white-paper/3056/en
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Need help on Call record software for Curve 3G 9300

    Please help me find application to record calls for my Curve 3G 9300.

    Hi pxajb002,
    Welcome to the BlackBerry family!
    When integrating an email account into BlackBerry Internet Service, old emails are not sent to your BlackBerry, only emails from the point you integrated, onward.
    Hope this answers your question!
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to call VC++ dll whiich return char[] data type value in powerbuilder

    Hi Everyone,
    I am using PowerBuilder 11.1 build 8123.
    I am calling VC++ DLL in our PowerBuilder application which return char[] data type value.
    I just declare Global External Function:-
         Function  char getOSSectionName() library "DocServClient.dll" alias for "getOSSectionName;Ansi"
    And then call this function in window as:-
         Char      ls_section[1] = 'DOCAPPLICATIONS9X'
         ls_section[1]=getOSSectionName()
    When I check ls_section[1] value in messagebox it display a symbol (please check attached attached image.)
    VC++ function and return variable declaration:-
         __declspec(dllexport) char *  __stdcall getOSSectionName()
           char    SectionName[_MAX_PATH];
    Please let me know that my code is valid or not.
    Please help..

    Hi,
    Thanks to Everyone for your suggestions.
    I am solved my problem to change VC++ function as :-
         Int __declspec(dllexport)  __stdcall getOSSectionName(char* SectionName)
                        instead of
         __declspec(dllexport) char *  __stdcall getOSSectionName()
    and declare global function as:-
           Function int getOSSectionName(Ref char ls_section[100]) library "DocServClient.dll" alias for "getOSSectionName;Ansi"
    and call function in window as:-
         int li_ret
         char ls_section[100]
         string ls_sec
         li_ret=getOSSectionName(REF ls_section)
         ls_sec=ls_section
    Thanks,
    Vikrant

  • Table for getting pricing data in sales order

    Dear experts
    how to get red mark field data for an ZREPORT in KONV i am unable to get this data
    Regards
    Abhi

    Hi
    yes i checked by step no. but step of this value in not available in KONV
    like ZDCM is on 125 step value available and JASS is on 170 value is available but
    NET EX MILL PRICE is on 160 and this 160 step is not available.
    Regards
    Abhi

  • Function Module for getting J1IEX Data

    Dear All,
    Is there any F.M available for getting details whatever is posted in  J1IEX, like ED, Ecess, HEcess etc.
    regards,
    paras
    Point Assured.

    Hi,
    I'm not sure what you mean with 'textmodule' but try with function module READ_TEXT.
    Regards,
    Eduardo

  • Query for getting Workcenter data

    Dear Professionals,
    I got an issue where user needs the data from the work center. So i made a query joining the table CRHD, CRCO, CRCA & CRTX here for all the Tables OBJID & OBJTY is available, but the query results in "no data found". Am i doing some mistake else is there any other way i could get the data.
    Thanks in advance
    Regards
    Prashant.Pillai

    Hi there,
    try the following:
    1. link CRHD- CRCO with left outer join - do You have the data in both table? if yes
    2. change CRHD-CRCO to inner join and add CRCA with left outer join - do You have the data?
    (No need the text tabe You can find it in add fields in query)
    Br

  • Urgent help needed in configuring X1151A for RAC cluster

    for RAC requirements I have to configure this card to use the interface name of ce1 but I have tried changing slots and puting /etc/hostname.ce1 file out there but it fails .. it always comes up as ce0.
    my question is : How can I cofigure this card to come up as ce1 ? in the other box I had to do nothing .. i just placed the /etc/hostname.ce1 file with hostname and it works perfect.
    can you please email me a copy of your response at [email protected] ?
    thanks
    Sami

    Look for "ce" instances in the /etc/path_to_inst file. You'll need to change the lines so that the hardware path you want is "1".
    Keep a backup and write down the pathname. You can give that path to a 'boot -a' prompt if anything bad happens.
    Darren

  • Query for Getting previous date in oracle in specifc scenario

    I have the below data in a table A which i need to insert into table B along with one compute column.
    TABLE A:
    Account_No | Balance | As_on_date
    1001 |-100 | 1-Jan-2013
    1001 |-150 | 2-Jan-2013
    1001 | 200 | 3-Jan-2013
    1001 |-250 | 4-Jan-2013
    1001 |-300 | 5-Jan-2013
    1001 |-310 | 6-Jan-2013
    Table B:
    In table B,there should be no of days to be shown when balance is negative and the date one which it has gone into negative.
    So,for 6-Jan-2013,this table should show below data:
    Account_No | Balance | As_on_date | Days_passed | Start_date
    1001 | -310 | 6-Jan-2013 | 3 | 4-Jan-2013
    Here,no of days should be the days when the balance has gone negative in recent time and not from the old entry.
    I need to write a sql query to get the no of days passed and the start date from when the balance has gone negative.
    I tried to formulate a query using Lag analytical function,but i am not getting how should i check the first instance of negative balance by traversing back using LAG function. Even the first_value function was given a try but not getting how to partition in it based on negative value.
    Any help or direction on this will be really helpful.
    Thanks

    I think you can apply the Tabibitoshan method here. The query is more complex but performs better than other methods. For an explanation, see Tabibitosan method tutorial by Aketi Jyuuzou
    The idea behind the method is to identify "continuous" records without gaps. Here I identify records that are "continuous" because they contain an uninterrupted series of negative balances.
    drop table t;
    CREATE TABLE t (Account_No , Balance , As_on_date) AS SELECT
    1001 ,-100 , to_date('1-Jan-13', 'DD-MON-YY') FROM dual UNION ALL SELECT
    1001 ,-150 , to_date('2-Jan-13', 'DD-MON-YY') FROM dual UNION ALL SELECT
    1001 , 200 , to_date('3-Jan-13', 'DD-MON-YY') FROM dual UNION ALL SELECT
    1001 ,-250 , to_date('4-Jan-13', 'DD-MON-YY') FROM dual UNION ALL SELECT
    1001 ,-300 , to_date('5-Jan-13', 'DD-MON-YY') FROM dual UNION ALL SELECT
    1001 ,-310 , to_date('6-Jan-13', 'DD-MON-YY') FROM dual;
    SELECT Account_No, Balance, to_char(As_on_date, 'DD-MON-YYYY') as_on_date,
    CASE
      WHEN balance < 0
      THEN row_number() OVER(PARTITION BY account_no, grp ORDER BY as_on_date)
    END days_passed,
    CASE
      WHEN balance < 0
      THEN to_char(
        first_value(as_on_date) OVER(PARTITION BY account_no, grp ORDER BY as_on_date),
        'DD-MON-YYYY'
    end start_date
    from (
      SELECT Account_No, Balance, As_on_date,
      CASE WHEN balance >= 0 THEN NULL ELSE
        row_number() OVER(PARTITION BY account_no ORDER BY as_on_date) -
        sum(CASE WHEN balance < 0 THEN 1 ELSE 0 END) OVER(PARTITION BY account_no ORDER BY as_on_date)
      end grp
      FROM t
    order by account_no, As_on_date;
    ACCOUNT_NO
    BALANCE
    AS_ON_DATE
    DAYS_PASSED
    START_DATE
    1001
    -100
    01-JAN-2013
    1
    01-JAN-2013
    1001
    -150
    02-JAN-2013
    2
    01-JAN-2013
    1001
    200
    03-JAN-2013
    1001
    -250
    04-JAN-2013
    1
    04-JAN-2013
    1001
    -300
    05-JAN-2013
    2
    04-JAN-2013
    1001
    -310
    06-JAN-2013
    3
    04-JAN-2013

  • MS Project 2007 - Help with custom field calculation for grouped by dates view

    Hello 
    I am trying to creat a view that counts number of students in courses (while # Students is a custom field that is filled manually and courses are tasks).
    The view should be grouped by Quarters, Months, and weeks (Calculated custom Text fields)
    The weeks groups are displayed by the start day of each week.
    For example:
    The view counts how many students are in courses in a specific week/month/quarter.
    This is the group by definition:
    Those are the fields calculations:
    “WW_Start” field calculation:
    (Year([Start]) & "  W " & Format([Start],"WW") & " " & "   [" & Datevalue(ProjDateSub([Start],CStr(Weekday([Start])-1),"Standard")) & "]")
    “MM” field calculation:
    Year([Start]) & "  M " & Format([Start],"MM")
    Basically it works but it doesn't cover a situation where a course is more then a week.  
    Lets say that the duration of the task is 12 days, the task should appear on 3 different weeks groups.
    But what i did puts the tasks only in the group that shows the first week of the task.
    How can i change my calculations or my view so that in the second, and third week of the task it will also show the task and it's attributes.
    For example:
     - "UV5 ACM" task should also be in W 45 not just W 44.
    Anyone has an idea how to do that?
    Ofir Marco , MCTS P.Z. Projects

    Hi
    First, thanks for the comment "nice neat groups" :)
    I think you understood correctly what is my issue.
    Second, about your question:  the class have the same number of students during the course period.
    It will have 10 students even if the duration is 1 day or 10 days.
    if you look at the basic gantt chart you will see a row like this:
    Task name        Duration        Num_Students     Resource names (Instructors)
    Course YYY       10d                10                       
    Instructor X
    it is an attribute on the task, not the assiment.
    When i group by dates (Weeks, months, quarters) or by another field (can be course type for example) i the students are summed in the task summary level for all tasks.
    Lets say i group by all the tasks (Classes) that are in the 1st quarter, and lets say for the example that there are 3:
    Task 1 -->  5 students
    Task 2 --> 10 students
    Task 3 --> 7 students
    Then, the group by summary should count:
    Quarter 1 - 2014:   22 (students)
    Task 1 --> 5
    Task 2 --> 10
    Task 3 --> 7
    By the way, it doesn't matter if the version is project 2007,2010, 2013, the logic is the same.
    Hope it helps and i'll be glad to have some ideas or evan get examples for solution in a project file by e-mail.
    Ofir Marco , MCTS P.Z. Projects

  • How Can we get the data from Non-SAP to SAP in WebDynpro

    Hi,
    I hope u understand my query, How can we get the data from Non-SAP to SAP thru WebDynpro Programming.
    Help out with the steps for getting the data or procedure.
    Regards,
    Mutyapu

    You can expose the APIs in the Non-SAP backend as Web Services, and consume them in SAP by creating an Enterprise Proxy. Then these can be called just like normal class methods from Web Dynpro.
    Regards,
    Nithya

  • Need U2ltdate.dll for Cyrstal Reports for Enterprise on 64 Bit systems

    I am working through migrating older reports from a very outdated version of Crystal into a newer version and trialing Crystal Server 2013 with Crystal Reports for Enterprise.  The only problem I am running into is that I have added the u2ltdate.dll to the correct folder inside of windows/system32 and in the program files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/win32_x86 and the win64_x64 as well just to be sure but I am still getting the following error in crystal reports: "UFL 'u2ltdate.dll' that implements this function is missing."  Does anyone know what I am missing or if I need a different dll for 64 bit?  Thanks!

    hi Warren,
    you may wish to look into replacing the formula code that calls this dll with built in date functions instead. please see your online help for more info on Date() functionality.
    also, please see this post from Don Williams on using this dll in a 64 bit program. it deals with a 64 bit vs app but I am assuming that the necessity to recompile to 64 bit would be the same when trying to utilize the dll in 64 bit enterprise.
    in this post Don also mentions that the source code is no longer available for the .dll and in that case you'd need to look at switching the formula syntax from referencing the dll to using built in functions.
    -jamie

  • How to build a dll for labview pda, which uses the intel ipp primitives in it

    Hi all,
    For my application, I need to call a c dll from Labview PDA, and in the c function i need to use intel IPP function. When i call my dll, i get an error saying the ippfunction i use, say "ippsCopy_16s missing c or vi file". Can someone tell  me what I might be doing wrong?

    Hi Vani,
    When using a DLL in a PDA there are some special considerations you have to take. Please take a look at the following knowledgebase describing the process.
    Eli S.
    National Instruments
    Applications Engineer

  • How to get the date n time for log in ODI

    Hi,
    I wanna ask, what is the syntax for getting the date n time when i specify the location of log for Interface. Thanks.

    I quite do not get what you are trying to achieve here.
    - In a mapping, use the DBMS engine sysdate command.
    - In a variable, you can refresh the variable value using a "select sysdate from dual" type of query.
    - You can also use the appropriate odiref substitution method to get a date. For example:
    Current year is: :<%=odiRef.getSysDate("y")%>
    Hope this helps.
    -FX

Maybe you are looking for

  • Ajust the date and time on a LCD 46TL938

    I intend to learn how to ajust the date and time on a LCD 46TL938 (it shows the time&date when I push I+)

  • Any way to convert a file from Movie playlist to TV show playlist?

    Hi, I just uploaded a few tv shows from my computer to itunes, but unfortunately, the tv show i uploaded went to the Movies playlist. I cannot drag the file over to tv show no matter how hard i try. It stays on Movies. Is there any way to change this

  • Not able to open Mac mini with regular users?

    I should never work when I am tired. Using my MBPro to administer Lion Server 10.7.5 on my Mac Mini, I changed the settings from using the server as a .local to a registered **.com.  Now at the Mac Mini I am unable to log in with any of the normal us

  • Looking for a 488.2 device driver for LynxOS.

    Hi, I am working on a NI6781 controller with integrated GPIB (IEEE 488.2) Device (PCI-GPIB, pci-Device Id:c801). The operating system is LynxOS 4.0. Is there a device driver available for the IEEE 488.2 device for LynxOS? Thanks Harald

  • Converting MP3-AAC and condensing iTunes library

    Picked up an iPad 64GB 3G and decided to put my whole iTunes 40GB library on the device . This has caused me to rethink my bit rates to save some room. I tested MP3 vs. AAC sound quality, I'm a professional musician, and the quality difference was ba