Jan-Mark,
Some hints for your first problem:
1. Have look in the spec of your Keyence device and find out how many samples you can get. Sometimes the serial output is limited to something like 10 Samples per second.
2. Decide if that sample rate match your needs.
If so, look again in your Keyence manual and (if possible) shoose the shortes and most determend protocol. (Prefered: fixed byte lengh with termination character and continius output)
Use two while loops, one to read the data and the second to process the data (and the queue vis for data transfer)
(Use a baud rate, that is fast enough)
If the sample rate over the RS232 of your device is too slow, use the analog output and a DAQ card.
Specially when doing derivations of the descrete
signal you might get better results because your timing
(jitter) might be better.
Greetings from Germany
Henrik
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'