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: 

VISA Serial settings not being set?

Solved!
Go to solution

I have an issue with VISA and LabVIEW 2023 Q1. 

 

I have several test systems, one in particular has an instrument that uses serial where the rest of the systems use GPIB or LXI for that instrument.

 

This program and test system has been running fine but I am in the process of upgrading to LV 2023 while I add a couple requested features. 

 

Nothing in my find and initialize sub vi has changed, all 7 other test systems run fine with the new LV 2023 program.  

 

Both NI-Max and Windows Device Manager show the proper serial settings. (115200,8,N,1,hardware flow control).

Screenshot 2023-03-27 135744.png

 

But all serial communications in my program time out and the probe window shows the serial setting are the default (9600,8,N,1,No flow control)

Screenshot 2023-03-27 135506.png

 

What's going on here?

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 4
(885 Views)
Solution
Accepted by topic author RTSLVU

Another post had the same issue, there I read that VISA resets all external configurations at initialize.

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.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(878 Views)

@santo_13 wrote:

Another post had the same issue, there I read that VISA resets all external configurations at initialize.


 

Previous versions of NI-VISA must have used the setting in NI-MAX as the "default" for that serial port if VISA Set Serial was not used

 

 

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(866 Views)

VISA Open has an access mode input parameter.

 

This is really a bitmask:

 

1: Exclusive Lock

4: Load Configuration Settings

 

Default is to use the VISA default values (none of the flags is set). And these default values are session type specific default values, not what you configure in NI-MAX or any VISA config or similar utility per individual port.

 

Rolf Kalbermatter
My Blog
Message 4 of 4
(809 Views)