Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Retreiving a Numeric Value for a DSA Module's Sampling Rate in LVFPGA

Primary Software: LabVIEW Modules>>FPGA Module
Primary Software Version: 8.6.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
Using a IO Property Node, I can retrieve the data rate enum from a Dynamic Signal Acquisition module. However, this enum does not provide a numeric value for the sampling rate (50k), but rather a value for the enum (2).

I want to get the numeric value for the sampling rate programatically so I can use it in my code. Is there a straightforward way to do this?

Solution:
Using the StringsAndValues property node, the values for the corresponding enum numbers can be extracted. After obtaining this data, it can be converted to a constant and referenced in LV FPGA  to determine what enum value means what data rate. This technique in practice can be seen in Figure 1 and the attached VI.


Figure 1


Related Links:
Product Manuals: C Series Manuals

Attachments:

Get 923x Data Rate Double.viGet 923x Data Rate Double.vi






Report Date: 06/01/2009
Last Updated: 06/03/2009
Document ID: 4Y0DLNBP

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit