NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
esjensen
Posts: 2
0 Kudos

Re: cRIO Waveform Reference Application

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?

Member
DNgineer87
Posts: 11
0 Kudos

Re: cRIO Waveform Reference Application

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?

Member
Jeff_T.
Posts: 189
0 Kudos

Re: cRIO Waveform Reference Application

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

Member
DNgineer87
Posts: 11
0 Kudos

Re: cRIO Waveform Reference Application

Thanks,

 

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

Member
jinghang
Posts: 9
0 Kudos

Re: cRIO Waveform Reference Application

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

Member
jinghang
Posts: 9
0 Kudos

Re: cRIO Waveform Reference Application

the labview I am using is 2009 sp1

Member
Jeff_T.
Posts: 189
0 Kudos

Re: cRIO Waveform Reference Application

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

Member
jinghang
Posts: 9
0 Kudos

Re: cRIO Waveform Reference Application

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



Member
jinghang
Posts: 9
0 Kudos

Re: cRIO Waveform Reference Application

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

Member
keenanball
Posts: 8
0 Kudos

Re: cRIO Waveform Reference Application

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

 

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page