Jump to content

Kurt Friday

Members
  • Posts

    253
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by Kurt Friday

  1. Hi Bryan

    From what you have described about your VME system your object hierachy looks correct, you are allowing the ability to branch out with different cards and different modules, quite a deep and interesting hierarchy, but nonetheless easily handled.

    I'm not quite sure you are on the right track with your object creation, my impression is that you are calling the VME base object Create which calls a card Create which calls a module Create and so on. If so this is not the way to create your object. The base or parent Create is never called, it is really only there to be used as a template for the object Create. When you want to use a VME.Card.Module.Type1 then call that classes creator, place whatever code that is required inside its Create to initialize the HW or get HW references to channels.

    What you are doing is very similar to the DataIO class that ships with the examples, take a look in there and that should guide you. Also the tutorials provide an excellent guide and go into how to architect the type of class that you are looking to develop.

  2. Well basically what i have to do is create my own convolution VI and use it. Its probably really simple but i just dont know how to get started.

    I attached my work so far which includes me using the built in convolution VI in labVIEW 8.0 on 2 simple signals. Basically what convolution does is it takes the second signal, flips it around the x axis, then moves it to the right. Whenever the signals are overlapping it multiplies them together. It's hard to explain i know.

    This is a really simple explanation of how convolution works. Now all i have to do is create my own convolution VI, but i really dont know where to get started. Im looking into it and ill update whenever i get any idea of how to do it.

    Thanks,

    p.s. I also dont know how to attach thumbnails :/ .. How do i do that?

    -Chris

    Hi Chris

    First, I admire how you have asked for help and you have had a really good shot at solving your problem. I can provide a little hint here. You are using express vi's, however you can convert an express vi into a regular vi by simply right clicking on the express vi and selecting "Open Front Panel", the express vi will then be converted, take a look inside, you will then see subSignalProcessin.vi, take a look in there that will help you.

    Also if you want to attach an image into your post simply attach the image file and then you will be given a reference which you can insert in your post.

    Good luck with it.

  3. How can I not respond :laugh:

    All this talk of Aussie slang reminds me of the warmest welcome I have ever received. The MD of one of the Alliance members from Melbourne had just come over for a visit to our office, and as I got out of my chair to shake his hand he said with a big grin, "G'day you old bastard"

    BTW, my favorite beer is someone else’s

  4. Hi Mohammed

    You are on the right track, your vi is producing the correct result but you need to clean your code up a bit by using shift registers to carry the sum and don't use constants on the count terminal of your for loops, pick the appropriate values from your 2D array using the Array Size function, it looks like you started to do that. Also there is no reason for the single for loop up the top that that iterates once.

    Since you have attempted the problem and had a go I have attached my solution.

    Download File:post-1058-1148056804.vi

  5. Hi Mohammed

    What you are asking is quite a trivial problem. However we are a bit like your maths teacher, we want to see that you have had a go at the problem yourself before we throw you the solution.

    Also what is this in relation to, if it's your homework then this is the wrong forum.

  6. I build a executable program, but this program can't run well at a computer without labview. computer cue it need labview run-time engine , I want to know how to build this engine and program ta together.

    Hi Vnn

    The best way to distribute your application with the Run-Time Engine is to create an installer. Take a look at the following

    Distributing Applications with the LabVIEW Application Builder

    I hope this helps

  7. Hi Mike

    I think you are trying to access a file relative to your main vi using the file constant "Current Vi's Path" and then striping it back one level to get the directory that your main vi resides and then building your file path from there. This is a problem when you build your application as the path that is returned by Current Vi's Path will be for example. C:\MyApp\MyApplication.exe\Main.vi

    What you need to do is detect your application kind ie Runtime or Development and handle the path stripping appropriately. You will find more information on it here

    and here

    I hope this helps

  8. Hi

    I just replicated your code and I see the same error.

    The problem is that the path that you are setting as the replacement control is not valid, try pointing the path at the absolute control path, ie c:\temp\temp.ctl

    I tested this in 7.1 and works fine

  9. I'm witnessing a peculiar behaviour when reading the callees of a vi if the vi contains either vi's which do not have their required inputs wired or if the vi is inserted as a static vi ref. Under 7.1 these vi's are returned as callees but under 8.0.1 they are not.

    For example,

    1) Create two vi's A and B, make B have a required input

    2) Place B on block diagram of A, save and read the callees of A

    and notice that B does not appear as a callee of A.

    3) Wire a constant into the required input of B , save

    and notice B appears as a callee of A.

    4) Remove constant input from B and save, notice that

    B still remains in the list of callees of A.

    5) Try placing B as a static vi reference, notice that B does not appear as a callee.

    I've attached a demo which demonstrates this behaviour.

    Is this a bug or a feature?

    Download File:post-1058-1142740240.zip

×
×
  • Create New...

Important Information

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