LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify waveform to same number of samples and dt

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!

0 Kudos
Message 1 of 5
(1,224 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,193 Views)

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...)

0 Kudos
Message 3 of 5
(1,179 Views)

Hei again,

 

sorry, I don't know why the file didn't attach. I was in a hurry on Friday, hope it worked now.

0 Kudos
Message 4 of 5
(1,152 Views)

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.

0 Kudos
Message 5 of 5
(1,140 Views)