FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

FP write On Change Terminal

Hi all,
as shown in the attached picture I use the FP Write.VI
with the ON CHANGE terminal set TRUE. Testing the attached code I verify that often my output remains TRUE even if the code write FALSE. This happens only with the ON CHANGE terminal set TRUE.
Any hint will be usefull.

Thank you
Alessio Colzi
0 Kudos
Message 1 of 3
(3,211 Views)
Alessio,

The On Change input is used to tell the FieldPoint server to only write data when the data has changed. The data change is done by comparing the last value written to the current value input. However, this comparison is done on the data input to the VI directly and does not differentiate between different Tag names. Thus, in the code that you have posted (the FOR loop indexing through multiple tags), the On Change does not appear to work because it is comparing the last value written to the last channel vs the current value to be written to the current channel, it is not comparing the current value to be written to the current channel vs the last value to be written to the current channel. In order to use the On Change Input, you will need parallel ex
ecutions of the FP Write.vi and can not auto-index through multiple tags into the FP Write.vi.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 3
(3,210 Views)
Thank you for your help,
I have a lot of fieldpoint module output to write and so I have a global variable where I store all the output (every row is a module). According to your reply I can write code to make the "FP Write" only if a row is changed. Is this a good approach in your opinion?? Have you any advice for users that needs to manage a lot of fieldpoint output module (for example how to manage error from a single module)??

Best regards
Alessio Colzi
0 Kudos
Message 3 of 3
(3,211 Views)