High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to save complete sampling data while synchronising two 5922 cards using TClk

Hello,

 

I have a question regarding syncing of PXI cards in the same chassis and saving the data. I believe I'm doing it the right way. I am trying to sync the two PXI 5922 cards using the TClk. I am sampling the data at 1M and running the programme for 10 seconds. So I should have about 10M samples of data after saving it. However, the saved data is significantly lower (around 1M samplesonly). I tried searching forums for a while but unable to solve my issue. Could anyone take a look at the attached VI and suggest a way around this please?

 

Thank you,

Rick

0 Kudos
Message 1 of 5
(2,818 Views)

Some remarks:

  • You end your loop timed, but if the storage of your vi is too slow, you don't read and store 10M data 🙂
  • have a look at the NI-scope stream to disk examples
  • try a producer consumer architecture
  • read the scope help/examples on how to read/stream continously data, currently you read a block, have a gap (store), read the next ....
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 ǝɥʇ'


0 Kudos
Message 2 of 5
(2,779 Views)

Hi Henrik,

Thanks for the reply. Sorry for the delay, I was away for last few days. I will read up on streaming continuous data to disk. Using producer/consumer architecture seems like a good idea. You mean read from both cards in the producer loop and save them in the consumer loop right? I will try that as well. Please let me know if I understood you wrongly.

Thanks again! Have a great day :).

Arun

0 Kudos
Message 3 of 5
(2,772 Views)

Hi Henrik,

I tried the producer/consumer arch., it improves the performance and saves more data; however, not all the data that I am expecting. Seems like I need to increase the 'Minimum Record Length'm parameter in the Configure Horizontal Timing function to 1M if I am to save more data. Even that is not 100%, but able to save about 80% of the data. Am I doing anything wrong here?

 

0 Kudos
Message 4 of 5
(2,767 Views)

Have a look at the

niScope EX Save to File - HWS Low Level - Single Channel Stream.vi

example...

 

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 ǝɥʇ'


0 Kudos
Message 5 of 5
(2,755 Views)