LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the DAQ Assistant?

Dear All,
I config its Acquistion Mode as continuous. I thought that it will run continuously without loop. But it is not the fact.
It must be placed in a loop while sometimes the error take place.
N sample mode also must be placed in a loop.
In this way, is there any difference between them?
 
Thank you.
0 Kudos
Message 1 of 4
(2,952 Views)
Althrough DAQ assistants do the job of continous acquisition ( Yes, you have to place it in a while loop. the 'first call?' conditional check in daq assistant will ensure that all other functions ecxept the DAQmx read are not repeated in your subsequent iterations)
 
I always advise users to get accustomed with the contiuous acquisition example  vi's that are shipped with DAQ assistant
 
Go to Find Examples>>Hardware input outout>>DAQmx>>analog measurement>>Voltage folder and look at contiouous acquisition example vi's provided here.
These example vi's are well documented and should be easy for you to understand and start using.
 
try this and do get back if you have any doubts
 
 
Message 2 of 4
(2,946 Views)
i saw the example.
but i mean DAQ assistant Exxpress VI,not normal VIs
thx:)
0 Kudos
Message 3 of 4
(2,938 Views)

Hi,

all your DAQ assistant Vi's are built using 'normal vi's Smiley Wink

To understand this, just build a DAQ assistant vi.

Now right click on it and select option 'open front panel'. In the resulting vi, you will observe how a DAQ assistant vi was built by using normal DAQmx functions for the parameters you had set

And to answer your primary/original doubt, Yes, you have to put a DAQ assistant vi configured for continuous mode, inside a while loop to make it run continuously


It must be placed in a loop while sometimes the error take place.
N sample mode also must be placed in a loop.

Can you tell what error message you get?

In N sample mode, its not necssary to place inside the loop, if you set samples to read= sampling rate

Only if your number of samples to read is greater than sampling rate, you will have to use a while loop to get all those samples.

Hope this helps

Message Edited by devchander on 09-18-2006 02:32 AM

Message Edited by devchander on 09-18-2006 02:39 AM

Message 4 of 4
(2,934 Views)