{"id":675,"date":"2013-06-02T06:54:24","date_gmt":"2013-06-01T20:54:24","guid":{"rendered":"http:\/\/legoeng.local\/?p=675"},"modified":"2022-07-18T16:26:56","modified_gmt":"2022-07-18T06:26:56","slug":"datalogging-in-labview-timed-datalogging","status":"publish","type":"post","link":"http:\/\/legoeng.local\/datalogging-in-labview-timed-datalogging\/","title":{"rendered":"Datalogging in LabVIEW: Timed datalogging"},"content":{"rendered":"

A simple way to log data in LabView involves specifying a time interval between each measurement and the time interval over which the recording takes place.<\/p>\n

For example, we could measure the sound level for 5 minutes, with an interval of 5 seconds between each measurement.<\/p>\n

To set this up, first select the Log Data command from NXT Robotics > NXT I\/O > Log Data:<\/p>\n

\"NXIO_menu\"<\/a><\/p>\n

Insert this command, and select Log Sound from the drop-down menu:<\/p>\n

\"LOGdrop_down\"<\/a><\/p>\n

Notice that the icon has a red background. That means we store the data in the red data set. But we also have a green and blue data sets available. They are located in the submenu complete > logging. They look like this:\"redgreenbluedatalog\"<\/a>So what do we mean with a red, green or blue data set? Well, when we log the data in this way the data is stored as a file on the NXT brick. If we use the red dataset the datas are saved in a file called RedData.dat, the green data set is saved in a file called GreenData.dat and the blue dataset, not surprisingly BlueData.dat. In addition, we need to configure our logging. We do this with the modifier parameters. We moves the mouse pointer over the lower left corner, right click and choose create constant. Now it looks like this:<\/p>\n

\"datalogging<\/a>The values given here are default values. \u00a0We should have a measurement every 5 seconds for 5 minutes, that will be 300s (5min = 300s). We select the text tool and change the values<\/p>\n

\"datalogocnfigured1\"<\/a><\/p>\n

We must also choose the port where the sound sensor is connected. We hover up in the middle, right click and choose create constant:<\/p>\n

\"datalogging<\/p>\n

That’s it. We can now press run and run the program. During the datalogging, the data will be plotted on the NXT screen as shown below:<\/p>\n

\"datagraph_1\"<\/a><\/p>\n

We also get the latest measurement of the screen. In this case, the equal to 100, but it is important to be aware that this is not given in decibels, but decibels given as percentages.<\/p>\n","protected":false},"excerpt":{"rendered":"

A simple way to log data in LabView involves specifying a time interval between each measurement and the time interval over which the recording takes place. For example, we could measure the sound level for 5 minutes, with an interval of 5 seconds between each measurement. To set this up, first select the Log Data […]<\/p>\n","protected":false},"author":8,"featured_media":785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"_links":{"self":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts\/675"}],"collection":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/comments?post=675"}],"version-history":[{"count":1,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts\/675\/revisions"}],"predecessor-version":[{"id":14341,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts\/675\/revisions\/14341"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/media\/785"}],"wp:attachment":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/media?parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/categories?post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/tags?post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}