Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

run two loop simultaneously but time doubled

Solved!
Go to solution

Hi guys,

 

I am try to read two ion chamber simultaneously. Read IC0 and Read IC1 have one while loop each.

These two subvi can run simultaneously but the time cost still doubled.

Why?

 

Thanks a lot!

Capture.PNG

0 Kudos
Message 1 of 6
(3,520 Views)

How are you communicating to your chambers?  It is likely the communication API cannot be ran simultaneously.  Therefore one has to wait for the other to complete.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,514 Views)

I use RS232 to read there two chambers. (Com1 & Com2)

0 Kudos
Message 3 of 6
(3,510 Views)

yeah, your COM vis may need to be marked "re-entrant"...

0 Kudos
Message 4 of 6
(3,493 Views)

I tried. It didnt work

0 Kudos
Message 5 of 6
(3,485 Views)
Solution
Accepted by topic author yonghua.du

Hi guys,

 

Thanks for your response.

 

I found the issue. I put the delay between write and read COM. See the following figure. The timer were put in IC101 Resp.vi. After I moved it out, my code can work well.Capture.PNGIt's work well

0 Kudos
Message 6 of 6
(3,483 Views)