01-20-2015 12:50 PM
Use typecast on the U8 number to get the character as a string.
01-20-2015 12:50 PM
I would use To Upper to make all of the letters an uppercase and then subtract 64 from the U8 equivalent (capital A = 65 in the ASCII table). That will give you the index of the element that needs incremented.
01-20-2015 02:34 PM - edited 01-20-2015 02:41 PM
@Jenson94 wrote:
Oke thanks, now i got everyting in the different classes but how do i cast it back an select those from the right array?
Here's one possibility. To put things in a graph should be trivial (except for labeling the x axis markers). 😄
01-20-2015 03:10 PM - edited 01-20-2015 03:12 PM
You can make it a little simpler by removing the case structure. If you try to access/set an idex outside of the array, the array doesn't change.
01-20-2015 03:34 PM
01-20-2015 06:06 PM
Hello,
I have to say i'm inpressed with your nowhow on labview! But how do convert a string to a graph? Do i first have to make an array of the string or something like that?
I'm learning so much from this, thank you guys!
01-20-2015 06:08 PM - edited 01-20-2015 06:20 PM
The array coming our of the first loop is all you need to send to a waveform graph. Select a graph style that looks like a histogram. It will look like the picture attached to your first post.
The x-axis is as follows 0=a, 1=b, 25=z etc. as I said, to get the actual characters on there requires a bit more work. 😉 To have the axis go from 1..26 instead, change x0 to 1 in the graph properties. (See attached quick example)
01-21-2015 03:39 AM
Thanks guys, I really appreciate you are helping me!
Can somebody explain the block diagram from the last post? I'm understanding it for about 85% but stil not 100% shure on how it works?
01-21-2015 05:04 AM
@Jenson94 wrote:
I'm understanding it for about 85% but stil not 100% shure on how it works?
Which 15% of the diagram puzzles you??
01-21-2015 05:40 AM
The part of the in place element structure!