07-03-2021 09:16 PM - edited 07-03-2021 09:18 PM
I would like to ask my idea.
There is a well-organized applicaton in the update rate of 1 sec for measurement and calculation in our system.
One more instrument will be added to control the operation but I don't want to change the application so much.
In order to control the system, I need to make the independent application by reading "current" values of 3-4 DBL variables from the existed application and monitoring the change of variables in every 0.3-0.5 sec.
It is "not" neccessary to transfer some data from the new to the existed application.
Two applications will be executed in the "same" PC.
In this case, maybe I can use VI Server to read the variables (no change of existed application) or shared variable (minor change) between two application.
My question is which method is the best for my purpose or other best way? (memory or performance)
labmaster.
07-03-2021 10:27 PM
Your description makes no sense. You say that your current application is taking data with an update rate of 1 s. You want a new application to get data from the old application that monitors for changes that happen every 0.3-0.5 s. How do you expect to do that?
Outside of that the changes that you are proposing sound minor. Why not just update the existing program? If you're worried about timing just send the data to another loop via a queue.
07-03-2021 11:17 PM - edited 07-03-2021 11:18 PM
The application is to test the system with new attached instrument temporarily in my side.
The time peroid in a new application is to wait for the target value in the system without missing data.
labmaster.
07-03-2021 11:22 PM
@labmaster wrote:
The application is to test the system with new attached instrument temporarily in my side.
The time peroid in a new application is to wait for the target value in the system without missing data.
labmaster.
This seems way more complex to me than just adding the instrument to the existing code. You can use source control to revert to the current version once the temporarily added instrument is removed.