Example DAQ, serial and NI-DAQ.vi

This is an example DAQ program, copied from the MINI-MOST DAQ and then modified. It uses mixed serial and NI-DAQ hardware, for a more complex use case.


Front Panel

Example DAQ, serial and NI-DAQ.vi


Block Diagram

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi

Example DAQ, serial and NI-DAQ.vi


History

"Example DAQ, serial and NI-DAQ.vi History"

Current Revision: 77

rev. 77 Mon, Mar 01, 2004 6:25:50 PM hubbard

Work in progress!

rev. 76 Mon, Mar 01, 2004 6:22:38 PM hubbard

Works, miss a few triggers though. Decrease sleep time.

rev. 75 Mon, Mar 01, 2004 6:07:03 PM hubbard

Debugging...

rev. 74 Mon, Mar 01, 2004 6:02:17 PM hubbard

SubVIs of this VI were modified.

rev. 74 Mon, Mar 01, 2004 6:02:16 PM hubbard

Time to test!

rev. 73 Mon, Mar 01, 2004 5:37:29 PM hubbard

The name of the VI changed to "C:\Documents and Settings\hubbard\Desktop\lv-programs\daq-examples.llb\Example DAQ, serial and NI-DAQ.vi" from "C:\Documents and Settings\hubbard\Desktop\lv-programs\mini-most.llb\DAQ program.vi".

rev. 73 Fri, Feb 20, 2004 10:46:37 AM hubbard

Bugfix - datafile and metadata did not include load cell name and unit.

rev. 72 Thu, Feb 19, 2004 10:08:47 PM hubbard

DAQ semaphore now named.

rev. 71 Thu, Feb 19, 2004 3:17:56 PM hubbard

SubVIs of this VI were modified.

rev. 71 Thu, Feb 19, 2004 3:17:55 PM hubbard

Added overwrite of DAQ semaphore, fix ordering dependency.

rev. 70 Thu, Feb 19, 2004 3:14:03 PM hubbard

Fixed graph labels and default DAQ channels.

rev. 69 Wed, Feb 18, 2004 3:09:31 PM hubbard

SubVIs of this VI were modified.

rev. 69 Wed, Feb 18, 2004 3:09:30 PM hubbard

Bugfix to DAQ subroutine.

rev. 68 Wed, Feb 18, 2004 2:52:34 PM hubbard

SubVIs of this VI were modified.

rev. 68 Wed, Feb 18, 2004 2:52:33 PM hubbard

Massive changes for DAQ semaphore. Time to test!

rev. 67 Wed, Feb 18, 2004 12:35:45 PM hubbard

Change default channels to no-spaces, workaround for NSDS bug.

rev. 66 Fri, Feb 06, 2004 10:54:08 AM hubbard

Icon/docs, ftp now off by default.

rev. 65 Tue, Feb 03, 2004 4:04:45 PM hubbard

SubVIs of this VI were modified.

rev. 61 Mon, Nov 10, 2003 11:03:44 AM hubbard

SubVIs of this VI were modified.

rev. 61 Tue, Oct 28, 2003 2:22:13 PM hubbard

SubVIs of this VI were modified.

rev. 60 Mon, Oct 27, 2003 5:57:04 PM hubbard

SubVIs of this VI were modified.

rev. 57 Thu, Jul 24, 2003 12:04:33 PM hubbard

Works!

rev. 56 Thu, Jul 24, 2003 11:26:31 AM Paul Hubbard

SubVIs of this VI were modified.

rev. 56 Thu, Jul 24, 2003 11:26:31 AM Paul Hubbard

Now to test it...

rev. 55 Thu, Jul 24, 2003 11:19:14 AM Paul Hubbard

The name of the VI changed to "New60:Users:hubbard:code:lv-programs:MOST-SIM.llb:DAQ for MOST, triggered, SAMBA.vi" from "New60:Users:hubbard:code:lv-programs:MOST-SIM.llb:DAQ for MOST - event triggered.vi".

rev. 55 Mon, Jul 21, 2003 9:59:11 AM Administrator

Delete regardless of FTP or not.

rev. 54 Mon, Jul 21, 2003 9:56:10 AM Administrator

SubVIs of this VI were modified.

rev. 54 Mon, Jul 21, 2003 9:56:10 AM Administrator

Delete after upload.

rev. 51 Fri, Jul 18, 2003 11:20:37 AM Administrator

Seems to work!

rev. 50 Fri, Jul 18, 2003 11:19:43 AM Administrator

Redo loop structure, back to one stop button.

rev. 49 Fri, Jul 18, 2003 11:10:48 AM Administrator

Getting end conditionals correct.

rev. 48 Fri, Jul 18, 2003 11:06:50 AM Administrator

Added new button to abort trigger wait - can't combine w/normal stop.

rev. 46 Fri, Jul 18, 2003 10:45:19 AM Administrator

Work in progress.

rev. 45 Fri, Jul 18, 2003 10:36:22 AM Administrator

Work in progress.

rev. 44 Fri, Jul 18, 2003 10:19:34 AM Administrator

SubVIs of this VI were modified.

rev. 44 Fri, Jul 18, 2003 10:19:33 AM Administrator

Adding triggering.

rev. 42 Fri, Jul 18, 2003 9:38:36 AM Administrator

The name of the VI changed to "C:\Documents and Settings\Administrator\Desktop\lv-programs\MOST-SIM.llb\DAQ for MOST - event triggered.vi" from "C:\Documents and Settings\Administrator\Desktop\lv-programs\MOST-SIM.llb\DAQ for MOST.vi".

rev. 42 Thu, Jul 17, 2003 1:15:41 PM Administrator

SubVIs of this VI were modified.

rev. 42 Thu, Jul 17, 2003 1:15:41 PM Administrator

Error handling and propagation in startup code.

rev. 41 Thu, Jul 17, 2003 12:52:15 PM Administrator

Now writes .written file locally for data, next for metadata.

rev. 40 Thu, Jul 17, 2003 11:09:00 AM Administrator

Think its ready to go.

rev. 39 Thu, Jul 17, 2003 11:06:00 AM Administrator

Getting closer.

rev. 38 Thu, Jul 17, 2003 11:02:12 AM Administrator

Yar.

rev. 36 Thu, Jul 17, 2003 10:55:27 AM Administrator

Bugs, always bugs.

rev. 35 Thu, Jul 17, 2003 10:49:19 AM Administrator

Getting closer!

rev. 34 Thu, Jul 17, 2003 10:37:38 AM Administrator

WIP.

rev. 33 Thu, Jul 17, 2003 10:32:00 AM Administrator

SubVIs of this VI were modified.

rev. 33 Thu, Jul 17, 2003 10:31:59 AM Administrator

Work in progress.

rev. 32 Thu, Jul 17, 2003 10:29:58 AM Administrator

SubVIs of this VI were modified.

rev. 32 Thu, Jul 17, 2003 10:29:58 AM Administrator

Added metadata upload.

rev. 31 Thu, Jul 17, 2003 10:11:02 AM Administrator

SubVIs of this VI were modified.

rev. 31 Thu, Jul 17, 2003 10:11:01 AM Administrator

Added new routine to write sequenced file.

rev. 30 Wed, Jul 16, 2003 5:36:03 PM Administrator

SubVIs of this VI were modified.

rev. 30 Wed, Jul 16, 2003 5:36:02 PM Administrator

Work to do here....

rev. 29 Wed, Jul 16, 2003 3:25:22 PM Paul Hubbard

First try at testing!

rev. 28 Wed, Jul 16, 2003 3:21:33 PM Paul Hubbard

The name of the VI changed to "Root 60GB:Users:hubbard:code:lv-programs:MOST-SIM.llb:DAQ for MOST.vi" from "Root 60GB:Users:hubbard:code:lv-programs:UIUC DAQ for July.vi".

rev. 28 Wed, Jul 16, 2003 3:20:59 PM Paul Hubbard

SubVIs of this VI were modified.

rev. 28 Wed, Jul 16, 2003 3:20:58 PM Paul Hubbard

Frequent saves.

rev. 22 Mon, Jun 30, 2003 3:52:18 PM Paul Hubbard

The name of the VI changed to "Root 60GB:Users:hubbard:code:lv-programs:UIUC DAQ for July.vi" from "Root 60GB:Users:hubbard:code:lv-programs:nees-progs.llb:Example DAQ, low-speed.vi".

rev. 22 Mon, Jun 30, 2003 3:51:47 PM Paul Hubbard

SubVIs of this VI were modified.

rev. 22 Mon, Jun 30, 2003 3:51:46 PM Paul Hubbard

Oops, forgot to relink to subvi.

rev. 21 Mon, Jun 30, 2003 11:00:41 AM Paul Hubbard

The name of the VI changed to "Root 60GB:Users:hubbard:code:lv-programs:nees-progs.llb:Example DAQ, low-speed.vi" from "Root 60GB:Users:hubbard:code:lv-programs:nees-progs.llb:Semi-fake DAQ.vi".

SubVIs of this VI were modified.

rev. 21 Thu, Jun 12, 2003 1:23:03 PM Paul Hubbard

Bugfix - always write metadata file to disk.

rev. 20 Fri, Jan 24, 2003 4:43:45 PM hubbard

SubVIs of this VI were modified.

rev. 20 Thu, Jan 23, 2003 5:37:39 PM Paul Hubbard

LV fix - change AI output to scaled data from waveform to avoid LV crash.

rev. 19 Mon, Oct 28, 2002 6:30:37 PM Administrator

SubVIs of this VI were modified.

rev. 19 Mon, Oct 21, 2002 10:08:15 PM hubbard

WIP

rev. 18 Mon, Oct 21, 2002 5:35:25 PM hubbard

Fixed sample rate in metadata header.

rev. 17 Mon, Oct 21, 2002 5:23:57 PM hubbard

Fixed defaults.

rev. 16 Fri, Oct 18, 2002 11:47:48 AM hubbard

SubVIs of this VI were modified.

rev. 16 Fri, Oct 18, 2002 11:47:47 AM hubbard

Fixed number of open channels.

rev. 15 Thu, Oct 17, 2002 12:04:56 PM hubbard

SubVIs of this VI were modified.

rev. 15 Thu, Oct 17, 2002 12:04:55 PM hubbard

Now uses three-phase write. Untested!

rev. 14 Wed, Oct 16, 2002 1:03:05 PM hubbard

SubVIs of this VI were modified.

rev. 13 Fri, Oct 18, 2002 8:29:12 PM hubbard

SubVIs of this VI were modified.

rev. 13 Fri, Oct 18, 2002 8:29:11 PM hubbard

Added FTP save at end of run, cosmetics, not tested yet.

rev. 12 Mon, Oct 14, 2002 3:55:12 PM hubbard

NSDS formatting sub vi now gets channel ids, oops.

rev. 11 Mon, Oct 14, 2002 2:07:51 PM hubbard

SubVIs of this VI were modified.

rev. 11 Fri, Oct 11, 2002 4:17:40 PM hubbard

SubVIs of this VI were modified.

rev. 10 Thu, Oct 10, 2002 5:21:59 PM hubbard

SubVIs of this VI were modified.

rev. 9 Thu, Oct 10, 2002 3:55:54 PM hubbard

SubVIs of this VI were modified.

rev. 9 Thu, Oct 10, 2002 3:55:52 PM hubbard

Adding more code.

rev. 8 Mon, Oct 07, 2002 3:37:17 PM Administrator

Seems to work!

rev. 7 Mon, Oct 07, 2002 3:29:02 PM Administrator

SubVIs of this VI were modified.

rev. 7 Mon, Oct 07, 2002 3:29:02 PM Administrator

Rearrange, move in real AI read, call fmt data directly.

rev. 4 Fri, Oct 04, 2002 3:06:47 PM hubbard

The name of the VI changed to "/home/hubbard/code/lv-programs/nees-progs.llb/Fake DAQ.vi" from "/home/hubbard/code/nsds-simulator/neesgrid_1.llb/Fake DAQ.vi".

rev. 4 Thu, Oct 03, 2002 6:02:35 PM hubbard

SubVIs of this VI were modified.

rev. 4 Thu, Oct 03, 2002 6:02:34 PM hubbard

Bugs!

rev. 3 Thu, Oct 03, 2002 10:55:01 AM hubbard

SubVIs of this VI were modified.

rev. 3 Thu, Oct 03, 2002 10:55:00 AM hubbard

Added setting of status

rev. 2 Thu, Oct 03, 2002 10:21:21 AM hubbard

The name of the VI changed to "/home/hubbard/code/nsds-simulator/neesgrid_1.llb/Fake DAQ.vi" from "/home/hubbard/code/labview/Fake DAQ.vi".

rev. 2 Wed, Oct 02, 2002 4:03:21 PM hubbard

Cosmetics

rev. 1 Tue, Oct 01, 2002 1:04:37 PM hubbard

SubVIs of this VI were modified.

rev. 1 Tue, Oct 01, 2002 1:04:37 PM hubbard

Single channel, first attempt