06-12-2019 05:35 AM
Hi,
I was wondering how I can start outputting a string once a specific character is detected. So for example my string, when the program is run, will output "llo~hello~hello~he", with the ~ serving as a synchronisation character. How can I make the string output as soon as tilde is detected, not straight away, so that I end up with ~hello~hello~hello and so on. My code is attached if it may prove useful.
Regards,
Christopher
Solved! Go to Solution.
06-12-2019 05:41 AM
06-12-2019 07:10 AM
So I'm looking at your code and have a few questions, or comments. Perhaps you can clarify, I'll number rather than bullet point to make it easier to reference if you'd like:
06-12-2019 12:03 PM
Thanks, this works perfectly. Much appreciated.
06-12-2019 12:10 PM
To answer your questions:
1) I'm using two myDAQs, one to submit a signal and one to receive it. It's a group project and I'm working on the receiver, which will take a signal and decode it from binary to ASCII. The signal is received as a waveform, and then the Y values are taken from the graph and compared to a comparison value which determines whether the value is greater than or less than the comparison value, aka true or false. This is then compared with the boolean true constant to see whether a 1 or 0 should be appended. The whole append string thing is not needed and it's just something I left in for checking with my project partner's receiver.
2) I'll have a look at what you mentioned - I took away the equals comparison thing and it works fine, so thanks for that.
3) I've just made these changes as well, thanks.
Oh and all the code runs perfectly fine, like I said it's just the representation of the text string I wanted to clear up. Thank you both for your help. Greatly appreciated.