How do i make a array of user defined structure and creat a pointer for the same

Function
The prototype of the dll function is
unsigned long PassThruIoctl(unsigned long A, unsigned long B, void *pvar1, void *pvar2);
"void *pvar1" and "void *pvar2" are pointers to different Structures. The value of  "unsigned long B" will determine what kind of Structure the pointer will represent.
One sample structure is given below when pvar1 is the pointer to SCONFIG_LIST.
typedef struct
      unsigned long ParameterID;    // this an input to the dll
      unsigned long Value;          // this is an output from dll
} SCONFIG;
typedef struct
      unsigned long NumOfParams;    // the no. of elements(SCONFIG) in array
(input)
      SCONFIG *ConfigPtr;           // the pointer to array of SCONFIG
(input)
} SCONFIG_LIST;
The function is supposed to get the values of configuration parameters (from an external interfacing device).
When I tried to run the function as shown in the attached VI, I always end up with error. The error I get is saying something about DLL corrupting the memory of Lab View.
Solved!
Go to Solution.

What will be the structure for pVar2?
One issue that I can see in you code is, for pvar1 instead of passing an array of clusters, you are passing a cluster of SCONFIG. Also you need to initialize the numbr of elements in the array before passing it to the DLL (see attached code). In this I have assumed that pVar2 is also expecting a similar input.
I was not able to run the code here becasue the dll is not there. So please try and let me know.
"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
Attachments:
GETCONFIG_2.vi ‏9 KB

Similar Messages

  • How to cancle the previous apple ID and creat another one for the same ipad mini

    Please advise how to cancle the previous apple ID and creat another one for the same ipad mini.
    Thank you.

    You can log out of an account (you can't 'cancel' an account) by tapping on it in Settings > iTunes & App Store - any content that you downloaded with that account will remain tied to that account. You can then create a new account via the Create New Apple ID button on that screen. If you don't want to give credit card details then follow the instructions on this page when creating the new account : http://support.apple.com/kb/HT2534

  • How can 1 make an object of user defined class immutable?

    Hi All,
    How can one make an object of user defined class immutable?
    Whats the implementation logic with strings as immutable?
    Regards,

    Hi All,
    How can one make an object of user defined class
    immutable?The simple answer is you can't. That is, you can't make the object itself immutable, but what you can do is make a wrapper so that the client never sees the object to begin with.
    A classic example of a mutable class:
    class MutableX {
        private String name = "None";
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    }I don't think it's possible to make this immutable, but you can create a wrapper that is:
    class ImmutableX {
        private final MutableX wrappedInstance;
        public ImmutableX (String name) {
            wrappedInstance = new MutableX();
            wrappedInstance.setName(name);
        public String getName() {
            return wrappedInstance.getName();
        // Don't give them a way to set the name and never expose wrappedInstance.
    }Of course, if you're asking how you can make your own class immutable then the simple answer is to not make any public or protected methods that can mutate it and don't expose any mutable members.
    Whats the implementation logic with strings as
    immutable?
    Regards,I don't understand the question.

  • My iTunes library is on an external hard drive; how do I set it so other users (accounts) on my imac, will also have the same library, with the same playlists

    my iTunes library is on an external hard drive; how do I set it so other users (accounts) on my imac, will also have the same library, with the same playlists

    Quit iTunes.
    Sign into another user account.
    Hold Option, launch iTunes.
    Select Choose library... and select the iTunes folder on the external.
    Do this for all users.
    NOTE: You must quit iTunes when switching users as the library can only be opened by one user at a time.

  • ITune has created several folders for the same album title.  How do I consolidate those folders into 1?

    iTune has created several folders for the same album title.  How do I consolidate those folders into 1 without consolidating all albums?

    I don't think you want to combine all of the HTML into one file. That doesn't make too much senese. If you wanted to, then just copy everything from all 3 files between <body></body> and paste into one html file between <body></body>. I think what you're trying to do is create seperate static pages. I would read/youtube how to setup a blogger website. This website also might help you out - http://www.wikihow.com/Add-a-Page-to-Blogger. This video will show to how to create a navigation - http://www.youtube.com/watch?v=8KD3vF8ofgw

  • TS1424 I purchased an album from the itune store and was charged twice for the same album. How can I correct this?

    I purchased an album from the itune store and was charged twice for the same album. How can I correct this?

    You can contact iTunes support and ask them to refund or credit you for the second charge : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hi i have recently bought iphone 5s and created apple id on the same day. But i didnt used the apple ID for 20 days. While trying download the apps my Apple ID was Inactive. Please tell me how to active my Apple ID

    Hi i have recently bought iphone 5s and created apple id on the same day. But i didnt used the apple ID for 20 days. While trying download the apps my Apple ID was Inactive. Please tell me how to active my Apple ID.

    Hi,
    Try to connect you on Apple.com on your computer,
    and if it doesn't work, it will tell you.
    Thanks

  • How can I delete my apple id and create another one with the same email?

    How can I delete my apple id and create another one with the same email?

    So sorry; somehow I forgot to provide the link.   Here it is ...
    Frequently asked questions about Apple ID
    Again, my apologies.

  • How do u et credit on my account? I was billed 4 times for the same movie on iTunes

    4/23/2013     APL*APPLE ITUNES STORE 866-712-7753 CAUS Tran Date/Time: 04/23/2013 07:30:39     16.04     
    4/23/2013     APL*APPLE ITUNES STORE 866-712-7753 CAUS Tran Date/Time: 04/23/2013 06:11:12     16.04     
    4/23/2013     APL*APPLE ITUNES STORE 866-712-7753 CAUS Tran Date/Time: 04/23/2013 06:09:35     16.04     
    4/23/2013     APL*APPLE ITUNES STORE 866-712-7753 CAUS Tran Date/Time: 04/23/2013 06:09:30     16.04     
    I'm being billed for the same thing on iTunes numerous times... How can I get reimbursed for this?

    Please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users. Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • How do i output multiple arrays from a case structure to create one larger array

    I currently have a vi that has one hardware input that i needed to take a measurement then be moved and take a similar measurement at a different point.  To accomplish this i used a while loop inside a case structure.  The while loop takes the measurement  and finds the numbers i need while the case structure is changed per the new measurement location.  I want to take the data points i have created in each case and output them into a single table.  I assumed to do this the best way would be to get the data from each case into its own built array and build a larger array but I cant get the information out of the case structure so that it all inputs at different places.
    thanks for your help
    Attachments:
    Array.vi ‏30 KB

    Hi Ross,
    attached you will find a solution for your table building problem.
    I would suggest thinking about program design - having the same case content in several cases doesn't make sense. I also would not want my user to press several stop buttons depending on choosen measurement...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Array.vi ‏45 KB

  • How can I make iMessage work on 2 iPhones with 2 different phone numbers using the same Apple ID?

    My work requires me to split time between two countries (Ph and Bn). I had an iPhone 4 with a Ph number and a Nokia for the Bn number. iMessage was running on the iPhone 4 with the Ph number and my apple ID. I recently replaced the Nokia with an iPhone 5 which I set up using the iCloud back up of my iPhone 4. I cant seem to set up iMessage (and Facetime) the way I want it to work on the iPhone 5. Im not sure if iOS 6 would allow me to do this so I'm throwing this out to the forums to check if its possible.
    iPhone 4 w/ iOS 6
    - uses Ph sim card
    - Ph number set in Phone>My Number
    - iMessage>Send & Receive has the following data
    Ph Number - greyed outand checked
    Apple User ID - checked
    iPhone 5 w/ iOS 6
    - uses Bn sim card
    - Bn number set in Phone>My Number
    - iMessage>Send & Receive has the following data
    Ph number greyed out and not checked
    Same Ph number checked
    Apple User ID checked
    Ive tried turning on/off my iPhone 5 and logging on and off iMessage but I cant seem to get it to update the iMessage phone number to the Bn number. Any idea how I can do this?

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • How do I get internet on both my Mac Pro and my macbook pro at the same time?

    Both are running 10.6.8 operating systems.
    There is one ethernet jack in my office. The mac pro does not have a wireless card.
    I want to use internet on my macbook pro from the mac pro. I'm thinking internet sharing through ethernet cord (ethernet cord from wall to mac pro, then second ethernet cord from mac pro to macbook pro), or via firewire. Both methods tell me on my macbook pro that I am connected to the internet but when I try to use the internet it fails.
    Is this an ip address problem? how do I change that?
    suggestions? maybe there is a better way to do this?
    Thanks!!

    Get a router.
    A Apple Airport Extreme router is easy to setup and has extra ports on the back for Ethernet to the MacPro.
    This way you'll have Wifi and can take the MacBook Pro anyplace in range and use it, instead of burning up that Firewire port and being on a leash.
    You could be having IPv6 issues with the MacBookPro if it's on a later version of OS X.
    Look under your network > Advanced TCIP and turn off IPv6, reboot.

  • I have created two accounts for the same purpose and now I want to mix them without loosing anything. How do I do that?

    Hi,
    I have an Iphone and an Ipad with one email. There I have downloaded 3 ebooks.
    Yesterday, I created an account at ID Adobe with another email. I have downloaded an ebook. I tried to downloading the other ebooks (I already have in the other devices), but was not able due to the a message related to license. I believe the different emails account is the reason. Please help me out. I thought that just my universities ID would be enough, but it is not.
    How can I fix this problem without loosing any downloads?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • Create a user defined table and creating bussiness entities

    Hi
    I am trying to create a bussiness entity which is mapped to table SAMPLE(NAME,Value)
    I created metadata in UI
    1) I created a _Impl.java
    * @BusinessEntity
    * (tableName = SAMPLE)
    public class Sample_Impl
    extends Sample_Gen{
    2)XXXXCodeDescriptionQuery.java
    * @EntityCodeDescriptionQuery
    * (entity = sample, programName=Sample)
    * @author One time generator
    * @version $Revision: #1 $
    public class SampleCodeDescriptionQuery
    extends EntityCodeDescriptionQuery {
    3)/**
    @EntityListPageMaintenance ( service = CILTSAMP, modules={foundation}, entity = sample, program = SampleListMaintenance,
    body = @DataElement (contents = { @FieldGroup (name = SRCH-CRITERIA,
    contents = { @DataField (name = NAME)})
    , @DataField (name = NAME)
    , @ListField (name = NAME)}),
    lists = { @List (name = NAME, size = 50, *program* = SampleListMaintenance, 
    body = @DataElement (contents = { @RowField (includeRCopybook = false, entity = sample)}),
    headerFields = { "NAME"})})
    public class SampleListMaintenance
    extends SampleListMaintenance_Gen{
    and when I run the AG i am getting the error
    2011-02-02 15:28:47,160 [main] ERROR (sourceparser.service.EntityCodeDescriptionProcessor) No such description property description on entity sample in entity code and description query com.splwg.base.domain.common.sample.SampleCodeDescriptionQuery
    Am I doing wrong?
    What more I need to do?
    what is the program = SampleListMaintenance? what should this map to in SampleListMaintenance.java?
    what is the programName=_Sample_? what should this map to in SampleCodeDescriptionQuery.java? when I remove this program or programName I am getting error that they are required

    Hi ,
    The problem is fixed, the link mentioned below might be use full for doing this.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T457083.htm
    regards
    Srikkanth

  • Imp: new session for the same user if  idle for 4 mins. or else throw error

    Dear All,
    I have a requirement where for security reasons if a session remains idle for 4 mins. or more, it should redirect to login page. This is easy as there is a feature in apex itself under security in application properties. This works fine.
    But I also don't want the users to start two active parallel sessions for the same user, and allow user to login only if the session for the user is idle for 4mins. or more or else display error message that the user has already logged.
    A second in sequence, on submit process for this in page 101 when login button is hit is written for this. It is as follows:
    declare
    found boolean := false;
    begin
    for x in (SELECT a.apex_user from apex_workspace_activity_log a,apex_workspace_sessions b, (SELECT max(view_date) as maxdate FROM apex_workspace_activity_log where upper(apex_user)=upper(:P101_USERNAME) and APPLICATION_ID=120) maxresults, (SELECT max(session_created) as maxcreate FROM apex_workspace_sessions where upper(user_name)=upper(:P101_USERNAME)) maxsession where b.session_created=maxsession.maxcreate AND b.APEX_SESSION_ID!=:SESSION and upper(b.user_name)=upper(:P101_USERNAME) and b.APEX_SESSION_ID=a.APEX_SESSION_ID and a.seconds_ago<240 AND a.APPLICATION_ID=120 and a.view_date=maxresults.maxdate and rownum=1) loop
    found:=true;
    raise_application_error(-20000, 'Already Logged.');
    exit;
    end loop;
    IF not found THEN
    null;
    END IF;
    end;
    But for some this reason this does not work as intended. Two users can login parallely.
    When I trace the program, I see that it should catch the parallel user login. But it does not.
    Is it some db cache issue? I don't know.
    Kindly let me know how to fix this. It is crucial for us to achieve this.
    Thanking in advance.
    Regards,
    Deepika.

    Dear Fateh,
    Thanks for the reply.
    The features of this plugin are:
    Configurable timeout actions including alert, redirect, and logout
    Optional and configurable warning message
    Option to keep session alive if user isn’t truly idle. Special thanks to Martin D’Souza for a great idea on how to implement this feature.
    But it cannot stop a new session for a user, if there is an active (in my definition apex_workspace_activity_log.seconds_ago<240) session already running for that user.
    Regards,
    Deepika.

Maybe you are looking for

  • Syncing Voice Memos to iTunes - Workaround

    Not everyone can sync their voice memos to iTunes, and no one really knows why (or cares).  Here is a workaround. Part One - Email the Voice Memo to Yourself 1. Select the voice memos application. 2. Select the voice memos list (button in lower right

  • The icons and applications on the screen open and close without touching the screen. Suggestions please?

    The the applications and links open as if somebody is browsing. I can't open a page and remain in it for more than one minute. I did reset but no improvement.

  • Paste phone n° out of email in work environment to the phone dialing pad is not possible

    Hello, I am trying to paste a phone number out of an email in my work environment to the dialing pad of the phone. When I do that, I receive the error message that I am not allowed to paste work content into a personal application, although I am in t

  • G40 Video noise and blank

    Upon startup, myG40 shows the POST page, then I hear a high pitch noice briefly, and the display goes dark. The external video connector does work, but the lcd screen stays dark. I have a second machine that I can use for parts.  Can someone recommen

  • Image manipulating

    hi, this is my problem: i would like to be able read an image-file from the disk and i would like to scale it depending on it's size... if it's to big i would like to make it smaller.. :) if it's possible it would be good to be able to scale the imag