Jump to content

ktkumar

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

ktkumar's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I agree totally. Currently I am using an enum and a string cluster together to serve as a datatype (similar to what Jack Hamilton had mentioned) for the functions that I write so that any data can be represented and can be used by my functions. One such function is a circular buffer. I am planning to learn more GOOP as i heard that LV8 would support GOOP. (Is this true !!??) If we tried to write a function called circular buffer in goop and we want it to function by optimized performance. I feel using variant is, in a way, short-coming. (Think of using an enum and a string to represent U8 !! ) Assuming that we use this GOOP based function in more than one place in the project. If we use typedef, I guess we would have to make the VIs specific for the datatype. Regards KT
  2. Hi Jason, You might also consider using "Push button" in boolean control palette KT
  3. Hi, I guess one way in which we can achieve this is using Variant. But if we use variant, we need to use the datatype descriptor to get the data back. It would really be helpful if the user need not have to worry about the datatype just like in queues, where the datatype automatically changes. I can also realize that we can create a polymorphic vi to make this happen. But the overhead here is that we need to create a VI for every datatype that we want to handle. Apart from these, are there any other way for us to achieve using the polymorphic behavior? Thanks KT
  4. Hi, I would like to implement the polymorphic behavior exhibited by the Queues, in the VIs that we develop. To explain this more, I have attached 2 files along with this email. In the "queue1.jpg file", when we wire a datatype to the input of the "Obtain Queue" VI we can see that all the queue VIs wired to the same reference exhibit the same datatype. If we do a create control/indicator on the enqueue/dequeue VIs, the control/indicator created will be the same as that of the datatype wired in the "Obtain Queue" VI. As in "Queue2.jpg", if we replace the simple cluster in the "obtain queue" VI with a complex cluster. We can see the datatype of enqueue/dequeue VIs change as well. I would like to implement this feature in the VIs we develop as it will make the VIs highly flexible and reusable in many situations. Is this possible? I would gladly appreciate any help. Thanks KT (Kumar.K.T)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.