01-31-2019 06:48 AM
Hi,
I'm currently new to Labview and I'm actually experiencing a problem with my Program.
I'm using the Visa read function to read the inputs from my Lock-in amplifier.
Sadly my While-loop needs to wait for it each time meaning that each loops take more time to be done.
Any way to use a similar VI that takes less time to resolve?
By the way does VI read fuction wait for each machine input or does it simply return the old value each time it waits for a new one?
You'll find attached to this My VI. I highlighted the part that could cause this Problem.
Thanks for taking the time to read my message.
01-31-2019 06:55 AM
Hi Lukas,
does VI read fuction wait for each machine input or does it simply return the old value each time it waits for a new one?
VISARead will wait as long as it needs to. It will return in case of:
- the requested amount of bytes is received
- a TermChar is found in the input stream
- an error occurs (including TimeOut)
It will (and can) NOT return any old/stale data: when the data is read from the input buffer the input buffer will be cleared…
I'm using the Visa read function to read the inputs from my Lock-in amplifier.
Sadly my While-loop needs to wait for it each time meaning that each loops take more time to be done.
I cannot check your VI due to its LabVIEW version, but I guess your amplifier needs some time to answer your VISA request.
What does the manual/spec sheet of that amplifier tell about communication speeds/response times?
01-31-2019 07:48 AM
Thank you for your fast respons!
I think the problem is the communication speed of the Lock-in Amplifier.
01-31-2019 08:03 AM
What amplifier are you trying to communicate with? What exactly is the messaging protocol?
I did notice that you are not configuring your serial port. That could be one issue. Can't really say any more until we know the message protocol.