How Can I Programmatically Reset a Counter on My FieldPoint CTR-500 in LabVIEW? Primary Software: Driver Software>>NI-FieldPointPrimary Software Version: 5.0 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: Compact FieldPoint>>Discrete I/O Modules>>cFP-CTR-500
Problem: I have an application using a cFP-CTR-500 that is performing event counting. I need to programmatically reset the counter. Is this possible and how can I accomplish this task? Solution: Yes, it is possible to programmatically reset your counter. To accomplish this you will need to perform the following steps:
1) In your LabVIEW project right click on your counter module and select Add New Item.
2) Choose Channel command:Control from the Type drop down box.
3) Select the Counter Input x: Command from the Data sources to include in this item section. Where x is the counter you choose to reset.
4) Make the Name something relevant such as Reset Counter x and click OK.
5) You can now drag and drop the generated tag from the project to your VI. Writing a 1 to this tag will reset this counter when this portion of code is run.
You can also create this tag from MAX by selecting the CTR-500 from remote systems. On the bottom right of the channel configuration tab you will be able to create a tag that can be used in any labVIEW VI.
Related Links: KnowledgeBase 1TB63SUS: Measuring Frequency With the FP-CTR-500/502 KnowledgeBase 2I0I6I5F: How Can I Create a 32-bit Counter Using the FP-CTR-500/502? Attachments:
Report Date: 08/30/2006 Last Updated: 05/14/2007 Document ID: 40TH70KG |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
