02-19-2009 05:32 PM
I am using the DAQmx System property node to read all the scaling data for global thermocouple channels in MAX. I am using MAX 4.4, LV7.1.1, with an SCXI chassis in a PXI-1050 rack. It seems to read the properties fine when first run. However, if one then changes a global channel property in MAX (e.g a scale factor or a thermocouple type) and saves this in MAX, and then reruns the Property Node, it still reads the old MAX data. To get it to read the changed data, one must close the VI and then re-open it. This is tedious when one is recalibrating a large set of thermocouples using MAX.
Is there any way to force the DAQmx System property node to re-read MAX each time it is run, without closing its VI?
See attached. Run the standalone VI called ..MAIN. See instructions on the VI.
Thanks
Tim
Solved! Go to Solution.
02-23-2009 03:37 AM
Hi Tim,
Thank you for posting on the discussion forums.
I tried your VI and I got the same behavior. However, to be able to know the reason for this behavior, I need to check the block diagram.
Is it possible to post a code that is not passwork protected?
Best Regards,
Faris A
02-23-2009 10:44 AM
02-25-2009 05:03 PM
Hi Tim,
The reason your main VI wasn't updating is because you did not clear the task after everytime you call the DAQmx property node.
Attached is a modified version of your code that works. I just added the DAQmx Clear Task.vi in the FindChanProps.vi.
Best Regards,
Faris A
02-27-2009 10:48 AM
Muchas gracias, Faris! That's all it required. I guess one should read the instructions!
I appreciate the prompt response.
Tim