08-15-2005 02:17 PM
08-16-2005 04:38 PM
08-17-2005 03:38 PM
Hi E.Lee,
I tried to do the two things: selecting the cFP controller target and download it to the controller.
But I wish to download it to the controller and acquire the data from a TCP connection, and view the data in the host computer. The VI runs rightly when I run it from the host computer. But when I try to run it selecting the the cFP controller targeting , or downloading it to the controller and having the VI run when you reboot the cFP controller, the frequency returned is wrong (for example: running in the host computer the frequency returned is 2500 Hz. Selecting the cFP controller target and running the same VI, the frequency is between 5 and 10 Hz !!
Any sugestion will be appreciated
08-18-2005 05:53 PM
08-19-2005 10:19 AM
08-22-2005 04:18 PM
Hi letreca,
I took a look at your code and it doesn't look like
anything is really wrong there. There was one thing that I think might
help you. Because you do not have any sort of data dependencies, you
could be causing a condition where you are resetting the counter before you
read it. The best way to change this would be to connect the error out of
the Read.vi with the error in of the Write.vi.
You mentioned in your first post that you were using
Frequency Measurement.vi from the example finder (Browse > Hardware Input
and Output > FieldPoint > Advanced); however, the code for frequencia.vi
looks completely different. If you run the example do you get the same
behavior?
I think you may be having an issue mentioned in the first
paragraph because you may be resetting the counters too early. Try the
example and if that works, use the same technique. If that doesn't work,
then try to modify your existing code as described. If neither works tell
me what has changed and what hasn't so I can try to take a closer look into
everything.
Regards,