11-18-2015 09:52 AM
@jvc.dossantos wrote:
First of all, thanks for all your help, I know that all that I did until now is pure madness.
But, yes, I'm a new user. In fact, this is my first time in life using LabView and more I don't have almost any experience programming.
I'm second year college student of Agricultural Engineering and I had just a little bit of contact with C++ until now. This what i'm doing it's for my Scientific Initiation, it's a project it was given to me and I just have to figure out how to do, because my teacher has no clue how to do. So I'm sorry for all the trouble.
1. Ok, I'll just use 2D arrays since now
2. Yes, I know that what I did it's crazy, I knew that it would bother you! hahahah sorry. But in this case can I place all the code in just one FOR loop and the program will process the 28 different images with the masks that I need?
3. Ok.
4. Which is the correct way to do this conversion?
5. I use the color mask because in the time that I did this I saw in some tutorial video, when I did this my new image is shown to me, if I don't do this just appear a black square.
6. Yes, I saw your suggestion and because of that I eliminate unnecessary conversions that I was doing. Sorry, I couldn't understand properly the next part where you suggest what I should do. Can you explain with a VI?
7. I just saw many tutorials, on youtube, at this site and in the "help" of LabView, but this was the closest that I got
PS: What if I send to you the images and masks, and you compile the program to see what is happen? I believe this would clarify which is the best way to you help me .
There is no shortcut to learning how to program. Just because LabVIEW "looks easy" does not mean it is easy.
Take the time to take the tutorials. And yes, you will have to expand some TIME to learning LabVIEW.
11-18-2015 12:33 PM
nyc escreveu:
@jvc.dossantos wrote:
First of all, thanks for all your help, I know that all that I did until now is pure madness.
But, yes, I'm a new user. In fact, this is my first time in life using LabView and more I don't have almost any experience programming.
I'm second year college student of Agricultural Engineering and I had just a little bit of contact with C++ until now. This what i'm doing it's for my Scientific Initiation, it's a project it was given to me and I just have to figure out how to do, because my teacher has no clue how to do. So I'm sorry for all the trouble.
1. Ok, I'll just use 2D arrays since now
2. Yes, I know that what I did it's crazy, I knew that it would bother you! hahahah sorry. But in this case can I place all the code in just one FOR loop and the program will process the 28 different images with the masks that I need?
3. Ok.
4. Which is the correct way to do this conversion?
5. I use the color mask because in the time that I did this I saw in some tutorial video, when I did this my new image is shown to me, if I don't do this just appear a black square.
6. Yes, I saw your suggestion and because of that I eliminate unnecessary conversions that I was doing. Sorry, I couldn't understand properly the next part where you suggest what I should do. Can you explain with a VI?
7. I just saw many tutorials, on youtube, at this site and in the "help" of LabView, but this was the closest that I got
PS: What if I send to you the images and masks, and you compile the program to see what is happen? I believe this would clarify which is the best way to you help me .
There is no shortcut to learning how to program. Just because LabVIEW "looks easy" does not mean it is easy.
Take the time to take the tutorials. And yes, you will have to expand some TIME to learning LabVIEW.
I did not ask any shortcut. On the contrary, I'm trying to learning how to use LabView since August 1, you can do the math of how much time I already spent. And I had no class of this program or any help from anyone, I'm trying to do the best I can. As you can see it's not a easy code to program, and anybody taught me the basics steps.
After just 3 weeks that I started to learn, despite of all the errors on my program, my code completed the task that my teacher did ask to me.
Being honest, he doesn't care if my code seems pure madness, because the code is working and helped him to finish his doctorate degree.
But I know that the code could be better and after try to improve for almost 4 months on my own I decided to ask for help. So before you throw all your judgments, which don't help anyone, what if think try to understand the situation and more about the other people? Like we say in Brazil "if you do not want to help, do not disturb".
I believe that Altenbach it's an expert in LabView and despite all my lack of knowledge he is trying very hard to help me.
So thanks for nothing.
11-18-2015 01:23 PM
@jvc.dossantos wrote:
nyc escreveu:
@jvc.dossantos wrote:
First of all, thanks for all your help, I know that all that I did until now is pure madness.
But, yes, I'm a new user. In fact, this is my first time in life using LabView and more I don't have almost any experience programming.
I'm second year college student of Agricultural Engineering and I had just a little bit of contact with C++ until now. This what i'm doing it's for my Scientific Initiation, it's a project it was given to me and I just have to figure out how to do, because my teacher has no clue how to do. So I'm sorry for all the trouble.
1. Ok, I'll just use 2D arrays since now
2. Yes, I know that what I did it's crazy, I knew that it would bother you! hahahah sorry. But in this case can I place all the code in just one FOR loop and the program will process the 28 different images with the masks that I need?
3. Ok.
4. Which is the correct way to do this conversion?
5. I use the color mask because in the time that I did this I saw in some tutorial video, when I did this my new image is shown to me, if I don't do this just appear a black square.
6. Yes, I saw your suggestion and because of that I eliminate unnecessary conversions that I was doing. Sorry, I couldn't understand properly the next part where you suggest what I should do. Can you explain with a VI?
7. I just saw many tutorials, on youtube, at this site and in the "help" of LabView, but this was the closest that I got
PS: What if I send to you the images and masks, and you compile the program to see what is happen? I believe this would clarify which is the best way to you help me .
There is no shortcut to learning how to program. Just because LabVIEW "looks easy" does not mean it is easy.
Take the time to take the tutorials. And yes, you will have to expand some TIME to learning LabVIEW.
I did not ask any shortcut. On the contrary, I'm trying to learning how to use LabView since August 1, you can do the math of how much time I already spent. And I had no class of this program or any help from anyone, I'm trying to do the best I can. As you can see it's not a easy code to program, and anybody taught me the basics steps.
After just 3 weeks that I started to learn, despite of all the errors on my program, my code completed the task that my teacher did ask to me.
Being honest, he doesn't care if my code seems pure madness, because the code is working and helped him to finish his doctorate degree.
But I know that the code could be better and after try to improve for almost 4 months on my own I decided to ask for help. So before you throw all your judgments, which don't help anyone, what if think try to understand the situation and more about the other people? Like we say in Brazil "if you do not want to help, do not disturb".
I believe that Altenbach it's an expert in LabView and despite all my lack of knowledge he is trying very hard to help me.
So thanks for nothing.
It is great that Altenbach is helping you.
However, the fact remains that learning the fundamentals of programming any language is important if you plan on continuing in using the language.
You cannot be constantly asking fundamental questions here when you should be taking the tutorial classes and learning how to programs.
That is no way to be doing this. There is no shortcut.
11-18-2015 02:17 PM - edited 11-18-2015 02:18 PM
I already explain how to do all this: Start with the code shown in the image (here), but instead of summing, reshape the 2D array to a 1D array. You don't even need to convert to DBL. Autoindex at the right loop boundary to get your desired 2D array.
If this is giving you problems, you need to do a few more tutorials. No way around it! There are plenty available.
Do you know how the create an array of paths? Do you know what autoindexing means?
11-23-2015 09:37 AM
Were you able to solve the problem?
11-23-2015 07:08 PM
I'm trying, thanks for your help.