FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Error reading two remote FP defined in two iak files

Error reading two remote FP defined in two separate iak files called by two separate VI..

I've one FP 1000 connected to a serial port(COM1) and another FP 1000 connected to another
COM port (COM2) through a telephone line (two modem are used).

The FP on COM1 must be readed by one VI and the FP on COM2 must be readed by another VI.

To activate the conection between the two modems (read the FP on COM2), the command string
ATDTthelephonenumber must be sent via VISA Session on COM2; when the connection is good,
I can close the VISA Session and run the OpenIak and the FPRead...ok!

How can I run the two VI in this condition?

If I use only one iak file with two Resource (FP on Com2 and FP on Com 1), the O
pen Visa Session
Cause an error in FP Read on FP-Com2.(Running before the VI with Open VISA Session (FP o COM2),
and after the function VISA Close the VI with the simple FPRead on COM1, there are no problem...but i want
two separate VI and not two VI in sequence!)

The right choice can be the use of two iak file (one for the FP-COM1 and one for the FP-COM2)
called by the two indipendent VI.....in this case the error in FPRead(and FPWrite) is
Code 32835 "Memory allocation has failed." !!!

I use FP Explorer 3.0.1, LW6i, Windows NT & 98

How can i resolve my problem?

Thanks and...excuse my english!
0 Kudos
Message 1 of 2
(3,280 Views)
Fabio,

Currently FieldPoint Explorer only allows one instance of the FieldPoint Server to launch at a time. Thus the first FP Open.vi that you call will open the FieldPoint Server with IAK1.iak and when you try a second FP Open.vi with IAK2.iak, the return code is successful since the FieldPoint Server is launched, but it is still using IAK1.iak. If you want to use two separate IAK files, you would need to run the FP Close.vi to close the server prior to re-launching it with the second IAK file. Alternatively, what may be better for you is to create a Data Server application, that can handle using a single IAK to talk to either bank of FieldPoint modules and makes the data available (via datasocket, globals, FIFO's, etc...) and then your programs just talk
to the data server and do not have to worry abouth whether the other VI is running or not.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 2
(3,279 Views)