LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a property node for returning a DAQmx task's configuration

Solved!
Go to solution

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?

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 7
(3,376 Views)
Solution
Accepted by topic author lmd2

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.

Message 2 of 7
(3,360 Views)

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

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 7
(3,350 Views)

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.

0 Kudos
Message 4 of 7
(3,341 Views)

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

 

 

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 5 of 7
(3,322 Views)

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

 

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
Message 6 of 7
(3,316 Views)

I was actually working in 8.2, but I'm glad you found out the issue with the properties not being listed.

Message 7 of 7
(3,309 Views)