Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire analog input and counter value (quardature encoder) synchronous by reference trigger

Hi,i,Kevin

Thank you very much for your reply, I describe my question, what I use is PXIe6368 data acquisition card, the analog channel sampling and encoder task using high sampling rate, sampling rate is around 1 MHZ, the task of counter sampling frequency for a low sampling rate, around 1 KHZ to make the task simulation tasks and counter clock synchronization, block diagram of the waveform data show consumer become very slow, and an error after clicking the STOP button 1, I try to find out the location of the error 1, but without success, and in the process of testing the storage space is filled.

Attachment 2 and 3 are error screenshots

Download All
0 Kudos
Message 11 of 13
(1,297 Views)

Error 1 looks pretty straightforward.  That'll happen when the queue reference becomes invalid.  *That* only happens when you release the queue in the True case of your lower TDMS logging loop.   And *that* happens when you click your 'Stop' button and clear any pending elements from your queue.   Basically, it's pretty much expected from your code.  There are ways to code to avoid it, but it's not an error that actually *hurts* anything because it can only happen after you click your 'Stop' button, which implies that you're done anyway.

 

 

- Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 12 of 13
(1,292 Views)

Hi, Kevin

I use is PXIe6368 data acquisition card, analog channel acquisition now (main engine vibration signal, the cylinder pressure signal, a/f ratio letter) and counter channel encoder collection task using a high sampling rate, the encoder model is E6B2-CWZ6C 600 p/R 2 m, the highest speed at 100 R/S, so the sampling rate is set at around 1 MHZ, analog channel acquisition of signals and the rotation of the encoder for (engine crank Angle), analyses the state of the engine;Counter to the speed of acquisition frequency mission of hall sensor pulse signal, as the low sampling rate, the question now is around 1 KHZ.

When processing data in the consumer, the front panel of the data waveform display is very slow, I hope I can improve data waveform display rate of the front panel, and can be processed data complete deposit to TDMS file, no data loss.

0 Kudos
Message 13 of 13
(1,288 Views)