LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Record data at every 50ms

How to record the data at every 50ms?

0 Kudos
Message 1 of 11
(3,296 Views)

Timing functions,  case structure.

 

If you'd like more specific answers, ask a more specific quesiton.

0 Kudos
Message 2 of 11
(3,273 Views)

@akv103 wrote:

How to record the data at every 50ms?


What data?  How are you acquiring this data?


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 3 of 11
(3,248 Views)

It always "helps us to help you" if you provide some code (actual VIs are best), as this will answer several "unknowns" -- what Version of LabVIEW are you using, what do you mean by "record the data", where are "the data" coming from (are you "acquiring" it from hardware, simulating a process in software, etc.).  It can also give us a hint as to your level of LabVIEW Experience (so we don't start talking about Actor Framework to someone who has never used LabVIEW before ...).

 

So, what data?  Where are you getting this "data"?  Is hardware involved?  [And the other questions/suggestions mentioned above ...]

 

Bob Schor

0 Kudos
Message 4 of 11
(3,236 Views)

@akv103 wrote:

How to record the data at every 50ms?


Use hardware. 

 

Paper, pencil and a fast hand.

 

Sometimes you can get silly responses to vague questions  


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 11
(3,220 Views)

Here's some pseudocode to get you started:

 

  1. Initialize instruments
  2. Collect data
  3. Record data
  4. Wait 50mS
  5. Goto 2

As everyone has said, we need a more detailed question to give a more detailed answer. 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 11
(3,198 Views)

Since I'm having low skill in LABVIEW I couldn't give explain my issue earlier. Here my detail problem:

 

I want to get the input signal from 2 channels: 1.Position  2.Current (NI9239)

Version used: LABVIEW 2016

Objective: I want to record the signal from both channels using DAQ without sampling rate and record at every 50ms.

 

0 Kudos
Message 7 of 11
(3,176 Views)

What exactly do you mean by "without sampling rate"?  And what do you have against it?

 

Acquire data in a loop.  Put in a wait function for a 50 msec wait.

0 Kudos
Message 8 of 11
(3,165 Views)

Hi RavensFan,

 

         When initializing DAQ in LABVIEW I have to provide the sampling rate and the number of samples. 

         But in my case, I have to collect data without the sampling rate and the number of samples.

0 Kudos
Message 9 of 11
(3,163 Views)

@akv103 wrote:

Since I'm having low skill in LABVIEW I couldn't give explain my issue earlier. Here my detail problem:

 

I want to get the input signal from 2 channels: 1.Position  2.Current (NI9239)

Version used: LABVIEW 2016

Objective: I want to record the signal from both channels using DAQ without sampling rate and record at every 50ms.

 


You may be new to LabVIEW (And this is beginning to sound like a homework assignment that you don't really understand) but, we still need some basic information.

 

  1. The NI 9239 is a +/-10V differential analog input module for cDAQ or cRIO
    1.   What is the Chassis? cDAQ?  cRIO? You didn't know you needed a chassis? ....
    2. What Sensor is attached to convert "Position" to Voltage?  Angular position? Linear position? Other? You didn't know you needed a sensor?
    3. How are you converting Current to Voltage? Sense Resistor? input amplifier? You thought the cDAQ Module had a internal shunt? 
    4. How Much current? what Range? what is the source? How much can it vary in dB from typical +/- 3dB (2X) +/-30dB(1000x)?
  2. Why is the internal timebase unsuitable for sampling at 20hZ?  What would you prefer to use? Why?   (And what do you mean you need to initialize a DAQmx Task with a Sample rate? I don't think you do unless, you are using hardware timing and you don't seem to want that?)
  3. What file format do you want to save the data in?
  4. Did you wish to view the data as well or is logging it enough?
  5. Did you know about DAQmx Logging functions?

What have you tried so far? Show is your CODE! Where are you stuck? 

 

Help us help you


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 11
(3,157 Views)