Jump to content

How to use PXI-8430/8 for simultaneous communication


Recommended Posts

Hello,

 

NI PCIe-8430/8 support independent serial communication on each of its 8 ports,

which means it can perform simultaneous communication, and here the problem I encountered.

Can you help me to figure out why I cannot perform simultaneous communication?

 

My code can perform simultaneous communication using onboard RS232.

Below is the screenshot

 

 Note: I only use one sub vi and set the VI property execution reentrancy to pre allocated clone reentrancy execution, each clone sub VI have difference port setting.

             What other parameter need to set so the NI card will work simultaneous?

 cc.JPG

Link to comment

So I've never used this particular piece of hardware before.  But on Windows I have had a 12 port RS-232 serial device, connected via one USB to the PC and was able to communicate multiple ports in parallel.  The solution for me was to use the parallelized for loop instead of plopping down multiple copies of the same VI.  Right click the for loop and configure the parallization in your case setting the number of generated parallel loops to at least 8.  Then use code similar to this with your subVI configured to reentrant of some kind.

Example_VI_BD.png

But honestly I can't think of a reason the parallel for loop would work, if your static declaration doesn't.  Is there some other subVIs in your subVI that isn't reentrant?  This could be a blocking call making all the other loops wait on each other anyway.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.