How to use the getWavelength function from bindings

Find comprehensive JavaScript bindings.getWavelength code examples handpicked from public code repositorys.

542
543
544
545
546
547
548
549
550
551

while (measured_values.length < measured_value_length) {
	// Get measurement wavelength every IR pulse (100ms / 10Hz)
	await new Promise((resolve) =>
		setTimeout(() => {
			wl = wavemeter.getWavelength();
			// Make sure there actually was a measurement to get
			if (wl > 0) {
				// Make sure we didn't get the same measurement twice by comparing against last measurement
				if (wl !== measured_values[measured_values.length-1]) {
fork icon0
star icon0
watch icon1

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)