LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing samples from a CIN that calls COMEDI driver

I am wondering about access to samples/measurements using a CIN that uses a comedi driver while the CIN is still running.
Ideally, I'd like to display data continuously, as it is read in with the acquistion card (NI-6071E).

The current state of affairs is that my data acquisition successfully terminates after some finite number of samples are collected, and then data is displayed in labview v6.1. That is, only after all samples are taken is the data ever displayed in labview graphics.
I don't know if it's possible to display graphics "real-time" in this way--I suspect not.To the best of my knowledge, labview requires that a
CINterminate execution before moving on to the next step, eg displaying graphics.

Is it possible to have access to the samples being read by the CIN while the CIN is still running? If so, how?
(I use comedi drivers, redhat8.0, and a modified VI to control a CIN, originally downloaded from the NI website.)thanks.
0 Kudos
Message 1 of 2
(2,604 Views)
Jonny from your email it seems that you are using LabVIEW 6.1.

If you were using LabVIEW 7.0 or higher there is one technique to get data from your c code on to the block diagram continously. From your CIN you fire an event using exported function "PostLVUserEvent". This function fires event with any kind of data (pointer to string or double etc). From the LabVIEW blocked diagram would have two while loops (one running CIN and other grabing event data using event structure).

That way as your c code is posting data, you are getting it on the block diagram as opposed to waiting for CIN to finish executing to return you the data.

A Rafiq
0 Kudos
Message 2 of 2
(2,604 Views)