FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

FP1000 serial port/ must know if connected

Hello,
i am using Labview 6.1 with FieldPoint 3.0.2
I open the communication with the FPOpen.vi,
create a Tag with the FPCreateTag.vi and Read a
value with FPRead.vi from my FP-AI-100.
My problem is that LabView read everytime a variable,
also when i disconnect the Field Point from the serial port. Then LabView shows a "0" in my variables, but there occur no error. If i connect the Field Point it read without problems.
I want a error message from LabView if i disconnect the Field Point from the serial port or when no Field Point is connected if i start the FPopen.vi. How can i do this?

Best regards
Patrick Frank
0 Kudos
Message 1 of 2
(3,055 Views)
Patrick,

The FP Open.vi launches the FieldPoint Server but does not directly cause any communication to serial network modules. Thus you can not find out if communications are valid from the FP Open.vi

The FP Write.vi, FP Read.vi and FP Advise.vi are the only VI's (on the standard palatte) that cause communication to serial network modules. If the communication fails, the FieldPoint server waits a specified amount of time (Time Out period) and retries communications (Retry Count). If all communications attempt fail, the FP Read/Write/Advise VI will return default data and Error Code indicating that there was no response within the timeout period. However, because this is not a fatal error, it will return a positive error code number and will not set the
error boolean to true. I do not recall the error code number for communications timeouts, but you can check for it in your code.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
Message 2 of 2
(3,055 Views)