09-14-2010 03:41 PM
Hello Everyone,
Can anyone please sugest me how to keep the waveform chart updated even if I am changing the states in a state machine??
I am having analog inputs on the waveform chart...
Thanks in advance...
09-14-2010 03:46 PM
Hi,
I think ou would need to place the chart outside the case structure but within the while loop. If you post your code we could understand your problem more clearly.
Michael.
09-14-2010 03:46 PM
Hi CrackJack,
can you give us more information please? Do you currently write the data from one case and now you need to change the state?
You can place the indicator outside the case structure and store your data inside a shift register, so you can write into your waveform from different states.
Mike
09-14-2010 03:56 PM
hello guys,
thanks a lot for the suggestions, here is the attached code... please follow the following steps to run it..
ONce you hit play,press either Start Main/Cyl UP button on the front panel,
once you start observing the waveforms, you can press the Cyl_Dwn button on the front panel... You can observe that the state changes to Start Counter state,
and the waveform chart also stops updating... I would like both the waveform charts to conitnuously show the data even if the state is changed....
09-14-2010 04:33 PM
Guys, do you need any more details about what Iam doing/???
09-15-2010 12:00 AM
Hi CrackJack,
you write your waveforms only in the "1" case. If you want to update from more/all states, then you have to handle these indicators like you handle the state indicator.
Mike
09-15-2010 03:05 AM
Hi CrackerJack,
You need to have a look at some state machine examples, I have modified your code slightly to get you started, its not perfect but I hope it gives you the right idea.
Michael.
09-15-2010 09:20 AM
thanks a lot RiversDaddy, but can you please save it in lv 8.0 version???
09-15-2010 09:22 AM
@MikeS81 wrote:
Hi CrackJack,
you write your waveforms only in the "1" case. If you want to update from more/all states, then you have to handle these indicators like you handle the state indicator.
Mike
You mean I should have a DAQ in every state??? Or how/? Can you please elaborate/??
09-15-2010 01:21 PM
Hi,
I cannot save for previous version without the Vi 'waveform generation current.vi.' Post this VI and I will compile for you tomorrow.
Michael