LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from DAQ and Visa simultaneously

Solved!
Go to solution

Hi,

I am trying to read two different instruments, one of them is not NI which I read through Visa and the second is an NI ADC which I read throgh DAQ.

They both need to be read simultaneously so i can compare between the two.

I am able to read each of them separately but when i put them both in the same VI the Visa gets stuck.

 

i attached a photo of my VI.

Appreciate some help.

Thank you!

 

0 Kudos
Message 1 of 4
(3,717 Views)
Solution
Accepted by ShellyTau

1. Your VISA Configure Serial Port should be before your loop.

2. You should remove the case structure.  Once you Initialize the port, you need to keep the buffer cleared.

 

Cannot give much more advice without knowing the configuration of the DAQ Assistant.



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
0 Kudos
Message 2 of 4
(3,703 Views)

Thank you for your answer!

I don't know what keeping the buffer clear means. It would be great if you could explain 🙂 i'm new to labview

also I added a picture of the DAQ properties.

 

Thanks!

Shelly

0 Kudos
Message 3 of 4
(3,690 Views)

As data comes in from the serial port, it goes into a memory buffer.  When you perform a read, data is taken out of that buffer.  If you do not perform a read, that buffer will get full and you will lose data and get an error.

 

The DAQ works in a similar manner.



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
0 Kudos
Message 4 of 4
(3,667 Views)