LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"DAQmx System" global channel property node does not read changed MAX global channel data after 1st run

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(3,004 Views)

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

Bueller
0 Kudos
Message 2 of 5
(2,974 Views)
Ooops! Sorry, Faris. New file attached, without P/W.
0 Kudos
Message 3 of 5
(2,963 Views)
Solution
Accepted by TimTower

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

Bueller
0 Kudos
Message 4 of 5
(2,941 Views)

Muchas gracias, Faris! That's all it required. I guess one should read the instructions!

I appreciate the prompt response.

Tim

0 Kudos
Message 5 of 5
(2,925 Views)