I communicate with instrument over RS485 by using LabVIEW 7 on Window XP. The instrument makes the bus busy when it works by sending the CTS is not ready. The busy of CTS line also depended on the integration time.
I want to measure the time that CTS is busy. Now I use the property node of serial to read the status of CTS (false or true). I don't know if there is some function that I could take this busy time ?
The point is I don't want to add so much step code for this time measurement into my program because I want to find out the time efficiency of LabVIEW code. (eg. how much time that I need more for LabVIEW program itself).
you just have to include a property node for serial communication into your program. One property is the CTS line. Then you have just measure the time if the CTS-line answear is not 1 or asserted. So you can get the time.
Time measuring can work with tick count(ms). You just have to substract it from beginning value.
Hi..R.T, Thanks for your solution. I try to do in your way by create the small program to simulate the CTS status (as in attach files). It works very well. but actually when I use in the real program which has the other sequencial stack in the while loop. it is not work any more. !! I don't know if I make some mistake