Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

Sincronize 3 Visa reads

$
0
0

Hi,

 

I am working on a project that has 3 places of measurement of pressure and flow.

2 of those device are connected by bluetooth and it serial code is COM 4 and COM 6.

The other one is a USB device thats change it serial code by the usb port that I plug it.

 

For the read, I used a Visa Read for each one but when I put the devices on serie, I can see that there is a big delay between them.

Another problem that I am having is a timeout error in Visa Read that crash the program. It read everything but, in a random time, it crashes and a error appears.

 

Info of the code

- The bluetooth devices has a Terminal Char \r\n and the usb device has a Terminal Char \r\00. I can't change this Terminal Char, but Labview read the exact buffer. I confirm this using Tera Term.

 

- It's a new project, so I am trying to deal with this bug first and then I will see how can I put time stamp on Waveform Chart, put all the waves below each other and export the data on a sheet or another file to work with on Matlab.

 

Thanks for the help.

 

PS: I attach a video of the problem to help to see the delay between them. On top are the flow signals and below the pressure signal. The first device of the video is COM 6, second USB (COM 3) and last one is COM 4. By the video, you can see that the flow signal has to appear first on COM 6, than COM 3 and the last on COM 4 but this is not whats happening.


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>