LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs-232 and tcp/ip,udp communication

hello 

everyone,

               

             i want to know , is it possible to establish multiple communication in one vi? multiple communication means, i want to establish rs-232,TCP/IP,UDP and same in more than one time in same VI. is it possible?  possible means give me some idea. which structure is good for this???? please help me i am waiting for your valuable reply.

                                         thank you

regards

basavaraj.

0 Kudos
Message 1 of 8
(3,152 Views)

Hi basavaraj,

 

yes, it's possible.

 

But I would use subVIs for each kind of interface/communication protocol...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,146 Views)

hello sir 

                   i am getting your point . can you please eloberate your answere?

thank you.

0 Kudos
Message 3 of 8
(3,129 Views)

You really need to provide more infomration about what you want to do. LabVIEW is a complete programming language and one can write an application to do just about anything. However without knowing what you want to accomplish it is difficult to give you advice on which approach you should take.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 8
(3,107 Views)

Actually what i want to do is,we have some test equipments, its like some block of hardware. in that i want to  communicate to each block with different protocols means for one block i am interfacing rs232 throgh this i will receiving some data and save it in tdms file. after this i need to establish communication with tcp/ip,udp and ftp and receiving data save it tdms file respectively.this all thing i need do in same vi.

0 Kudos
Message 5 of 8
(3,090 Views)
This is done all of the time. Do you have a specific question? What have you tried? What problems in your code?
0 Kudos
Message 6 of 8
(3,079 Views)

in my code i am facing the problem of after completing the interface with rs232 . communication is not establish with next one, this all thing am doing sequentially blockwise with different protocols.in my code i used case structure.

0 Kudos
Message 7 of 8
(3,072 Views)
Do you mean a state machine? What error do you get? Are you using a shift register to pass errors from one state to the next? Could your serial code be generating an error that you are not trapping and handling? Attach your code.
0 Kudos
Message 8 of 8
(3,067 Views)