Components

cancel
Showing results for 
Search instead for 
Did you mean: 

CompactRIO Waveform Library

I adjusted the factor down to 5 and now get past the previous error.  I only have a single channel and am sampling at 40kHz.

Now I get a -5002 error:

Error -5002 occurred at rwfm_AcqRead(1D_EncodedRaw).vi

Possible reason(s):

FPGA DMA Overflow


How can I determine what is the cause?

0 Kudos
Message 11 of 113
(7,867 Views)

The software requirements vs.. download filename in the "introduction" seem to contradict the "requirements" section at the bottom of the article.  What file should I download for LV 8.6?

 

http://zone.ni.com/devzone/cda/epd/p/id/6206

 

Am I missing something?

0 Kudos
Message 12 of 113
(7,449 Views)

This is an issue with the publishing software that we use here to make these web pages.  Version 305 is for LabVIEW 2010 and version 271 is for 8.6.

 

Regards,

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 13 of 113
(7,445 Views)

Thanks,

 

That's what I had assumed since the 2010 filename contained "305" and the real-time version was 3.5.

0 Kudos
Message 14 of 113
(7,438 Views)

I have some questions about this library:

 

1. I have installed this library by using VIPM, and it is supposed to appear under the User Libraries palette. but I cant find it there. see the 2 attached pics. Where can I find it?

 

2. I am using NI 9264 and NI 9205 modules, are they Delta-Sigma-Based C Series Modules or successive approximation (SAR) Modules? I dont really understand the difference of these two kinds of ADC methods.

 

Thanks.

 

Jinghang

0 Kudos
Message 15 of 113
(7,151 Views)

the labview I am using is 2009 sp1

0 Kudos
Message 16 of 113
(7,146 Views)

Hello jinghang,

 

1.  The library should show up under user.lib.  Do you have any other versions of LabVIEW that it might have installed to?  Could you look in ../Program Files/National Instruments and see how many LabVIEW directories you have?  Each LabVIEW directory fi you have more than one version of LabVIEW installed will have a user.lib sub folder.  Try to find where those VI's went. 

 

2.  The 9205 is a "SAR" based analog input module.  The 9264 is an analog output module which doesn't have support in the cRIO Waveform Library.  I have been thinking about adding it but there just hasn't been that much demand for it.  Typically analog output modules in cRIO are being used for single point control applications which is not the intended use case of this toolset. 

 

The only difference between SAR modules and Delta Sigma modules is the way the sample rates are set on the FPGA.  With SAR modules the sample rate is set with a "Loop Timer" VI and with Delta Sigma modules the sample rate is set with a property node.

 

Regards,

 

Jeff Tipps

S&V Systems Engineer

0 Kudos
Message 17 of 113
(7,139 Views)

I am trying to implement this application into my system, but encourtered a problem in the first step----Open FPGA reference.

 

I noticed you bind the function with a ctl document (attached). if I dont bind this function with proper ctl document, I would get a breaken wire (attached). Could you please expalin how to build the Type Definition in this application. in which VI you built the rwfm_Acq FPGA Ref.ctl?

 

Thank you!

 

Regards

 

Jinghang

0 Kudos
Message 18 of 113
(7,008 Views)

I opened the rwfm_CreatChan subVI and created the ctl document in its front panle. problem solved, I guess, sorry for the trouble.

0 Kudos
Message 19 of 113
(7,000 Views)

Hi There,

 

First let me just say that this application is excellent!

 

I have several cRIO-9022 units with NI-9215 modules. I have been attempting to use this application to stream 4-16 channels of analog data to a USB HDD. To date I have been able to acheive the following using .tdms files:

 

100kS/s/ch on 4 Channels

50kS/s/ch on 8 Channels

30kS/s/ch on 16 Channels.

 

I would like to be able to increase the sample rate to 100kS/s/ch on 8 channels and 50kS/s/ch on 16 channels. To try an accomplish this I have attempted to write the data in 1D Scaled U32 per the poly vi and using the write binary vi. However, I can't seem to find a good Samples per Read value that keeps the RT Buffer Backlog [%] from increasing over time and then ultimatly overflowing the FPGA DMA.

 

1. Are the metrics for streaming to disk based on the internal memory of the cRIO or and extrenal USB HDD?

2. What is the best selection of Samples per Read for a given sample rate such that the FPGA buffer does not overflow?

3. What is the best method to extract the indivual channel information when using the 1D Scaled U32 method?

4. Along the same lines as 3 how do you extract the data once it has been written to a binary file.

 

I certainly appreciate your help.

 

Thanks,

Keenan Ball

 

 

0 Kudos
Message 20 of 113
(6,974 Views)