10-14-2022 08:11 AM
Hi,
I'm sampling data from multiple DAQ modules, where one has a minimum rate (NI 9239, 1619 S/s). Since I am logging over a long period of time, I want to write only 1-5 samples per second to a TDMS file. Since the other DAQ modules have the possibility to sample at low rates, I want to adjust the sample size and timestep of the second device to save the same amount of data per channel. In addition, I want to trigger a timed change in the sampling rate using an event case. The sampling works fine until I trigger the event, afterwards everything is rather messed up, and I don't know why. I'm uploading a reduced version of my VI.
Thanks in advance for your suggestions!
10-14-2022 09:09 AM
Hi blutwicht,
@blutwicht wrote:
The sampling works fine until I trigger the event, afterwards everything is rather messed up, and I don't know why.
We neither!
@blutwicht wrote:
I'm uploading a reduced version of my VI.
So you should do!
10-14-2022 10:50 AM - edited 10-14-2022 10:51 AM
Yes, you need to show us your code. Nobody here even knows what an "event case" actually is. Is everything wired across the event or are some output tunnels unwired in some events? Is the event structure reachable by dataflow under all conditions? What is the program architecture and where is the event structure in relation to the rest of the code?
Can you clarify in a few sentences what "messed up" actually means? (incorrect timing? UI locked up? No change in timing? No more samples? program crashes? computer crashes? computer bursts into flames? etc...)
10-17-2022 01:21 AM
Hei again,
sorry, I don't know why the file didn't attach. I was in a hurry on Friday, hope it worked now.
10-17-2022 02:38 AM
The sampling goes on, but there is no more data written from the first channel any more (which works for the "larger" edition, no clue where I messed up during cutting it down). Anyways, the number of samples written changes when changing then rate for the first channel, and I would like to have it synchronous in the second channel.