Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx read in both, unscaled and waveform

Hello! I want to read acquired data in both formats: waveforms and unscaled. Is it possible?

0 Kudos
Message 1 of 5
(1,128 Views)

Simultaneously and with a single DAQ card?

0 Kudos
Message 2 of 5
(1,106 Views)

Yes, simultaneous and with the same DAQ card.

0 Kudos
Message 3 of 5
(1,101 Views)

There *may* be a way, but it'll be awkward at best and I'm not honestly sure it'll work.

 

It starts with understanding how to be a little manipulative with the way you read from a DAQmx task buffer.  Here's a posted snippet of mine that shows how you can "back up" and read older data.

 

So my general idea involves:

1. Doing a first read that's a scaled waveform

2. Keep cumulative track of total # samples read.  (Don't just query the task, keep count for yourself).

3. Use the method from the link above to "back up" and read the recent samples in unscaled form

4. Change the properties to make Offset=0 again.

5. Go back to #1 for the next chunk of data.

 

Something like that, I may have missed a detail or two.  And I don't honestly know if it'll work out, but maybe it's worth a try.

 

Other ideas are to read unscaled only but also read scaling params so you can do the scaling yourself.  But that method doesn't bring you some of the handy metadata embedded in waveforms.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 5
(1,096 Views)

Hello! 

Yes! Seems pretty good idea! The Read VI is set to read samples that are unread. But setting via Property node to Read recent samples might work to read twice the same data but in different formats. I will try!

Thank you for your hint! I'll let you know if it is working.

Cristian

 

0 Kudos
Message 5 of 5
(1,093 Views)