NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Active Participant
LV_Enthu
Posts: 298
0 Kudos

how to keep the waveform chart updated when changing states in state machine/

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...

Now on LabVIEW 8.0 on Win XP
Active Participant
Michael78
Posts: 262
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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.

Proven Zealot
MikeS81
Posts: 5,371
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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

Active Participant
LV_Enthu
Posts: 298
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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....

 

 

 

Now on LabVIEW 8.0 on Win XP
Active Participant
LV_Enthu
Posts: 298
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

Guys, do you need any more details about what Iam doing/???

Now on LabVIEW 8.0 on Win XP
Proven Zealot
MikeS81
Posts: 5,371
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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

Active Participant
Michael78
Posts: 262
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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.

Active Participant
LV_Enthu
Posts: 298
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

thanks a lot RiversDaddy, but can you please save it in lv 8.0 version???

 

Now on LabVIEW 8.0 on Win XP
Active Participant
LV_Enthu
Posts: 298
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

 


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/??

 

Now on LabVIEW 8.0 on Win XP
Active Participant
Michael78
Posts: 262
0 Kudos

Re: how to keep the waveform chart updated when changing states in state machine/

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