FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programatically reset fieldpoint?

Is there a way to have LabVIEW do the same job as MAX if you click on the reset button. Refer to attached image.
0 Kudos
Message 1 of 8
(5,039 Views)
Yes. If you are using serial modules (FP-1000/1001), you will need to use the FieldPoint Serial Optomux VI's to send a reset command (!Z) to the unit. For ethernet modules, you will need to use the DataSocket browse to browse to the Reset item under the network module. I do not remember the exact path but it should be something like lookout:\\192.168.1.1\FP-2000\Control\Reset.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 8
(5,038 Views)
Does !Z copy the settings from the .iak file, in other words: do the devices (eg. FP-AI-110) keep their input ranges?
0 Kudos
Message 3 of 8
(5,038 Views)
!Z does not copy settings from the IAK file. However, depending upon the configuration of the FP-1000/1001 it either restores the user configuration following a reset, or returns all values to default. The decision on which to do depends upon whether or not the Factory Configuration checkbox is selected. Alternatively, you can set in LabVIEW with the !X command.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 4 of 8
(5,039 Views)
Unfortunately !Z does not work, neither on the AI-5V unit nor on the FP-1000 itself. (I couldn't test it sooner, because the problem occurs only once every few weeks) I have to stop the LV application (.exe), start MAX, click Reset, end MAX and start the LV application again and the it works fine. Is there an other way to get the same flow of bits through the RS232 cable as you get from the MAX-reset action?
0 Kudos
Message 5 of 8
(4,970 Views)
>>Is there an other way to get the same flow of bits through the RS232 cable as you get from the MAX-reset action?

If you use a serial port monitor program such as Portmon from www.sysinternals.com, you will see that the commands sent by NI-FieldPoint (in MAX) to the FP-1000 are the !Z command. One thing to note is that NI-FieldPoint will send the reset command twice in a row. This is done to account for the case in which the FP-100X may be in watchdog mode or have just been re-booted where the first command is expected to be Power-Up Clear. NI-FieldPoint also sends the Read Firmware Revision command (!e) but this has nothing to do with the module resetting itself.

How did you transmit the command? If the command was addressed to an FP-1000 at address zero it should have been ">00!ZDB[cr]" without the quotes and with [cr] being a carriage return (0x0D). Alternatively, you can use ">00!Z??[cr]" where the checksum is replaced with two question marks directling the FP-1000 to ignore the checksum.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 6 of 8
(4,963 Views)
I used the Extended Optomux !Z.
Would it be an option to close the Fieldpoint session and open a new one?
By the way, the root cause of all this trouble is the fact that an AI-V5 (0- +5V) on a TB-10 got startled and returns -5 Volts, for wich it has to be reset.

Rgds
Gerwim
0 Kudos
Message 7 of 8
(4,956 Views)
Hello Gerwim,

Thank you for contacting National Instruments.

What happens when you use the !Z command? Do you get an error? If so, what error?

Try using the Standard Optomux B command. This command also resets modules. Also, the following manual contains a lot of useful information regarding Optomux commands:
http://digital.ni.com/manuals.nsf/websearch/EE241C7357D3F8CE862567840072F554?OpenDocument&node=2180_US

Regards,

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 8 of 8
(4,932 Views)