LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

collect data specified time

Im finding myself getting very frustrated at this. I would like to collect data from a serial port every 100ms for ten seconds and have an array of the total 100 points. I've tried too many things to list or attach. Has anyone done something similiar to this or have any suggestions?

0 Kudos
Message 1 of 3
(2,625 Views)
A simple for loop set for 100 iterations. Wire the scalar out of the loop. Done.

Please take some of the free tutorials. This is an extremely basic task.
0 Kudos
Message 2 of 3
(2,616 Views)

Dennis is right, but just to help you out a little more, attached is a VI saved in 2013 that does what I think you want.  Init serial, read once every 100ms for 10seconds, and then close.  Your output will be an array with the 100 readings as ASCII strings.

 

Also feel free to see if some of these tutorials help.

 

NI Learning Center

NI Getting Started

-Hardware Basics

-LabVEW Basics

-DAQ Application Tutorials

 

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training

Message 3 of 3
(2,609 Views)