LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication issue

Hi,

 

I have two serial devices:

 

1. Load cell controller

2. Temperature controller (3 channels)

 

Both communicate through a COM (RS-232) port.

 

On my old PC (Windows 10, LabVIEW 2014 Chinese), both devices work correctly.

 

On my new PC (Windows 11, LabVIEW 2014 English), neither device responds. I send the command, but "Bytes at Port" stays 0.

 

I am using the same VI, same cable, and the same serial settings.

 

Has anyone faced this issue? Is it related to Windows 11, NI-VISA, or COM port drivers?

 

Thanks.

0 Kudos
Message 1 of 5
(656 Views)

Did you select the correct VISA resource name?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 2 of 5
(635 Views)

Selva@2004 wrote:

On my new PC (Windows 11, LabVIEW 2014 English), neither device responds. I send the command, but "Bytes at Port" stays 0.


And how exactly are you using Bytes At Port?

 

Without seeing the code, my guess is that your new computer is a lot faster than your older one and therefore you are checking for the bytes at the port quicker than you were before. Using proper serial communications (see this presentation: VIWeek 2020/Proper way to communicate over serial) can alleviate that problem.

 

If you want more detailed suggestions, you will need to supply some code and details on the instruments you are trying to talk to.

 



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
Message 3 of 5
(553 Views)

I have attached the NI IO trace image. 

 

Now I am able to read temperature control values, but I can't read load cell values consistently. Sometimes I am able to read load cell values, and sometimes I can' t.

0 Kudos
Message 4 of 5
(528 Views)

Here are some suggestions:

  • Watch Crossrulz' Video, and follow his suggesting on how to do Serial Communication!
  • Show us the LabVIEW code, particularly the code involving Serial Communication (done through VISA).
    • Best is to send us a VI (or sub-VI), preferably in a LabVIEW version a few years older than current, such as LabVIEW 2021).
    • An alternative (might not be available in LabVIEW 2014) is to create a LabVIEW "Snippet", a .png file that which dropped into a blank Block Diagram, "expands" automagically into executable LabVIEW code.
  • Have you tried writing a small Test VI that just tried to "wake up" your device and initialize the VISA system, saving the "acknowledgement" string?  What happens when you do this?  [Feel free to send us this Test VI].
  • Have you tried opening MAX and seeing if you can open a VISA channel to your device and see if you can establish communication?  Try sending an initialization string, then see what the device sends back to you.

Bob Schor

Message 5 of 5
(488 Views)