LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble importing visa connection from ini file

Solved!
Go to solution

Hello,

In the attached Test Import Connections.vi, I am trying to import a VISA resource name (COM3) from a configuration file. I import the keys into an initialized functional global. The functional global is then read and the output sent to an output cluster. However, after executing the code, I always end up with an empty string for the resource name in the output cluster. When I run the vi inside the main application, I get an Error 3, (Possible reason(s): LabVIEW:  Internal error. Wrong memory zone accessed. ========================= NI-488:  GPIB Controller not addressed correctly.) (I do not have a GPIB controller in my system.) 

Any ideas why this is not working?

 

Thanks for your help.

Peter

0 Kudos
Message 1 of 3
(2,289 Views)
Solution
Accepted by topic author pbuerki

With each write, you are clearing all of your previous data in the shift registers.  You need to perform 1 write or do a check for each parameter to see if it is being updated.


GCentral
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 2 of 3
(2,272 Views)

Typical case of not seeing the forest despite all the trees... Thank you crossrulz. I attach the fixed vi.

With best regards,

Peter

0 Kudos
Message 3 of 3
(2,245 Views)