From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview version of RS232

I make two Rs232 in a label as input(Picture 11). The output is show in picture 5.My Labview program runs okay with Rs232 in the Labview 2008.But now I run it in the labview 2012. It has the following problems: I can see the com of RS232 and Com3 and com4 in the Picture1. That means the port of com is ok. But I don't know that why the port in com3 connected is False in Picture 4. Meanwhile the Com 4 is True. So we can see in the picture 8 that Lower is ok that has signal (Com 4).

But there is no response in Upper (Com 3).So my question are:1) Is this the problem of Version of Labview 2012? It cannot make the Two Rs232 into one cable and display in the Labview?

2)How can I make the Com3 and Com 4 work at the same time? I can make sure that my program is ok. So how can I solve the problem of Rs232 communication in Com 3 ?

I want to make sure that : If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels) Fig 11, whether the output can has a 16 channels signal (Fig.5 and 7) in the Labview 2012? I can make sure that my program is ok under Labview 2008 which can get a 16 channels signals.

0 Kudos
Message 1 of 13
(1,987 Views)

I make two Rs232 in a label as input(Picture 11). The output is show in picture 5.My Labview program runs okay with Rs232 in the Labview 2008.But now I run it in the labview 2012. It has the following problems: I can see the com of RS232 and Com3 and com4 in the Picture1. That means the port of com is ok. But I don't know that why the port in com3 connected is False in Picture 4. Meanwhile the Com 4 is True. So we can see in the picture 8 that Lower is ok that has signal (Com 4). But there is no response in Upper (Com 3).So my question are:1) Is this the problem of Version of Labview 2012? It cannot make the Two Rs232 into one cable and display in the Labview?2)How can I make the Com3 and Com 4 work at the same time? I can make sure that my program is ok. So how can I solve the problem of Rs232 communication in Com 3 ?

0 Kudos
Message 2 of 13
(2,026 Views)

Well the VISA Error message: "The resource is valid, but VISA cannot currently access it" usually means that another program (other than LabVIEW) has the Com port open or you are not properly closing the com port at the end of your LabVIEW program.

 

Also I don't see any of your Labview code so I will put this here just because I recommend this video every time someone posts a serial communication question...

 

  VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 13
(2,019 Views)

Thanks.

I want to make sure that : If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels) Fig 11, whether the output can has a 16 channels signal (Fig.5 and 7) in the Labview 2012? I can make sure that my program is ok under Labview 2008 which can get a 16 channels signals.

Thanks

Download All
0 Kudos
Message 4 of 13
(2,002 Views)

@YY2022 wrote:

Thanks.

I want to make sure that : If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels) Fig 11, whether the output can has a 16 channels signal (Fig.5 and 7) in the Labview 2012? I can make sure that my program is ok under Labview 2008 which can get a 16 channels signals.

Thanks


 

I don't understand your question. Your pictures are of physical RS-232 connections. Are you having difficulty with 9 pin versus 25 pin RS-232 connections? 

 

Where's the LabVIEW code? 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 13
(1,982 Views)

Thanks.This is my Labview in Labview 2012. So I just want to know that how to make the Com3 and com4 work at the same time. Because under the Labview 2012, I only get the signal from Com4. Why Com3 not work?

Thanks

0 Kudos
Message 6 of 13
(1,956 Views)
I must state that your post seems very unclear. Try using Google Translate to describe your problem.

However, I am famous for understanding garbled problems! I am assuming that you have NI hardware that requires the NI Serial driver and no support for LabVIEW 2012 is installed. You will need to install the correct version of NI Serial for LabVIEW 2012.

"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 13
(1,961 Views)

Thanks. If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels), whether the output can has a 16 channels signal in the Labview 2012?

I can make sure that in the Version of Labview 2008. I can get the 16 channels signal.

So why I can not get 16 channels signal in the Version of Labview 2012?

0 Kudos
Message 8 of 13
(1,943 Views)

If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels), whether the output can has a 16 channels signal in the Labview 2012?

I can make sure that in the Version of Labview 2008. I can get the 16 channels signal.

So why I can not get 16 channels signal in the Version of Labview 2012?

0 Kudos
Message 9 of 13
(1,934 Views)

Hi YY,

 


@YY2022 wrote:

If I want to combine two Rs232 in Labview 2012. That means there are two input. And every Rs232 input has 8 channels input signal. So If I combine two Rs232 (8 channels+8 channels), whether the output can has a 16 channels signal in the Labview 2012?


When you create a VI to read both serial ports then you can handle the combined 16 "channels" of data…

 


@YY2022 wrote:

I can make sure that in the Version of Labview 2008. I can get the 16 channels signal.

So why I can not get 16 channels signal in the Version of Labview 2012?


I guess the LV2012 version does not work because it is different to the LV2008 software.

As you decided to attach only images of frontpanels (mostly) you need to debug on your own!

 

Keep in mind: we cannot debug/edit/run images with LabVIEW!

 

On your VI:

Why is there no error handling on all those VISA functions? How do you verify correct execution of all that VISA communication?

Why don't you use DATAFLOW to sequence the VISA functions? Why do you need to use stacked sequences?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 13
(1,868 Views)