I take a continuous sample rate and after DAQ, calculating temperature difference per minute (Cooling Rate: CR) during this process.This CR and temperature values are inserted into the Matlab script for a physical model running (predicting the temperature drop for next 30 sec).Then, I record and compare the predicted and experimental values in LabVIEW.
One of this outputs helps me to change the Air Blower Motor Speed until next matlab run( eventually affect the temperature drop for next 30 sec as well, which becomes a closed loop). After 30 sec while main process is still running, sending CR and temperature values to matlab model again, and so on. And inside of case structure i applied an elapsed time function to control the timing for the matlab script, but this is not working. Especially the part where you use the elapsed time functiuon with the case and the matlab script node. Matlab is also running and getting data feed from the main process. ![]() The main process data flow is also getting slower and not responding as fast as before. And for the matlab script all the values are jumping to zero after lets say 15 sec running, then calculate again a output value, and then become zero again. Use dataflow. E.g. Matlab To Labview Code With NoTinitial local variable, and reading from Tinitial local varaible in the chunk of code with no data dependencies. It is not known whether reading or writing will happen first. It may not manifest itself badly with small delays, while big delays may be an issue. If it is executing for a long time, it may freeze indicatorscontrols as well as execution of other pieces of code. Change execution system of other VIs in your program (say to other 1) and see if the situation improves. Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. ![]() Not the answer youre looking for Browse other questions tagged matlab timing labview or ask your own question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |