Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pita_api/mod.ts>Channel#setTrigger

API for Pita projects, simpliest way to develop secure and powerful webapps for redpitaya.
Latest
method Channel.prototype.setTrigger
import { Channel } from "https://deno.land/x/pita_api@0.9.1/mod.ts";

Set the trigger of the Channel.

Examples

Example 1

adc1.setTrigger(Trigger.Now)
//channel start to acquire
await adc1.readSlice(125) //ok
adc1.setTrigger(Trigger.Disabled)
//channel stop to acquire
await adc1.readSlice(125) //error

Parameters

trigger: Trigger
  • The trigger parameter is a value that which event launch processing.