10-10-2010 04:30 AM
The tasks for this project are preconfigured in MAX, but on one occasion the operator needed to go in and change the sampling rate I would like to add a routine at startup to check the sampling rate of the configured tasks. I know that using a DAQmx property node can return task names, and channel names, but what I could use is a property node to return a task's sampling rate. Any one know of a way to do this?
Solved! Go to Solution.
10-10-2010 11:16 AM
If you place a Property Node on the block diagram, connect it to your task control. Then right-click on the property node and select the DAQmx Timing Class (Select DAQmx Class -> DAQmx Timing). Then select the Sample Clock -> Rate property.
10-10-2010 06:35 PM
well your solution sounds perfect and I don't know what may be wrong but my timing Class seems to expose no properties (?) @#$%^&*
any idea why?
please see the attached screen shot
thanx
lmd2
10-10-2010 10:08 PM
What's coming out of that subVI? I created a task in MAX and had a task control on the front panel, and what I indicated worked to get the sample rate.
10-11-2010 07:44 AM
the subVI outputs an array of DAQmx tasks. This client is still using LV 8.6
I know scripting exposes more properties, and in older versions of LabVIEW they were not all exposed. What version of LV is this working for you? I have been thinking of upgrading this client to 2010 - this may be a good excuse/ Again what version is this working for you>
thanks
lmd2
10-11-2010 08:21 AM
okay I have it, need to right-click > select filter > show all properties
then it shows up (I am not presently at the client's so am not connected to the hardware)
thanx agaain
10-11-2010 08:57 AM
I was actually working in 8.2, but I'm glad you found out the issue with the properties not being listed.