04-05-2019 02:35 AM
this is NI7SegMetaFont numeric, and can it change with my multi-meter through RS-232 comport as the video data changes? thanks
Solved! Go to Solution.
04-05-2019 03:03 AM - edited 04-05-2019 03:04 AM
Hello whily,
this is not a question with a fast and easy answer. Supposing this one is the instrument you want to replicate on the PC screen, the solution implies several steps:
We will be happy to help you solving some problem in the process, but you will need to go through the above steps before we can help you effectively.
04-09-2019 08:13 AM
Maybe there is an easy way to solve it.
like set a timer and send "Get Value" command every 1.0 second.
this is sensible, but I don't know how to use a timer.
Need I set a timer callback or something else.
Thanks!
04-09-2019 08:28 AM
This appears as a solution for the last item in the list!
Provided all the previous steps are checked and working yes, a timer (as well as an async timer or a separate thread) is a way of mirroring instrument measures to PC screen.
Using a timer can be as simple as adding a timer control to a panel on the UI, adding a callback to it and putting instrument control functions in the timer callback. You can search for timer examples among the sample code installed on your system, bat basically the crucial thing in using a timer is to keep the timer callback as fast as possible to avoid interfering with other parts of the application (e.g. handling user events on UI controls). Also, do not forget that the timer callback is an asynchronous event: that is you must protect shared resources from concurrent access by the timer and other events; moreover, a variable or control value can be modified inside the timer callback in every moment, so you must be careful in how to access them from other parts of the application.
04-11-2019 03:19 AM
After I use the function timer, my program becomes very laggy even if when I click the off button.
But when I set a larger timer interval, it becomes not so laggy. why is this, and how can I solve it except set a larger timer interval?
Thanks!
04-11-2019 11:37 AM - edited 04-11-2019 11:37 AM
I don't like to play the "guess what" game: post you code so that we can look at it.
In the meanwhile try answering this questions: how long does the timer callback lasts? And what is the timer interval?