04-02-2018 10:16 PM
Thankyou in advance
04-03-2018 01:32 AM - edited 04-03-2018 01:33 AM
Hi Stem,
Yes, in generel we can do this!
Why should we here?
For this special case we cannot help you since you forgot to attach a subVI "converter.vi". (Next time please use ZIP to put all needed files into just one download!)
General comments on your VI:
- Why do you have 30+ cases in your case structure - and the only difference is a simple numeric constant? Why do you duplicate the code in your VI so many times? Use either a ring for the selection of the numeric constant - or an array lookup table!
- Why do you need to convert hours, mins and seconds all on their own? Why don't you create an array of LED clusters?
- Why do you use such an "interesting" background color for (each part) your block diagram? It's hurting the eye when I have to look at a light-purple screen!
04-04-2018 02:17 AM
We are making an international clock, the thing is i want to have a flowchart of my vi. The converter sub vi is now included in the zip file. Thankyou!
04-04-2018 03:47 AM
Hi Stem,
The converter sub vi is now included in the zip file.
Yes, thanks.
But you didn't do any of my previous suggestions (including changing that ugly background color.)
the thing is i want to have a flowchart of my vi.
Then you need to draw it. Use a tool of your choice!
You need sybols for a loop, a comparison, and a data conversion. That's it!
(As it's your VI you surely know how the DATAFLOW is working in the VI…)
04-04-2018 07:08 PM
but im having a hard time make a flowchart of my vi i dont know what to do and where to start 😞
04-04-2018 08:54 PM
Just break down each section of your code and make a block for it on your flow chart. Sections I see are getting the current time, adjusting the time, getting hours, minutes and seconds, and finally configure the display. It would be a lot simpler if you followed GerdW's advice in simplifying your code first.
04-05-2018 12:06 AM
@crossrulz wrote:
Just break down each section of your code and make a block for it on your flow chart. Sections I see are getting the current time, adjusting the time, getting hours, minutes and seconds, and finally configure the display. It would be a lot simpler if you followed GerdW's advice in simplifying your code first.
Isn't this kind of backwards? Kind of like creating a mechanical drawing from the part?
04-05-2018 03:34 AM
WhiteStarUML can e.g. be used to draw Flow charts, if that's the question.
/Y
04-05-2018 05:52 AM
@billko wrote:
@crossrulz wrote:
Just break down each section of your code and make a block for it on your flow chart. Sections I see are getting the current time, adjusting the time, getting hours, minutes and seconds, and finally configure the display. It would be a lot simpler if you followed GerdW's advice in simplifying your code first.
Isn't this kind of backwards? Kind of like creating a mechanical drawing from the part?
Yes it is. But that is the situation the OP is in.
But after some sleep, the better advice would be to draw up a flow chart to show what the program SHOULD do and then update the program based on that.
04-05-2018 06:28 AM
A Corollary to the often ignored Programming Maxim of "Write the Documentation First" is "Develop a FlowChart (or at least a firm idea in your mind of how the Program should flow) First".
Bob Schor