NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Setting Parallel_demo Mode

Solved!
Go to solution

Hi all

  I'm a newbie for teststand and build a simple parallel demo as snippet,why can't both show four interfaces and finished  has issue with it,It's appreciated for you help,thanks!!

Download All
0 Kudos
Message 1 of 4
(2,100 Views)

I guess it's not exactly clear what your goal here is.

 

I looked at your code and it looks like you never actually "lock" your lock.

 

You need to lock it.  You are creating it but not locking it.  I recommend changing that step to a lock and then check the create lock if does not exist box.

 

What four interfaces do you expect to see?  If you are locking then you would only see one at a time.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(2,047 Views)

Hi Jigg

   Thanks for your reply,I have modified it, it still can't both run four vi in windows,where need to change and if wrong in this code,my purposed is both show four vi in same time,thanks!!

Download All
0 Kudos
Message 3 of 4
(2,030 Views)
Solution
Accepted by topic author Sam.Huang

You need to change your VI to be re-entrant.  If it's not re-entrant (which is what you have it set to now) only one instance can exist in memory.

 

To change this, on your VI go to the VI Properties (Ctl-i)

Then select the Execution category

Then select the "Shared clone reentrant execution" option

 

Also, I noticed you need to connect your sequence context.  Just set it to ThisContext.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(2,009 Views)