Clear Filters
Clear Filters

NI-6221 DAQ: Exporting data

1 view (last 30 days)
Jesus
Jesus on 26 Jan 2011
I'd like to acquire some data using a NI-6221 DAQ and the Real-Time Windows Target toolbox.
The analog input block seems to be working OK as I can see a waveform using the scope, but I don't know how I could export the acquired data to the workspace (the scope itself just exports a few sample, I'd like to acquire 10secs).
I've just found out that the "To Workspace" block fails to do that and the "To File" block is not supported by the toolbox.
Is it possible to do what I want? How could I do it?

Answers (1)

Radhika
Radhika on 31 Jan 2011
You should be able to use the "To Workspace block".You can choose to return data as a structure or array. For e.g. if simout was the variable used by the block to return data as a structure this is what you could do,
data=simout.signals.values;
In what way does the "To workspace" block fail ?

Categories

Find more on Simultaneous and Synchronized Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!