12-03-2018 09:46 AM
Hi everyone,
I'm using Labview 2017
I need help about my new progect. I have to write by VISA different strings come from loop as shown in picture attached. I can't find way to do this. Can anyone help me?
12-03-2018 10:25 AM - edited 12-03-2018 10:27 AM
Your workflow will look like this:
A hard-coded wait followed by Bytes at Port property usually (99% of the time) indicates a failure to fully comprehend the actual communication protocols needed. I've only seen ONE case where the manufacturer actually recommended a wait of x ms to allow the instrument to process the command that was sent. Even then, Bytes at Port wasn't needed. Usually I see this method used when the developer takes code right out of the serial port example. Normally, copying the example is a good way to implement something, but in the case of the serial port example, well... IMHO it needs to be replaced.
12-03-2018 11:26 AM
Hi Bill,
thanks for your reply. Actually I used Bytes Port in other project and I never had problems.
Any way your steps about my project are correct.
My issue is that I don't find way to contacted the Loop output to Write Visa input.
Do you have any solutions?
Thanks
Antonio
12-03-2018 02:31 PM
@Antonio81 wrote:
Any way your steps about my project are correct.
My issue is that I don't find way to contacted the Loop output to Write Visa input.
Do you have any solutions?
Your Write and Read process should be inside of the FOR loop.
@Antonio81 wrote:
Actually I used Bytes Port in other project and I never had problems.
You just got lucky. You WILL run into issues when using an arbitrary wait with the Bytes At Port. Use the messaging protocol to find your data.