-
Posts
253 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Kurt Friday
-
-
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.
-
Ha, well done Chris
I havent see Pat for a while but he is indeed a top bloke. Whenever I'm next in Melbourne I'm going to pop my head in the door for a yack.
-
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
-
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.
-
Absolutely, and when it
-
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.
-
An even more efficient method of the shuffle, just randomly select two elements and swap their locations.
-
-
I can also see some really bad code, so the style guides would need some rework and a lot of effort to stay with good style.
Bad 3D code would probably look like this
-
At least I could practice alternative dance and get my work done.
I thought this demo on Augmented Reality was very cool, imagine having your team in the same space and being able to see them and work on the 3D Code together.
-
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
-
The drinking wins all the time.
Except the morning after eh alfa :beer:
-
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
-
I recommend that every post by Alpha be turned into a post about drinking and bawdy behaviour. Here
-
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
-
Wow, that's lightspeed, great support
Thanks for that Darren :thumbup: :beer:
-
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?
-
Hi Chris
Try the solution attached. It is written for LV 6.1 which requires the BD of the target be open for the operation, so for 7.0 and up just remove the open and close FP property nodes.
-
Hi Brian
Take a look at the example LabVIEW user interfaces included with TestStand, just go to
TestStand\Operator Interfaces\NI\Simple\LabVIEW
The Simple user interface will help you get started and its easy to modify to suit your needs.
Hope this helps
-
You can use NaN to effectively lift the pen from the plot and hence plot what appears to be separate vertical lines. The attached code demonstrates generating error bar plot given a set of X, Y and Error values.
-
-
What type of meter and what model?
Do you have any documentation?
Check your serial settings as well, if your baud rate is out then your data will be garbled.
-
Hi Sarah
Try the attached vi, its a bit of a trick but it works.
Essentially convert your 1D array to a 2D and manipulate the visible rows and columns depending on the desired view.
Hope this helps.
-
Thanks Alex
I
Am I going about this the rigth way?
in Object-Oriented Programming
Posted
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.