I'm working on a labview design to make a interface to talk with FRDM-KL25Z (mbed board) in order to configurate a component.
What I would like to do is to create one stream bit containing in that order:
the 8 bits of data + the number of the register + R/W bit + binary value 011
This bit stream should be sent after i clicked on a "launch" button.
I joined what I started doing but it's very poor of content. It's my first attempt in Labview.
thank you for your help
First of all, I recommend using an Event Structure. It will make things a little easier to handle button presses.
Otherwise, what exactly are you having issues with?
I now have a "case structure" and if the launch button is pressed, then the process into the case will be executed. My issue is to create sequencialy the data to send to my mbed target from ring menu, from Read/Write switch and Value case. Should I copy paste three times the "mbed write" object and one will be connected to ring menu, other to value case and the last one to Read/Write switch?
Or is there a more elegant solution, doing this with only one "mbed write" object and create step by step one only string containing the sequence of data?
Thank you for your help,
If you are repeating steps, that sure sounds like a FOR loop would be useful. For a series of Writes, I would make an array of messages to send and then use a FOR loop to index on those messages and write inside of the loop.
Thank you crossrulz, later in my project I'll have an array to send yes. I will use a for loop. But on this topic it was only one specific message I wanted to send so no need of a for loop. My goal is to program an interface similar to this one: Interface analog devices but compatible to my target.
BTW I found a solution on my own (see attached file). If I don't understand how to access my array using for loop I'll come back in another topic 🙂
Thank you for your advices