05-26-2018 10:24 PM
Put the VISA reference wire on a shift register.
The serial port is only determined when the VI is first run. If you don't start the device until later, I imagine the VISA port doesn't exist. So what VISA port is being used in that case? None? Something else?
Try a case structure inside the loop that runs when you want to reinitialize. Put the VISA Port and Serial Configure in that case structure.
05-27-2018 06:59 AM
@RavensFan wrote:
Put the VISA reference wire on a shift register.
The serial port is only determined when the VI is first run. If you don't start the device until later, I imagine the VISA port doesn't exist. So what VISA port is being used in that case? None? Something else?
Try a case structure inside the loop that runs when you want to reinitialize. Put the VISA Port and Serial Configure in that case structure.
Like this ? Checked and this seems to work … any further refinements to this need be done ?
05-27-2018 11:42 AM
@MogaRaghu wrote:
@RavensFan wrote:
Put the VISA reference wire on a shift register.
The serial port is only determined when the VI is first run. If you don't start the device until later, I imagine the VISA port doesn't exist. So what VISA port is being used in that case? None? Something else?
Try a case structure inside the loop that runs when you want to reinitialize. Put the VISA Port and Serial Configure in that case structure.
Like this ? Checked and this seems to work … any further refinements to this need be done ?
Just a couple of comments:
05-27-2018 07:53 PM
Thanks @Blokk. Valid points.
About the Rube Goldberg ( whoever it is !) : Initially I had a construct to write the SEND command once in every multiple time delays to try out various scenarios. Finally I found that 100ms is optimum but forgot to remove the Case !!
After the refinements the VI looks simple ( and efficient )