For starters im not a programmer. I have worked with c+ a little and am pretty good with PLC's but i dont have any formal training and i really dont know what im talking about. That being said, im working on this HMI by RedLion that is mostly configured visually but also has its own C like language for performing more complicated tasks, but the library is limited. I have this HMI receiving a raw ascii stream of data from a C+ programmed solid state engine control unit. Occasionaly this streaming data is interrupted by a message such as "hydraulic pump low oil". I have this message and all others being parsed correctly but where i stumble is keeping the last message. I want ever new message to bump the last, such as : 1st message becomes second when new arrives,2nd becomes 3rd and on. basically passing the message from one identifier to the next when a new one comes in. here is what i have, i think i know why its wrong but i cant come up with something that works. PLEASE HELP!!
I actually tried something similar to this but the problem is that i am not able to #include any libraries. i am not actually programing this in C+ but it is C like in syntax. In short this thing is almost as dumb as i am. It doesnt recognise #include or namespace std. The documentation on the website is terrible but if your curious about what im working with its this. Can you think of something even more ridiculously simple than your last example. using if, then type operators?
yes, no previous message is kept. input1 is written to all Msg. I want LastMsg to always = input1 but if input 1 changes the old needs to move to msg0.
awesome, sounds exactly like what i was thinking but dont have the vocabulary to say. Ill keep plugging away with the new keywords. Thanks, i hope to have an update soon.