LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

reset fieldpoint module !!

We are using an FP-1000 and FP-1001 along with TC-120's and
DO-400's. Our program runs fine if you have just opened the CVI program
, but if you run OUR program a couple of times without exiting CVI, it runs

improperly, as though the board is not resetting itself at the onset, or
the
"*.iak" file is being modified...How do you reset the FP network ?!!? Please
help. I tried FP_Close , FP_DestroyIOPoint... all with no success. Please!
0 Kudos
Message 1 of 4
(3,329 Views)
The FP modules don't need to be reset, you just have to properly disconnect
from the driver. When shutting down you would call FP_Stop, then Destroy
any I/O Points you created with FP_DestroyIOPoint, then call FP_Close. If
you open multiple sessions you will have to do this for each session. It
sounds like your program isn't properly disconnecting from the driver. Try
one of the example programs also and make sure you can run it multiple times
without shutting down CVI.

Best Regards,

Chris Matthews
Measurement Studio PSE

"Jeff Blackburn" wrote:
>>We are using an FP-1000 and FP-1001 along with TC-120's and >DO-400's.
Our program runs fine if you have just opened the CVI program>, but if you
run OUR program a couple of times without exitin
g CVI, it runs>>improperly,
as though the board is not resetting itself at the onset, or>the >"*.iak"
file is being modified...How do you reset the FP network ?!!? Please>help.
I tried FP_Close , FP_DestroyIOPoint... all with no success. Please!>
0 Kudos
Message 2 of 4
(3,329 Views)
I have tried calling the FP_DestroyIOPoint and FP_Close functions to no avail,
doing them just as you said. I am not using an FP_Advise function, and so
haven't included the FP_Stop function, I was told by an NI technician that
the advise wasn't necessary, and so don't have a TaskID..It still is not
disconnecting properly.

"Chris Matthews" wrote:
>>The FP modules don't need to be reset, you just have to properly disconnect>from
the driver. When shutting down you would call FP_Stop, then Destroy>any
I/O Points you created with FP_DestroyIOPoint, then call FP_Close. If>you
open multiple sessions you will have to do this for each session. It>sounds
like your program isn't properly disconnecting from the driver. Try>one
of the examp
le programs also and make sure you can run it multiple times>without
shutting down CVI.>>Best Regards,>>Chris Matthews>Measurement Studio PSE>>
"Jeff Blackburn" wrote:>>>We are using an FP-1000 and
FP-1001 along with TC-120's and >DO-400's.> Our program runs fine if you
have just opened the CVI program>, but if you>run OUR program a couple of
times without exiting CVI, it runs>>improperly,>as though the board is not
resetting itself at the onset, or>the >"*.iak">file is being modified...How
do you reset the FP network ?!!? Please>help.> I tried FP_Close , FP_DestroyIOPoint...
all with no success. Please!>
0 Kudos
Message 3 of 4
(3,329 Views)
I was having similar problems with synchronous reads. Even with Fieldpoint
Explorer, sometimes 4 of 5 modules would work fine but the 5th would return all
zeros, otherwise giving no indication that something was up. A reset would
solve the problem, but there's no easily discernable way to do this
programmatically, and who would want to have to rely on a reset anyway? After
changing the timeout to a relatively high 300ms, the polling to a relatively low
40ms, and retry counts on all modules to "2" (all from within FP Explorer) the
problem went away for good.

Also, you may want to verify, if you're using an "All" tag, that all the data
sent is valid, all the time, even if you're not using all the channels.


Jeff Blackburn wrote:

> We are using an FP-1000 and FP-1001
along with TC-120's and
> DO-400's. Our program runs fine if you have just opened the CVI program
> , but if you run OUR program a couple of times without exiting CVI, it runs
> improperly, as though the board is not resetting itself at the onset, or
> the "*.iak" file is being modified...How do you reset the FP network ?!!?
> Please help. I tried FP_Close , FP_DestroyIOPoint... all with no success.
> Please!
0 Kudos
Message 4 of 4
(3,329 Views)