FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple applications using same fieldpoint

I have built several applications using the same fieldpoint .iak file. They are built as stand alone applications to use on a single computer.

So far they work fine. My question is that when I am running one application and try running another, the first stops.

I am using different channels on the field point module for each application, but they both use the same .iak file.

Is there a way to build these applications so that several will run on the same module (different channel) at the same time if needed?

Jim
0 Kudos
Message 1 of 3
(3,297 Views)
Jim,

I don't now if your approach can work (e.g. the Fieldpoint driver allow it), however my way to solve that problem:

Write one vi that will do the Fieldpoint handling (Open,close,IO) and that run in its own treat(FPhandle.vi).
For communication you can use VI-Server (to start that vi and read a handle) and named queues for the data transfer.

A new.vi will load the FPHandle.vi with vi-server and look at an status-indicator telling if it's already running/FP-device opened etc.. If not: run it in the background
FPhandle.vi listen to a named queue ('FPhandlecommand') with a data type (cluster) including the string (name) for your return-queue ('new-return') and a command string or better a strict type defined enumerated (nice if you want to add new commands later)
You can/should collect a list of return-queue names and remove them from that list if they send you a FP-close command. When the list is empty you can really close the FP connection.
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(3,290 Views)
Would using two seperate .iak files work when I use two different programs to access two different channels (at the same time)???

Jim
0 Kudos
Message 3 of 3
(3,273 Views)