03-03-2011 02:18 AM
Good day, I already study the example you gave. I would say thank you because it helps me so much. But now it seems I got some problem with my coding.
Problem : 1) the program that I made calculate the pulse too slow & not following the actual rotation of the encoder
You can the the program Ive made in attachment ,Can you advice to me whats wrong?
NI SCOPE PCI 5102 & LABVIEW 7.1
03-03-2011 09:26 AM
I see three problems with your code.
03-04-2011 03:11 AM
Dear Sir,
Thank you for your support, I already try the suggestion (1) and (2) as your advice, but currently im having the problem as below :
1) The Program running still slow and not following the actual rotation of the encoder
2) I dont understand how to use suggestion (3) as your previous advice
can you or anyone here support me regarding these matter?
Refer attachment for more detail
Im using Labview 7.1 and PCI 5102 NI SCOPE
03-04-2011 08:32 AM
There is another issue in your code - you do not set the active and other channels, as I showed in my original example. Use a property node for this. You can find a property node in the Application Control palette or at the bottom of the NI-SCOPE palette (may not be there in LabVIEW 7.1).
The easiest way to get rid of problem 3 is to simply delete the code. It appears to be giving you the same information you are getting from the NI-SCOPE measurement. Given your original problem, you do not appear to need it.
If you do need it, I would recommend putting it in another loop so the data acquisition loop is not slowed down. Look up producer/consumer examples and give it a try.