11-30-2017 09:27 AM
Good morning everyone.
I have a VI that scans hardware for data. I need this process to run at around 0.1 to 1KHz. I only want to store this data at a rate of 1Hz though.
I can't figure out how I can get my data into the .txt file at a rate of only 1Hz without slowing down my whole VI to 1Hz.
I have attached an example of what I'm trying to do. I am using random number generators in lieu of my data acquisition code to simplify things a bit.
Thanks!
11-30-2017 09:33 AM - edited 11-30-2017 09:35 AM
11-30-2017 10:55 AM
Hi GerdW 🙂
I am saving my data in a string into a txt file. The decimator doesn't work on the date and time I want to be saved with each row of data unfortunately.
Hmmmm
11-30-2017 02:08 PM
11-30-2017 03:19 PM
Right, but then my data is decimated and my date and time string still saves at 1kHz and my .txt data file gets all discombobulated :I
11-30-2017 03:26 PM
Obviously you decimate the date/time as well.
11-30-2017 03:40 PM
I thought I couldn't decimate a string...?
11-30-2017 03:56 PM
Like GerdW said, you can decimate before converting to a string, or if you have an array of strings you can decimate that array.
11-30-2017 04:16 PM - edited 11-30-2017 04:18 PM
Hmm... Lets see you want high speed data acquisition and low speed data recording.
Isn't that by definition a Producer Consumer architecture?
12-01-2017 09:15 AM
I'm not certain I understand why you are having such difficulty with the idea of decimation. Does this Snippet make sense to you?
Bob Schor