09-14-2017 04:14 PM - edited 09-14-2017 04:26 PM
Hello I'm new in this kind of programming but I made and interface that reads one analog signal, control 4 digital inputs and outputs and modulates one output with a pwm, the programing is done and it works must of the time, but sometimes it really haves a big Delay until at some point is really heavy for the computer or the micro controller too answer, it stops working and also the comunication with arduino changes to Error 5001 or 5002.
I have tryed different things, but nothings seems to work I have put everything in a while loop cycle, separe loops, and also using sub VIs can you help to find the problem or any recommendation of how can I make it more effecient and faster and also if you recommend arduino MEGA or UNO, cause I have both and for the number of signals it seems to me UNO is fine but due to the signal speed and processing maybe will be better if I use a MEGA. Please let me know and really really thank you
This is for the VIS documents
"Interfaz Final con modificaciones"in this VI I use two2 while loops, let me know is this option is good and can be modified or not recommended .
"CONTROL DEL REACTOR" Is almost the same VI but the process are separated in differents while loops and with not very organized in the interface.
and lastly "CONTROL DEL REACTOR SUB VI" is the process with sub Vis and the Sub vi.zip is the folder with the corresponding sub vis. Again thank you
09-15-2017 05:43 AM
Hello and welcome,
unfortunately I am not able to solve your problem right away. This is mostly because it is quite uncomfortable to read your code. So here are two suggestions:
- Stick to the LabVIEW style guide (e.g. block diagram should not exceed your monitor)
- Use a standard design pattern for your code. Therefore you should get familiar with common design patterns (e.g. state machine or producer/consumer) and use the one that suits best for your task.
I guess you will get a lot more help from other developers.
Best regards