LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Data through RS232 4 Serial port and VISA parallely

Solved!
Go to solution

Hello All,

 

I Have a Task to get a data from 4 measuring machines using NI DAQ serial card parallely  

 

the machine output are measured testing data and port is rs232 and I am connect 4 machines through NI serial DAQ to the computer

and I know to do program to get a data from 1 machine  at a time and problem is I need to get data from 4 machine parallely

like if I run 4 machine parallely the program should able to read all data at port without out loosing any data from it and save it to excel file.

 

can any one please help me to solve the problem

please revert back for any clarifications

 

looking forward fro your support

have a nice day

 

Vinay,

Vinaygowdamech5@gamil.com

 

0 Kudos
Message 1 of 23
(4,182 Views)

Hi,

 

         Which NI Serial Device are you using?

0 Kudos
Message 2 of 23
(4,173 Views)

Set up 4 VISA serial ports, then 4 VISA Writes in parallel and 4 VISA Reads in parallel.

You are always at the risk of losing data if one of the devices doesn't happen to return data for some reason.

0 Kudos
Message 3 of 23
(4,154 Views)

Could you add a schematic or a sketch showing how you are connected and what you want to achieve?

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 4 of 23
(4,153 Views)

I'm not confident that you can perform multiple VISA serial read or write operations in parallel, does anyone know? I recently tried to perform multiple VISA TCP/IP operations (on different IP addresses) simultaneously and found that at least VISA Open was blocking and couldn't be performed in parallel. 

0 Kudos
Message 5 of 23
(4,145 Views)

I would have separate loops for each port and use a queue to send the data back to the logging loop.  I would also use TDMS to make things a little simpler since you can specify which channel the data goes into.


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 6 of 23
(4,139 Views)

hello,

I am new to the LabVIEW can you please elaborate more about to get data parallel from Visa NI rs232/4

and I have one basic question for you

  • how to know that which machine data is get through the NI RS232/4 serial port device while running parallel and how to recognize it ?
  • can please make basic program to run visa parallel please do need full work

looking forward for your support

have a nice day

Vinay,

Vinaygowdamech5@gamil.com

0 Kudos
Message 7 of 23
(4,094 Views)

NI serial device USB RS232/4

0 Kudos
Message 8 of 23
(4,089 Views)

Hi Vinay,

 

how to know that which machine data is get through the NI RS232/4 serial port device while running parallel and how to recognize it ?

When accessing the COM ports you should know which device is connected to which COM port…

When your devices offer the possibility to read some ID data you could try to ask them for that ID!

 

can please make basic program to run visa parallel please do need full work

Use the BasicSerialReadAndWrite example VI.

4 times in parallel!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 23
(4,088 Views)

Dear GerdW,

Thanks for Reply

can please make basic program to run visa parallel ?

Use the BasicSerialReadAndWrite example VI.

4 times in parallel!

 

After placing 4 basic serial read and write

how can I control that 1st serial read and write has to read COM PORT 1 and 2nd serial read and write has to read COM PORT 2 

 

Kind Regards

Vinay,

0 Kudos
Message 10 of 23
(4,082 Views)