LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seperate start stop button for analog output

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

 

0 Kudos
Message 1 of 16
(3,882 Views)

Hi,

 

I am not sure, if I understand your problem from your description. Can you explain the goal here?

 

Martin

0 Kudos
Message 2 of 16
(3,877 Views)

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

0 Kudos
Message 3 of 16
(3,865 Views)

Sorry to say that i need some ideas quickly

0 Kudos
Message 4 of 16
(3,863 Views)

Hi dinesh,

 

implement a state machine when you want to execute certain states based on conditions (aka boolean buttons in your case)!

 

Btw. NEVER delete the labels of controls/indicators!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 16
(3,845 Views)

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

 

0 Kudos
Message 6 of 16
(3,839 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 16
(3,831 Views)

 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

0 Kudos
Message 8 of 16
(3,781 Views)

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

0 Kudos
Message 9 of 16
(3,795 Views)

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
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 16
(3,772 Views)