Question about cast of more generic class

I refnum controls and pages refnum and I want to know where is the best:

(1) let LabVIEW doing work

or (2) use the 'more generic class type conversion.

In both cases the VI works fine.

Thank you

Jean-Marc

'that's better... »

I can't say definatively, but I've generally will do top-cast to build a table that you have illustrated LV.

EDIT

I just noticed your case apperas to have 50 more digital cases. What you do with this code? We may be able to offer alternatives (maybe).

Ben

Tags: NI Software

Similar Questions

  • How he handles the labview to more generic class

    It's just a matter for my own knowledge of curious nerd. If you, say, have a cluster that contains a string, a Boolean value, and a digital control, a common method to reference the controls in the cluster is to create a cluster of reference and then to get the array of control from a property node. So let's say I wanted to put the Boolean value true, you can auto control array index and cast in more specific class boolean and set value via the property node (see below).

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    for (imstuck) wrote:

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    I don't know all the details, but I would say you got it mostly right - there is an implicit conversion to a more generic type.  You will see this in several places in LabVIEW, for example, you can wire references to different types of controls in "table to build" to get a picture of their more specific common parent.  Because you're only casting reference - not the data that it contains, there is no loss of data.  A LabVIEW reference is just an I32 is (I assume) an index into a lookup table somewhere.  The value of this I32 does not change when it is converted into a more generic reference.  When you do "to more specific Type", LabVIEW raises this reference in the table and uses the data it found to determine if she can make the cast.  Who help me?

  • Cannot use casting "to more specific class ' function to the parent class of child class

    Hello

    I am using OOP for my request for data acquisition. I have different e/s analog and digital materials. I create a superclass named DAQ.lvclass. This class has four childs: analog in out analog, digital, and Digital Out. I am trying to invoke screws of the child of the parent class's class. For that I am throwing the class parent her child to aid "to a more specific class' function. But I get the below error.

    Error 1448 occurred at the more class specific in DAQ.lvclassMain.vi AQ

    Possible reasons:

    LabVIEW: Bad type cast. LabVIEW does not deal with the run-time value of this class of LabVIEW as an instance of the given class of LabVIEW.

    How can I handle these cases where I have to call child VI of the parent member?

    I have attached two screws 1 snapshot. Main DAQ: it's the class main VI parent who manages all functions. 2. read the analog inputs: this VI trying to set the parent class for its class of the child and child vi reads value of data acquisition task. I get the second error off VI.

    Kindly help.

    Honestly, I have NO idea on what you want to do.

    Inheritance of classes in EACH OOD (object-oriented design) requires to define common ground as the parent class. Children can add things like properties and methods.

    If you set children who have no points in common, you have made a mistake.

    If all children have too many different specific methods, your OOD is absent.

    Example:

    Parent defines the method A.

    1 child adds the B method.

    Child 2 adds method C.

    But method B will not be usable on 2 children while method C will not work with 1 child.

    It is an approach that you want to prevent. In any programming language oriented OBJECT. This adds unnecessary complexity leading to difficult to maintain the code, and it is prone to errors.

    However, if you're going to do, "to more specific class ' is the correct type cast. But your screenshots and error messages, it is obvious that refine you a particular child's casting only. You must extend the code to check the real child, specifically expressed and call the method. That being said, your code increases the complexity you want to add a bunch of case of structures which essentially nihilates all THE BENEFITS of the use of OOP.

    I'm sorry to say that.

    Norbert

  • Question about data store more than 2 TB on ESXi 5.5

    I have a data store that is currently 2 TB. I need to grow a little bigger for the snapshot space. We run ESXi 5.5. Is there something special I need to do or worry about when adding space to the LUN to make it more 2 TB? It's the first data store that I got is that great so I want to see if there are special considerations.

    I intend to go in my SAN management software, increase the size of the LUN and then go to vSphere, rescan storage and add extra space for the data store.

    Thank you!

    Who should do - the only isssue is if it is a VMFS (improved VMFS3) legacy data store that is my understanding evan if he has been upgraded to VMFS5 you will not be able to go beyond 2 TB.

  • Question about SQL * connect more in the syntax

    Good evening

    I can connect successfully from the client to the host using the following command:
    0 19:40 [Oracle] [23G] [569M] E:\Client>sqlplus scott/abc123@dbca
    
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 22 20:01:56 2010
    But I wanted to omit the password, so I tried:
    0 20:03 [Oracle] [23G] [590M] E:\Client>sqlplus scott/@dbca
    thinking that SQL * more tempt me the password but, if it does at all. I tried in vain a few variations. I read the specifications of command line for SQL * more and it seems that this command should work.

    Questions: What is the problem with the command I typed and what is the correct syntax?

    Thank you for your help,

    John.

    To omit the password using connect scott@dbca , but do not connect scott/@dbca of sqlplus.
    or sqlplus scott@dbca

  • Question about the java.util.Date class.

    The book I read said, class Date represents a value int long since January 1, 1970.


    I created a class of Date like this


    long mesh = 2000L;
    d.setTime (st);
    System.out.println ("new time is =" + d.toString ());

    When the above code, ultimately she prints the date as follows.

    New schedule is = Wed Dec 31 16:00:02 PST 1969

    No idea why the printed date before 1970? I expect the date to be a value greater than 01, January 1970.

    Welcome to the forum!
    >
    The book I read said, class Date represents a value int long since January 1, 1970.

    I created a class of Date like this

    long mesh = 2000L;
    d.setTime (st);
    System.out.println ("new time is =" + d.toString ());

    When the above code, ultimately she prints the date as follows.

    New schedule is = Wed Dec 31 16:00:02 PST 1969

    No idea why the printed date before 1970? I expect the date to be a value greater than 01, January 1970.
    >
    Because of the way as the setTime method is defined. What time zone do you use?

    http://docs.Oracle.com/javase/1.5.0/docs/API/Java/SQL/date.html#SetTime (long)
    >
    setTime
    Public Sub setTime(long date) defines an object Date existing using time value given in milliseconds. If the value of milliseconds given contains time information, the driver will set the components at the time in the default time zone (zone of the Java virtual machine running the application) which corresponds to zero GMT.

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Question about the differences in commands

    Hey guys -.

    I just had a few questions about the differences between orders that seem to perform the same function.  Can you let me know if an order is more preferable to the other and what the difference is.  I would really appreciate it as it I currently practice some INE laboratories and I see that orders change from lab to lab.  Thanks advance!

    1. When you write a static NAT for specific host 1 - is - this important if I understand the 32 subnet?

    EX: static (inside, outside) 1.1.1.1, 2.2.2.2 VS static (inside, outside) 1.1.1.1 2.2.2.2 netmask 255.255.255.255

    2. when I'm setting up a router as a CA server and it is necessary to "export" the key, whatever my method of exporting the key?  If so, in which method call for which solution?

    EX: key export cryptographic rsa ciscox pem URL nvram: cisco VS. exporting key 3des cryptographic ciscox pem 3des rsa terminal cisco

    3. If I have to mark a packet with a DSCP of X value, matter if I use the 'set dscp' VS 'set ip dscp?  If so, what is the difference?

    FXY

    Policy-map X

    class X

    the dscp X value

    VS

    Policy-map X

    class X

    X ip dscp value

    I guess pertaining to 2, if i was speaking in terms of from a cisco router to another cisco router - would terminal be acceptable?

    Yes, the "Import cryptographic key" command can take a url and also from the terminal entrance. In this terminal case wil is much easier.

    --
    Don't stop once you have upgraded your network! Improve the world by lending money to low-income workers:
    http://www.Kiva.org/invitedBy/karsteni

  • Question about the operation of the command "static"...

    I have an obligation to protect a single system using maximum connections embryonic tag on the end of the command "static." However, the subnet of class-C all this machine is underway and is already covered by a large static for the whole subnet.

    Question: Static commands like routing in the IOS commands, where the itinerary trumps the more generic road? See--->

    If I have a static which publishes 10.1.1.0 (class-C), but I put an another static, with * parameters * for 10.1.1.27/32, you take effect?

    -Alex

    From my understanding of what you're trying to accomplish, I think you would want the opposite--static specific for 10.1.1.27 should be higher in the order than the more general 10.1.1.0 static. In this way, if an xlate must be built for the 10.1.1.27 host, specific static will take it. If the xlate is for something else in the 10.1.1.0 subnet, it will bypass the specific static and hit the more general one. Make sense?

    Scott

  • can I use the generic class instead of delegates

    can I use a generic class instead of delegates?

    public void Sort (CompareDelegate, , cMethod) / / why we creat this "cMethod?
    {
    for (int i = 0; i)< data.length;="">
    {
    for (int j = i + 1; j)< data.length;="">
    {
    If (cMethod(data[i],data[j]) > 0)
    {
    T temp = data [j];
    data = data [i] [j];
    data [i] = temp;
    }
    }
    }
    }

    class delegate

    public delegate int CompareDelegate(T v1, T v2);
    main function
    numbers. ((v1, v2)-online v1 - v2 sort);

    This is the code works perfectly, but I have confusion about class generic and delegates... can we use this generic class instead of delegates by that logic...

    Hello

    The question you posted would be better suited to the MSDN Community. Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/categories

    Hope this information is useful.

  • Questions about student discount for CS6

    I know I want to get the premium Production CS6 from B & H, but just recently that I realized that my class of media production could possibly make me eligible for a discount for students. I have a few questions about get a student discount I've ever gotten before.

    My first question is: should I still pay the rest of the full price? Or, more important still, the student version will stop working after a period of time?

    My second and more important question is about installing on more than 1 PC. I am currently on my beast of a laptop. The iMac to my school with short CS6 smooth like butter, and it's spec lower than my laptop. Despite this, I plan to get a PC in the future office of Monster for my productions and I'm confused about my rights to installation with a copy of the student. I understand very well that I can't install it on the computer of another of Kathy; only on my own computer. He mentions (for teacher I guess) you will need to purchase additional licenses for installation on other computers. This means that when I buy a new computer, I need to buy a new license as well? Or I can use the one provided in the box?

    Any clarification on these questions would be appreciated. Thank you

    Your license does not expire and you never have to pay the price difference. You can install the suite on one type of computer, even if you have 2 activations. A series of PC does not work on Mac and vice versa. Only 2 PC installs will work or 2 Mac ones, respectively. The activations can be managed for in applications or by giving the customer a call to reset, if you their exhausted and forgot to turn it off.

    Mylenium

  • Questions about my old Airport Extreme &amp; 5 vs. 2.4 GHz

    I have an older Airport Extreme.  It's either a generation first or second - model A1143 (two generations had the same number, can't say that I have).  But two of them said they sent either 2.4 GHz or 5 GHz - either / or, but not at the same time, (which came on the next generation).

    I have two questions: first, how can I tell who is sent to the and how are they passed?  And second, if my Airport is on the second floor, but most use is on the first floor, which of the two should I use?  I understand 2.4 is better for long distances, but did not know what is considered "long."

    Not only he use to my Macbook and iPads, but also to an Apple TV, where the bandwidth, of course, is a matter of concern.

    Thank you very much!

    Phil in Chicago

    I have two questions: first, how can I tell who is sent to the and how are they passed?  And second, if my Airport is on the second floor, but most use is on the first floor, which of the two should I use?

    Looks like three questions.

    Let's first find out which version of AirPort Extreme you have.  I assume that you are running a recent operating system on the MacBook like El Capitan, Yosemite, Mavericks, Mountain Lion, etc.

    Open AirPort Utility (Finder > Applications > utilities > AirPort Utility)

    Hold down the option on your MacBook while you double-click on the image of the AirPort Extreme

    Glance to see what model you have... An Airport Extreme 802.11n (1st generation), or an AirPort Extreme 802.11n (2nd generation)

    As soon as we have this info, we will you say a bit more on the model you have and how to check certain parameters of the airport you have.

    By default, the A1143 airports are set up to provide a network of 2. 4 GHz, so unless you have changed the settings, your airport is send signals of 2.4 GHz.

    5 GHz signals have the ability to speed faster than 2.4 GHz signals... but... 5 GHz signals are much weaker than the 2.4 GHz signals, 5 GHz works well when your wireless devices are in the same room as the Terminal AirPort, or they close a line-of-sight relationship with airport router.

    Not much of a 5 GHz signal it will be through a ceiling, which is on average about 3 times more dense as normal in a House wall, if you still want to use 2.4 GHz on your network.

  • Question about warranty after exchanges of RAM on Satellite module series

    Hello together,

    I have a question about the warranty. My laptop is 5 months old and now I want to improve it with more RAM. I want to do it myself, and now I'm wondering if the warranty will be getting hurt.
    Thanks in advance for your answers.

    Concerning

    TiG3r

    For new models of laptops the RAM upgrade described in s operating manuals. It is public act and it shows the owner of the notebook how do RAM upgrade only.

    If Toshiba offers something like this he won't have the negative influence of valid warranty.
    Buy a compatible module and RAM upgrade.

    Bye and good luck!

  • Satellite A350D - 20K - Question about upgrade second HDD + Temperature

    I have a question about my laptop. I have notticed it is a second location of HARD disk on the bottom.
    Is it possible to use this to increase my storage?
    And if yes, how do I do that? I don't see all the connectors.
    What type of HARD drive to use in case it is possible to use this slot machine?

    My second question is on my laptop to be very hot after a short period of use.
    I installed speedfan to record the temperature. When I start the laptop, it already is between 45 and 50 degrees.
    He stayed there for half an hour and then it starts to get warmer. When I start to use the laptop for anything, it triggers to between 70 and 80 degrees.

    This does not seem normal to me. I tried to clean the vents with compressed air, but it has not made a difference.
    I searched on the internet how to take the laptop part for proparly cleaned TI.
    But I can't so I'm looking that destroy it.

    This could be the cause and more importantly, how can I solve this problem?

    Tom

    The second HARD drive bay contains the HARD drive connectors?
    If Yes, then you can use a SATA 2.5 HARD.
    If there are no connectors, then you will not be able to use the second HARD drive

    > I have installed speedfan to record the temperature. When I start the laptop, it already is between 45 and 50 degrees. He stayed there for half an hour and then it starts to get warmer. When I start to use the laptop for anything, it triggers to between 70 and 80 degrees.

    CPU and GPU produce a lot of heat. The heat dissipation is always created then there s nothing unusual that the temperature rose to higher level.
    You can change the settings in Win 7 power management. You can set the CPU to lower performance and can increase the activity of fan, which will help lower the temperature.

  • Questions about Stor.e TV +.

    Does anyone have a contact point to raise a complaint about the lack of service from Toshiba? I spent £160 on a TV + Stor.e and did have some problems with it, as you can see from the few posts that I raised. After spending £160 on a point I don't understand why if the forum is the only option to support what he is no Toshiba engineers on this issue, who are able to answer my questions. I do not expect a 24 / 7 hotline for £160 I spent, but it would be good to know that a Toshiba engineer could answer my questions about their products. Especially since it's the second one I had which suffers from a cosmetic defect, I had to stick to feet about it as the Unit came with 4 pads ride around the box. I also have my doubts about the HDMI because it seems to be very sensitive to any movement in the area, causing the connection to remove.

    I got a Western Digital box media for more than five years and had no problem with this, the only reason why I changed, it was to make use of the connection to the local network, the HDMI connection and the fact it supported more than file formats. FSR this device was abit of a disappointment for me. So if someone could point me in the right direction, I would be very grateful.

    Hello

    I can understand that you are not happy with the current situation and usually if you buy a product it should properly expect and do no problem.

    As you probably already seen here it s a user to only user forum. This means that you can speak with normal people like you and me and there is no official support from Toshiba.

    In your case, it would be best if you contact an authorized service provider or call the Toshiba UK. The phone number, you can find on the site of Toshiba UK Web:
    http://UK.computers.Toshiba-Europe.com

    Just give the guy a call and explain your situation. I'm sure they can give you a detailed answer and if your TV Stor.e + must be repaired or not. When warranty hardware repair is free.

    I hope I could help you a little bit :)

Maybe you are looking for

  • Qosmio G40: Toshiba Assist, StartLiveTV, Dolby (other?) no longer works

    After installing Win7 Ultimate, including the latest drivers downloaded on the Toshiba site, the following applications no longer work: (1) Toshiba AssistApplication (TInTouch.exe) loads but ends up with a white screen. (2) TV connected to the TV but

  • Anyone use netbook for before LV

    Just walk if the netbook is good enough to support LV I want to run a few LV duration of programming for hardware DAQ with USB 5133 etc. Can I know if anyone has experience before, thank you.

  • Mini 110: Missing password of HP Mini 110

    A Mini 110 gave to me. No password information. Three trials and error fatal cnu92136cn rises. Any idea, the reset code? Help would be greatly appreciated. Thank you JIM

  • try to load Rosetta Stone

    I bought rosetta stone version 3, never open.  When I insert the application disc he never asked me to select a language, and when I tried to install the lessons when you are prompted, he said that he could not find the CD.  It of a new computer and

  • OEMGC12c Agent is blocked-&gt; meter incompatibility

    HelloI reinstalled one of my database from scratch Linux systems.After I deleted the host of EMGC12c I have new agent installation on the new host of 'Add Target'After you have finished installing the SGD blocked the agent with an error message."The