LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"*" and "numbers" patterns

Hi Jason,

 


@jason888 wrote:

Would you tell me what commends are they under the front panel?


As there are only pink wires I used string functions.

As the expected outputs contain the same char (triangle, pyramid) multiple times I also used array functions.

 

Example:

The triangle shows as many "*" chars per row as is the row number (i+1). Which array function allows you to create an array of elements with a user-definable number of elements?

Hint: you can use ConcatString to convert an array of strings into a scalar string.

 

As has been said several times before: attach your VI, downconverted from LV2020. I still prefer LV2017…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 13
(573 Views)

@jason888 wrote:

Would you tell me what commends are they under the front panel? 

I really appreciate your help! 


We're not here to do your homework for you. There are many here who will help, but most of us have not yet installed LabVIEW 2020. If you would upload your code in an older version (GerdW has asked for 2017) then you're likely to get more help in directing you in what you are missing in your code.

Message 12 of 13
(558 Views)

@GerdW wrote:

 

Hint: you can use ConcatString to convert an array of strings into a scalar string.

Thanks for sharing, @GerdW! I didn't know that! I was just using shift registers until I saw your comment.

 

I still have one SR, but I suspect it's doing the same as your initial For-loop (which also has a SR).

The OP also mentioned a stop button, so I added one, and put in an event to handle a change in the number of rows, too.

(I've decided I really don't like Stop buttons.)

 

Spoiler
OPsHW_ExtraPractice_JoB.PNG

@GerdW wrote:

 

As has been said several times before: attach your VI, downconverted from LV2020. I still prefer LV2017…


Also, @jason888, in case you still want help, here's how to save to a previous version:

SaveForPreviousVersion_JoB.PNG

SaveForPreviousVersion2_JoB.PNG

 

Thanks for the little programming challenge!

-joeorbob

 

Message 13 of 13
(533 Views)