LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple vis with the same iak filedpoint

Hello everybody,

I have created 3 vis with the same iak file and the intention to run them on the same Fielpoint module each one individually. My FP is connected with an RS-232 on the COM of the PC. Up until now with my current knoweledge these vis cannot run simultaneously. However, I accidentally run the two of them and they seemed to be working fine. I even tried to run the 3rd one and still there was no problem. These vis share the same iak, the same FP module and two of them even read from the same channels.

Does anyone know how this is possible? I have tried it when I was new to Labview and it did not work. Is there some kind of option that I have activated without knowing it?

Thanks for the help Smiley Happy

Evdo.
0 Kudos
Message 1 of 3
(2,623 Views)
HI!
   You have created 3 top level VIs, right? And now you would like to run they toghether in a FiledPoint, if I understood correctly. 

   It is possible, except if they access different resources, I suppose. For example, it is not optimal that 2 VI access the same COM port (this is what you'd like to do, isn't it?).  Maybe, that's why they don't work together. 

   I think you should re-engineer your code to separate task into different VI: for example, you program to have only one subVI that open COM port, and the other subVIs, which formerly communicated directly to PC, send someway data to this subVI, and this subVI handle messages....

   What kinfd of FieldPoint module are you using? This can help..... Iak file should not matter, upon what you stated.

   have a nice day!

graziano

  
0 Kudos
Message 2 of 3
(2,618 Views)
Hi,
graziano is correct by telling you that multiple VI's can be run on a single FP.  Also I am suprised you have not received errors due to resource conflicts if two of your VI's do in fact read from the same channels.  As far as inadvertantly activating a feature and not knowing about it, there was probably something else causing you not to be able to run multiple VI's at once.  Were you using a different version of LabVIEW then? This could be the reason because running multiple VI's was introduced in LabVIEW 8.0 I believe.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 3 of 3
(2,586 Views)