LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I run serial operations parallel?

I am creating two message simulators, one is serial and one is Ethernet. The Ethernet is working fine but, the serial is not. I am formating a message and writing it to the port while it is also reading status coming in. That part is working fine but, I have to also send out a heartbeat every so often and cannot because it cannot do both loops in parallel. I am not sure why it is working fine on my Ethernet and not on the serial. Thank you, Molly
0 Kudos
Message 1 of 5
(2,827 Views)
MollyHix wrote:

> I am creating two message simulators, one is serial and one is
> Ethernet. The Ethernet is working fine but, the serial is not. I am
> formating a message and writing it to the port while it is also
> reading status coming in. That part is working fine but, I have to
> also send out a heartbeat every so often and cannot because it cannot
> do both loops in parallel. I am not sure why it is working fine on my
> Ethernet and not on the serial. Thank you, Molly

Do you have the two opearions serial and ethernet in their own,
independant (meaning not one single wire between them) loops?

That should get you already quite some way in what you want to do.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(2,827 Views)
They are two different vi's, sorry should have explained better.
0 Kudos
Message 3 of 5
(2,827 Views)
Look at what this guy wrote:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000091D20000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

They recommend making your vi re-entrant.
Message 4 of 5
(2,827 Views)
Thank you so much RJay!! This worked great. Molly
0 Kudos
Message 5 of 5
(2,827 Views)