Creating own datatypes/handles

Hello!
I have a C library which has differents functions that expect various handles (uint32) as parameters. Calling these functions from within LabVIEW is not a problem. What I want to do is make these handles avaible to the outside, accessible through a SubVI connector, somehow comparable to the "Tasks" in DAQmx functions. I can without problem give them as uint32, however this way different types of handles can easily get mixed up as they all appear as blue lines and look like some integers and are not typechecked at all.
Is there a possibility to create own datatypes in LabVIEW that basically can be translated to a simple uint32 in order to pass them to a DLL but to avoid mixing up different types of handles outside of the SubVI. It would be comparable to some C "typedef" with additional typechecking when they are passed to a SubVI. This would simplify the use of the VIs I am creating siginificantly as errors with mixed up handles are very hard to spot and cause major run-time errors. Additionally it would be very helpful if it was able to create its own coloring/design for the lines and connectors to make the block diagram look cleaner.
I am using LabVIEW 8.5.1.  
Best regards! 

Two ideas come to mind.
Type cast your U32 as an datalog reference. That will only give you the option for a green wire. But its traditional and has been around for a long time.
LVOOP lets you define the appearence of the wires used by a class. So wrapping your dll inside a privat method in its class will give you custom wires.
Ben
Message Edited by Ben on 03-12-2009 01:07 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
Wire_Colors.PNG ‏26 KB

Similar Messages

  • Creating own data types

    Hi,
    How can i create my own data types????
    Thanks,
    Mohit.

    Hi,
    Through TYPES statement you can create your own datatypes. And through Type-pools you can create global data.
    Re: type pools
    Reward if useful!

  • How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty

    So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
    A Newbie to SSIS.
    I appreciate your review and am hopeful for a reply.
    PSULionRP

    Depends upon what you want to do in the eventhandler. this is what you can do
    Store the result set from the Select to a user variable.
    Pass this user variable to a Script task.
    In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
    Dts.TaskResult = Dts.Results.Failure
    Abhinav http://bishtabhinav.wordpress.com/

  • Error in creating IO file handles for job (number 3152513)

    Hi All -
    I am using Tidal 5.3.1.307. And the Windows agent that is running these jobs is at 3.0.2.05.
    Basically the error in the subject was received when starting a particular job once it was cancelled and a couple of other different jobs a few days before. These jobs have run successfully in the past.
    This particular job was running for 500+ minutes when it should run at an estimated 40 minutes. At that time it would not allow for a re-start of the job, it just stayed in a launched status.
    Trying to figure out what causes this error.
    Error in creating IO file handles for job 3152513
    Note - from that being said we were to see 2 instances of this process running at the same time, we noticed some blocking on the DB side of things.
    Trying to figure out if this is a known tidal issue or a coding issue or both.
    Another side note, after cancelling the 2nd rerun attempt the following error was encountered: Error activating job, Duplicate.
    When we did receive the Error creating IO file, the job did actually restart, but Tidal actually lost hooks into it and the query was still running as an orphan on the db server.
    Thanks All!

    The server to reboot is the agent server.  You can try stopping the agent and then manually deleting the file.  That may work.  When the agent is running the agent process may keep the file locked, so rebooting may not be sufficient.
    The numerical folders are found as sub-directories off of the services directory I mentioned.  I think the numbers correspond to the job type, so one number corresponds to standard jobs, another to FTP jobs.  I'd just look in the numbered directories until you find a filename matching the job number.
    The extensions don't really matter since you will want to delete all files that match your job number.  There should only be one or two files that you need to delete and they should all be in the same numbered sub-directory.
    As to the root cause of the problem, I can't really say since it doesn't happen very often.  My recollection is that it is either caused by a job blowing up spectacularly (e.g. a memory leak in the program being launched by Tidal) or someone doing something atypical with the client.

  • How to Create a datatype for a storeprocedure which has got array ?

    Hi All,
    Please tell me how to create a datatype for a storeprocedure which has got an array structure ?
    Thanks,
    Sindhu.

    Hi Sindhu.
    You would have to use a JDBC Cursor for this but it's possible only Output parameters, not Input parameters.
    It's describle in a help link:
    Defining an EXECUTE Statement  http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b72b2fde93673e10000000a114a6b/frameset.htm
    The following SQL data types are supported:
    INTEGER, BIT, TINYINT, SMALLINT, BIGINT, FLOAT, REAL, DOUBLE, NUMERIC, DECIMAL, CHAR, VARCHAR, STRING, LONGVARCHAR, DATE, TIME, TIMESTAMP, BINARY, VARBINARY, LONGVARBINARY, BLOB (input and output), CLOB (input and output), CURSOR (output; only in connection with the Oracle JDBC driver)
    I think you can execute your StoreProcedure many times depends of array occurs.
    Regards.
    Bruno.

  • Cannot create process to handle workflow instance conversation

    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<Process>
    Hi,
    Iam getting following error when iam trying to invoke
    subworkflow.
    can anyone help me in solving this problem.
    regards
    Ananth
    ERROR: Cannot cr
    eate process null.>
    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<B2B-BPM-Plugin> ERROR:
    Cannot create process to handle workflow instance conversation
    com.bea.b2b.protocol.ProcessManager$CreateException: ERROR: Cannot create proces
    s null.

    Hi Ajaz,
    Error description is not detailed enough to provide the solution. You need to post the error message what you got in the server log files. This should contain specific details about the issue.
    Not sure but issue may be related to JVM settings. if it is so, server log file will provide the error description.

  • How to create own Web Items for Web Application Designer

    Hi all,
    is it possible to create own Web Items for the Bex Web Application Designer? Each Web Item has a Master Web Item and a class that is responsible for rendering data. I need a solution to get the Web Item's data - i.e. the content of a table (if Web Item = table). So my approach would be to create an own (Standard) Web Item with an own class. For example I would like to change the table's Web Item parameter <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/> to an own class...
    Is this possible?
    Or ist there any possibility to get the Web Item's data by an interface?
    Any support is welcome...thanks in advance!
    Best regards,
    Dominik

    if you want to create your own webitem check out the link given by other sdner.
    if you want to be able to execute BW query using abap you can check out the following weblog.
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    Regards
    Raja

  • How to create own evaluation path

    Hi Experts
    Can anyone of the HR experts let me know how to create own evaluation path to be used in Function Module 'RH_STRUC_GET'.
    Thanx,
    Rahul

    Hi
    To maintain evaluation paths, choose the IMG activity SAP Web Application Server ® Business Management ® SAP Business Workflow ® Basic Settings (Organizational management) ® Number range maintenance ® Maintain evaluation paths. When the system is in operation, use transaction OOAW .
    Here you will find the maintenance view Change evaluation paths: Overview.
    Assign a name to the evaluation path (maximum of eight alphanumeric characters).
    Go to the dependent view Evaluation paths (individual maintenance).
    Describe the relationship chain to be used for the evaluation.
    To establish the permitted relationships for an object type, use report RHRELAT0 .
    REWARD POINTS

  • How to create own customized screensaver on Windows 7 Embedded Standard sp1

    Hi Support,
                      How to create own customized screensaver on Windows 7 Embedded Standard sp1 OS.
    Regards
    YASH PAL SINGH

    This forum is for POSReady. wES7 forum can be found here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=quebecmisc
    Create the screen saver in Windows 7 first and then put the file in the distribution share to be included in the image. There are tools that can help create a custom screen saver:
    http://download.cnet.com/windows/screensaver-editors-and-tools
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • How to create own interface without .cpp file?

    how to create own interface without using .cpp file ? To access the method inside the interface .
    e.g.  ILayoutTarget.
      Should not be SDKFileHelper.h because they are using SDKFileHelper.cpp file

    Rathan,
    PLz chk the below link (PDF file)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79?quicklink=index&overridelayout=true
    Mutti

  • How to create own tags in JSF?

    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...
    Thanking you
    --Mansingh Shitole                                                                                                                                                                                                                                                                                                                                                                                                                           

    ms_shitole wrote:
    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...It sounds to me that 1) using are using Facelets and 2) you are looking for a replacement for the JSTL SQL tags. If this is the case, I'll quote the J2EE Tutuorial:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html says:
    The JSTL SQL tags for accessing databases listed in Table 14-8 are designed for quick prototyping and simple applications. For production applications, database operations are normally encapsulated in JavaBeans components.

  • How to create own routine in VOFM or else where?

    hi
    please tell how I can create own routine in VOFM or else where?
    I want to create
    Condition formula for alternative calculation type
    for my pricing procedure
    (example -calulation type column in pricing procedure-routine no 12)
    thank you

    hi sudhir
    in VOFM only.
    go inside & select pricing in requriment.
    create a new routine number from 900 & above.
    for this you need an access Key & generate it from SERVICE.SAP.com
    but you need SID for that.
    and proceed with the logic with the help of an ABAPER & then every thing is compleleted then activate the routine created.
    hope this clears your issue.
    balajia

  • [IDOC] Creating own IDOC

    Hey,
    playing with IDOCs, I would like to create an own one with customized structure.
    Found this thread:
    Creating own IDOC with segments
    In we31 I have to create a segment.
    - Do you uses segment names longer than 7 characters? I would not
      communicate with R/2 or older systems, so would you use longer names?
    - Data elements: If you create your own IDOCs do you use own data elements?
      Just want to have something like a string element. Or is there a standard
      data element you can use? (sorry, a newbie question). I would like to use
      S_PASSNUM, S_PASSNAME2, S_PASSNAME2......
    thanks a lot.
    chris
    Edited by: Christian Riekenberg on May 21, 2008 2:54 PM

    Hi Christian,
    Data elements: If you create your own IDOCs do you use own data elements?
    Its not mandatory that you have to create your own data element.  You can use an existing data element.You must create new data elements in the following case:
    A data element in SAP does not use one of the allowed data types for IDOC segments. For eg: the future price field (ZKPRS) in the E1MBEWM segment of the MATMAS02 basic type uses data type CHAR12 instead of ZKPRS. The reason is that the data type for ZKPRS is CURR (Currency) which is not allowed in a segment definition.
    Reward points if helpful.
    Regards,
    Soumya.

  • Possible to create a second handle on a point without moving the first one?

    Hello again,
    Just had a question about something that often drives me crazy. Sometimes when I'm modifying an object (especially text that has been turned into outlines for logos etc) There are points on the path that I want/need to remove. Many of the times the points I'm removing had part of the curve that made the path look nice and smooth. For some reason Illustrator likes to create two points overlapping each other with a handle extending in opposite directions for each instead of one point with two handles...
    In the cases where I have a point on a path with only one handle, whether it overlaps another point or not, is there a way to create a new handle on the opposite side where a handle doesn't exist without moving the handle that is already there? I hate fiddling with the path for 10 minutes afterwards trying to get everything back into the same position again. I would like to be able to drag out a new handle while locking the old handle in place, but the initial behavior of the convert anchor point tool seems to be to get rid of the old existing handle and recreate two new handles which resets everything.
    Is there a way around this? A tool behavior option or maybe even a different tool that will let me just add the one handle to the point that is missing without moving or deleting the existing handle on that point? If it matters I'm using Illustrator CS5.5. Thanks for any help in advance!

    Thanks for the responses guys! Unless someone comes along with a completely native Illustrator solution I think the Pathscribe tool is what I'm looking for. The unify command in that other post sounds like just the thing for the randomd weirdness Illustrator does when you convert text to outlines etc. and I'll probably mostly use that method for the overlapping points that are created in those case. I would say close to 50% of the time though I need to add a handle to a point that isn't overlapping like where a letter shape curves on one side but is straigh on the other. I guess a good example of that would maybe tip of the "v" shape in stylized or script fonts, they often have a straigh side and curved side. Sometimes it's also me because I'll go with a more straight line concept for a portion of the letter shapes and then change my mind back again, by which time I have removed some of the handles that I want to put back. It sounds like VectorScribe will do exactly what I want the way I want it and save me a lot of time having to zoom way in to get the fine control I need to restore the paths orginial curve.
    All in all a pretty solid solution between the two. I'll have to pick up VectorScribe and will use unify where applicable. I don't understand though why this isn't something that Adobe hasn't made a native provisioin for? Seems there would be many times while making a design that you might want to change your mind without having to completely redraw the entirety of a curve, especially if you're doing an illustration from scratch. I thought there had to be a native solution and I was just somehow missing it completely... maybe they don't want to step on the 3rd party vendor's toes who have made plug-ins to deal with this sort of thing? Illustrator has been around a looong time now, seems like they would have come across this more than a few times... maybe I'm just not creating illustrations using the "proper" methods.

  • Own connection handling class

    hi all,
    In the jdbcpds.conf file, it is mentioned that we can write our own connection handling class which extends the provided JDBCConnectionHandling class
    What i tried after looking at the methods of connection handler is something like this
    class myJDBCConnectionHandling extends JDBCConnectionHandling
    protected void parseConnectInfo(String s, JDBCConnectDialog jdbcconnectdialog, Plugin plugin)
    throws Exception
    String dbUrl = null;
    dbUrl = "<user>/<pwd>@<remotedatabase>";
    super.parseConnectInfo(dbUrl, jdbcconnectdialog, plugin);
    Is there anything else that needs to be done
    because this is throwing an error
    JDBCPDS-62008 : Failed to connect to the datasource null
    Invalid arguments in the call
    Can anybody correct me
    Of course my main purpose of trying this is to have something like a logical name given to the P_JDBCPDS parameter which can be mapped to the actual database url using JNDI lookup.
    what i was expecting was, the string when passed to the connection handler, i can add the code to lookup the name in my own connection handler and leave the rest to the provided JDBCConnectionHandling class
    Am i going in right direction or not
    Or if anybody has any other solution you are welcome to suggest
    Any sort of help is greatly appreciated
    Thanks in advance
    Ramakrishna

    hi,
    One more thing i forgot to mention was that i am not too concerned about this lookup in reports builder
    I need when this is running on the server
    thanks & regards
    ramakrishna

Maybe you are looking for

  • How to make PWM signals In Labview 7.1

    How to make PWM signals In Labview 7.1, Could someone give me .vi for examples. Thank you.

  • TS4062 how do I fuse my phones music onto my Itunes library?

    I'm using a new computer but the same apple ID. for some odd reason it will not sync my old music onto y new computer. HELP!

  • Ipod classic is in exFAT format??

    How would this happen, can it be fixed?  There is nothing on it now but it shows the memory is at full capacity. 

  • Audio sounds different from DVDSP to Build File

    I have a background audio track that sounds different when I view my VIDEO_TS folder using Apple DVD Player. In my FCP file, my exported AIF, my exported AC3, and within the DVDSP simulator, the audio sounds perfectly fine. But when I make a build an

  • ICloud under One Apple ID

    I have created iCloud account on my iMac with my Apple ID (Gmail account) and the password.  I included only the contacts and callendars, but now I would like to add Mail and Notes.  When I try to check Mail check box, iCloud prompts me to get a new