LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fasten ethernet data reading ?

Dear all,

 

thanks to this tutotial (http://digital.ni.com/public.nsf/allkb/92D475E7246846E786256ED700556D98) I am able to read data from a Keithley 2701 connected through Ethernet.

 

My VI is very simple but it takes around 0,25 s to ead a data and I need to read at 10 Hz.

 

I think that the main problem comes from the need to always send a Write comment and then get the data. Is it possible to send only once a command and then get data in a continouous way ?

 

Find attached my VI.

 

Thank in advance for your help

0 Kudos
Message 1 of 7
(3,317 Views)

Though I'm not sure, is there any option available for this hardware, so that you can configure it for continous datalogging and store the samples on the memory available on the device itself and then your program can fetch those samples on periodic basis.

Usually reading over ethernet is very fast.

 

I found this document here which describes how you can configure it to acquire samples faster.

 

Edited: Also I would like to mention, you can very easily avoid using local variables in your program, attached is the modified code.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 7
(3,186 Views)

Though I'm not sure, is there any option available for this hardware, so that you can configure it for continous datalogging and store the samples on the memory available on the device itself and then your program can fetch those samples on periodic basis.

Usually reading over ethernet is very fast.

 

I found this document here which describes how you can configure it to acquire samples faster.

 

Edited: Also I would like to mention, you can very easily avoid using local variables in your program, attached is the modified code.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 7
(3,183 Views)

Hi flanguy,

 

it's not just speed of your device connection, it's also (and probably mainly) the time the device needs to response to your request!

 

What does the manual of your DMM say about sample rates? What does it say about response times?

I remember such DMMs do read new values with just 1S/s for best resolution. So it may even take a full second to deliver a new measurment value on your request…

 

I also remember those Keithley DMMs offer some kind of "block read mode" using their internal buffer to store values. THat way you may be able to sample data at 10 Hz samplerate and fetch all values later on.

 

It's all in the manual, so read it… (Do you know the acronym "RTFM"?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(3,276 Views)

Reply

 

Here is the link.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 7
(3,257 Views)

@GerdW wrote:

Do you know the acronym "RTFM"?


ha ha ha.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 7
(3,248 Views)

You might want to have a look at the drivers that are available for that DMM:http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=0470C9F181C02E75E0440003BA7CCD...

 

I haven't looked closely at them yet, but there should be some VIs in there to do a scan of X samples at whatever rate you want and then gather them up.


GCentral
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 7 of 7
(3,240 Views)