FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing IAK data

The FP Open and/or FP Create Tag VIs do not seem to read the IAK file every time.  Here's the scenario:  have a very basic (test) VI as shown below: 

After a few tests, I decide to change some channel names.  I have stopped my VI, but not quit LabVIEW.  I go to MAX make the changes and save the IAK (it gets downloaded to my bank).  I can see the new channel names in MAX and use them there just fine.  Now, if I switch to my VI and change the item constant and run the VI, I get a tag not found error (32812).  The FP Get Configuration Info.vi behaves the same, i.e., does not return the new channel name.  Obviously, the IAK isn't being read again.  It appears to be using a "cached" copy.  Why is it not read every time?

A workaround I have found is to force a "refresh":  drop a FieldPoint IO Control on the panel, Browse, and then force a Refresh using the button.  Now the above VIs read the updated info'. 

Any ideas why the IAK isn't read every time by the FP VIs? 

-Khalid

PS:  I know I should be using the latest-n-greatest FP IO Control..  but I don't want to in this case.

Message Edited by Khalid on 04-05-2006 04:26 PM

0 Kudos
Message 1 of 7
(4,401 Views)

Yeah, the .iak file won't automatically refresh LabVIEW unless you do one of the workarounds that you mentioned.

Fortunately there is a better way.  If you use a FP I/O constant instead of a string constant, then you can select Browse from the drop-down menu.  This will open up a dialog box and you can then click the Refresh button and it will refresh LabVIEW looking at the .iak file.

Hope this helps,

0 Kudos
Message 2 of 7
(4,388 Views)
Hello Otis,


Yeah, the .iak file won't automatically refresh LabVIEW unless you do one of the workarounds that you mentioned.

But why not?  Shouldn't it?  It's a bug, IMNSHO.  Where is the documentation that says the FP Open VI doesn't read the IAK every time? 


Fortunately there is a better way.  If you use a FP I/O constant instead of a string constant, then you can select Browse from the drop-down menu.  This will open up a dialog box and you can then click the Refresh button and it will refresh LabVIEW looking at the .iak file.

It's exactly same as my workaround -- I just suggested using the FP I/O control as an example -- and you're suggesting to use the constant for it.  Same thing, eh?

In any case, I don't want to use the FP I/O control/constant -- because, in my application there are many tags and I build them programmatically by reading a config file and using the FP Create Tag VI.  I used string constants to demonstarte the issue.  In reality these values come from a file.  

OK, granted that I won't be chaning the IAK when the app is running, but this is a pain during development and testing. 

-Khalid

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


@Khalid wrote:

In any case, I don't want to use the FP I/O control/constant -- because, in my application there are many tags and I build them programmatically by reading a config file and using the FP Create Tag VI. 


You can build an I/O point programmatically by concatenating strings and wiring the result string into the FP VI. I believe it will also survive configuration changes without needing a refresh, but I'm not sure.

___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(4,378 Views)

Thanks tst; just tried it and it behaves the same way.  Needs a forced refresh... aarghh! 

-Khalid

0 Kudos
Message 5 of 7
(4,364 Views)
Khalid,

I think you're making some good points here about it being annoying that it requires a forced refresh and doesn't just read the .iak file every time. 

My guess is that they chose not to implement a refresh each time because of the amount of time required. 

However, I definitely understand your concerns.  So it might help us if you could go to the Product Suggestion Center.

Thanks for your feedback.  I wish there was a better workaround for you, but right now I'm afraid there's not.

All the best,
0 Kudos
Message 6 of 7
(4,360 Views)

Hi Otis,

Thank you; I just entered a suggestion.  I must apologize for my tone in the earlier posts -- the frustration trickled into my words. 

-Khalid

PS:  I still think it's a bug... Smiley Tongue

0 Kudos
Message 7 of 7
(4,357 Views)