User:Steven J. Koch/Notebook/Kochlab/2009/06/30/Feedback 96, stop condition etc.

From OpenWetWare
< User:Steven J. Koch‎ | Notebook‎ | Kochlab‎ | 2009‎ | 06‎ | 30
Jump to navigationJump to search

Steve Koch 12:57, 30 June 2009 (EDT): Occurred to me this morning that I should be able to debug everything in new stop condition VI by directly comparing with the DLL (luckily, the board_read() function doesn't crash the system).

Steve Koch 14:22, 30 June 2009 (EDT): I'm looking at Richard's "compare stop condition values" (which is at the heart of the stop condition code), and there are two things:

  • It does not actually check whether condition "contains ALL the bits set in returnval"...just at least one. This is not important, since we only do one at a time, I think.
  • condition is int32, not unsigned int32; same with return val. I think it should be unsigned

I am not going to update either of these things in LabVIEW because I don't want to introduce unexpected behavior, even if it does look like a bug.

I think new stop condition VI is working (aside from footswitch)

Steve Koch 16:04, 30 June 2009 (EDT): It turned into a massive VI with weird case structures (in order to keep the "return" behavior of the C code), but I think it is working:

  • numdatapoints seems to work
  • number of datapoints within setpoint margin seems to work
  • AOD limits work (soft and hard)
  • data array full works
  • ANDing conditions (80000000) seems to work