LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save serial VISA settings to MAX, programmatically

I thought this would be relatively straightforward to do using the NI System Configuration library, in fact I'm surprised after all these years I hadn't coded this.  But the method (attached in a snippet) doesn't seem to do what I want.

 

The goal: after I programmatically determine the correct baud rate and character format for a serial port, I'd like to push those settings into MAX, so tomorrow on the next VISA Open call (with "Load Configured Settings"), assuming the hardware is the same, there's no need to search for the correct settings.

 

The attached code doesn't return any errors, but neither do the port's default settings change in MAX.

 

Thanks for any help on this!

 

Dave

 

Save VISA Settings to MAX.png

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 1 of 1
(29 Views)