03-20-2019 08:30 PM - edited 03-20-2019 08:33 PM
Hello, I have a labview assignment task that I have to do.
Currently, this is what I have done.
I'm not here to ask if someone can finish the work for me or etc, rather I seek guidance on how to finish this task.
What should I look for (search on the internet) to solve this, as this is my main issue. I have no clue on what to search on or in what way to do this. Am I supposed to do this with case structure, boolean, array, events etc?
03-20-2019 09:11 PM
Wow! You can't be bothered to provide your homework assignment in a format that we can read, can you? It's a poorly-formatted picture, and I don't have a "magnifier" on my laptop.
I'm guessing you are taking a LabVIEW class, and have this as an assignment to test if you understand the material you are supposed to learn. Have you learned it? Have you talked to your fellow students and asked them for help? Have you read the material?
Bob Schor
03-21-2019 03:39 AM
Not sure what that code so far comes from.
Subtask 1 is "create a string", and it's not there. I'd start at the beginning...
03-21-2019 03:45 AM
@Bob_Schor wrote:
Wow! You can't be bothered to provide your homework assignment in a format that we can read, can you? It's a poorly-formatted picture, and I don't have a "magnifier" on my laptop.
The magnifier is shipped with Windows nowadays*. Windows key + "+" will activate it.
Still a valid point of course. OP should make things as easy as possible, if success is to be expected.
* (MacOS as well, IFAIK.)
03-21-2019 05:44 AM - edited 03-21-2019 05:48 AM
Hey, I'm sorry to have it in bad format. It looked fine from my perspective, I'll re-upload a new one. This is not a LabVIEW class, this is our electric car project, that's what the class is called. We built an electric car and make it function with MyRIO. Everyone gets their own assignment, so no point asking other students. Yes, the material has been read, I have some hum on how to do it, however not sure if it's correct and I get stuck a lot.
Enhance the 'Buying food' program:The program should run until you press a Stop button (which you have to add).That Subtask 1 Add a string Indicator that suggest what you should cook. The output should be: 'I suggest you should cook [dish]'. Where [dish] is replaced by: Pasta all'arrabiatta, if the user selects pasta and tomatoes only Spaghetti bolognese, if the user selects to buy cheese, tomatoes and meat Pasta non-definito: if the user selects to buy pasta and cinnamon buns only Output: 'I have no idea what you should cook!', in all other cases Subtask 2 Advertising your products is important to run a business. Add four LEDs to make a small lightshow. One LED is shining a time. The shining LED jumps from LED 1 to 2, from 2 to 3, 3 to 4 and 4 to 1 and repeats. As higher the total price, as faster the LEDs move.
03-21-2019 05:46 AM
I tried with a string indicator using case structure, however, then it uses boolean which won't work in my case?
03-21-2019 06:04 AM - edited 03-21-2019 06:07 AM
@ggripen wrote:
I tried with a string indicator using case structure, however, then it uses boolean which won't work in my case?
Why does 'it' use Booleans when you use a case structure that outputs a string indicator?
Better post some code to show that attempt.
I still don't see how your solution so far matches anything in the image of the assignment. Is there more to it? If you only tell us 1/2 the problem, you'll probably get 1/4 of the solution or less.
EDIT: I'd go for an enum with the four dishes, and put it into a format into string to display the required output string indicator. That should take part of the first assignment. And if this doesn't make any sense, the free online courses might help...
03-21-2019 08:29 AM
In case you fail, you may object that the assignment text is wrong: "arrabbiata" must be written with a single t !
03-21-2019 09:33 AM
You mean something like this? Should the enums be seperated or can I have multiple items in one?
03-21-2019 09:51 AM
Try wiring up the enum to the case structure [?] and see what happens.