03-21-2017 03:39 AM
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?
03-22-2017 09:04 AM
Hi Spyruspy,
Have you confirmed that you can communicate on one port at a time?
Are you receiving some type of resource error when trying to use all 8 ports?
What cabling are you using between the device you're communicating with and the 8430/8?
03-27-2017 12:04 AM
Hi Andrew,
Have you confirmed that you can communicate on one port at a time? yes already confirm,i can communicate on one port at a time.
Are you receiving some type of resource error when trying to use all 8 ports? with my code structure above,there is resource error.
What cabling are you using between the device you're communicating with and the 8430/8? rs232 male to female cable sir
03-27-2017 12:22 AM
Hello,
here is my LV code,please open the System UUT Setup.vi,this structure is working in using the on board rs232 of industrial PC.
i note that there is difference between FIFO settings...i also try to change the settings,but still i cannot communicate in parallel
use of port..
03-28-2017 03:44 AM
Hi,
Firstly I would check the configuration file is being read correctly (your zip file does not include this) and the serial ports returned are valid for your system.
Do you have the actual error code/message reported for each position?
In your code you open each port and perform read/write communications but the port is never closed. Do you have any other instances of this LabVIEW code running that may have already opened the ports and not released to references?
03-28-2017 04:09 AM
Hi Sir,
First of all thanks for your reply, please see attached file,
Do you have the actual error code/message reported for each position? i don't have the screenshot as of now,because im home already.
i was reading your post at
http://swinders.co.uk/multi-threaded-labview-execution/
Do you have full sample LV code on how to communicate in serial port with multi tread /simultaneous/each port is functioning at the same time..
Thanks
04-07-2017 03:39 PM
Hi Spyruspy,
Have you been able to get the screenshot of the error message?
Also, did you write all of the code yourself, or did you get this from somewhere else?
Thanks