03-14-2019 01:06 PM
Hi,
My program needs to ramp up to a particular value and then ramp down, and this has to go on forever. I can use a switch to manually do this. If this switch works automatically, then my program will work continuously. Can someone tell me how to make automatically on and off switch?
Regards,
03-14-2019 01:12 PM
Fortunately, LabVIEW is a real programming environment, so this can be done easily. The solution depends on how you do the ramping, so show us your VI.
03-14-2019 01:13 PM
Instead of a button, store a flag in a shift register and you can do just a little analysis to set or clear the flag so you know which way you are ramping.
03-14-2019 01:26 PM
hi,
I need to make ramp(Boolean) on and off forever. True case in the case structure is a ramp up and false is a ramp down.
Regards,
03-14-2019 01:28 PM
hi,
sorry for not uploading the vi.
03-14-2019 02:15 PM
Sorry, I don't quite understand the code. Apparently this runs under RT. Why these bewildering constant conversion between datatypes (FXP, SGL, I16, etc). What the reason for the +1followed by -1 in the outer false case?
I'll have a look....
03-14-2019 02:34 PM
Here is a quick draft. I would probably pre-compute the ramp and then simply index into it.
06-21-2019 02:03 PM
I can't open in LabVIEW 16.0
06-21-2019 02:41 PM
Saved back to LV 14.
06-24-2019 07:37 AM
Thanks,