08-21-2017 07:54 AM
Hi here i need to create analog output with start, stop and reset button i have attached vi here take a look at this i want to start sending the analog output and i need to stop at certaian value and i again i need to start and also i reset button but in the vi i made it was not working properly is there any other method to do this, need some ideas here quickly,
Regards,
Dinesh
08-21-2017 08:05 AM
Hi,
I am not sure, if I understand your problem from your description. Can you explain the goal here?
Martin
08-21-2017 08:25 AM
Hi,
Actually when i press the start button it should start sending the signal i mean if i enter voltage 1 or 0.1 from that second it should start send the signal if i again press stop it should stop and if i press the reset button the sending voltage should come to zero and if i again enter the start button the iteration should start with initial value 1
08-21-2017 08:32 AM
Sorry to say that i need some ideas quickly
08-21-2017 08:51 AM
08-21-2017 08:56 AM
is there any chance i could do simply now i need to submit a report tomorrow well i'm not familiar with state machine program much
Regards,
Dinesh
08-21-2017 09:15 AM
Hi Dinesh,
is there any chance i could do simply now i need to submit a report tomorrow well i'm not familiar with state machine program much
Well, surely there is a (light) chance to go there without a state machine.
When you want to have a scalable, (hopefully) well documented code you should implement a state machine. That's my recommendation!
And it always helps to plan your algorithm on a sheet of paper before starting the actual coding work!
08-23-2017 07:41 AM
i have created this vi to start and stop the analog output voltage and also i can reset it but when the output reaches max voltage it was not reinitialise to zero
08-23-2017 08:00 AM
i have created this vi to start and stop the analog output voltage and also i can reset it but when the output reaches max voltage it was not reinitialise to zero
08-23-2017 08:09 AM - edited 08-23-2017 08:10 AM
Hi dinesh,
when the output reaches max voltage it was not reinitialise to zero
Where exactly did you program this requested feature?
The VI will only do what you have it programmed to do…
Suggestion:
IF actual voltage >= max voltage THEN actual voltage := 0