Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

property nodes

I am experimenting with property nodes in my daq program but the problem is that instead of editing the MAX task, all the property nodes do is ask for new inputs.  Is there a way to do this where the MAX configurations are defaulted but the user can edit them if needed?
0 Kudos
Message 1 of 5
(3,034 Views)

Could you post a VI that is a bit more readable? The wires are going in every which direction. Neatness DOES count.

 

From what I can tell though, your program always modifies the task. I would suggest that you first read the existing values of the properties and set the front panel controls to those. Have an event structure and a value change event for the front panel controls and then write those new values to the task.

0 Kudos
Message 2 of 5
(3,031 Views)
So I could just wire in the read node between the task in and the daqmx start task.  A simpler version of my code is attached
0 Kudos
Message 3 of 5
(3,026 Views)
No. You don't have a 'read node'. You would right click on the property node and select 'Change All to Read'. Use these values to set a local variable of the Samples per Channel/Sampling Rate/Sampling Mode. Start the task and write the header. Then in while loop, you would have an event structure. One event would be value change for the front panel controls. Another event would be to acquire. Another event would be to exit. I'm assuming that you want to do a single acquisition on demand because that is how you have written the code now.
0 Kudos
Message 4 of 5
(3,023 Views)
i assume I can change channel properties such as max/min and channel port locations also.  How would I go about wiring these in since I don't use the create channel vi
0 Kudos
Message 5 of 5
(3,011 Views)