03-05-2012 10:59 AM
hello, i am using the scan mode and the module ni9401, and i am running codes in labview with a timed loop
when i try to change the timed loop to dt=microsec and scan period <1ms in compact rio
compact rio is disconected! why have i this problem?
maybe i can use scan mode with scan period<1ms?
Solved! Go to Solution.
03-07-2012 08:17 AM
Hi, mariomoskis,
Unfortunately this is part of the limitation of Scan Mode. You can basically think of scan mode like a train that goes around to all of the modules collects data and drops it off at the controller, and there is only 1 train for the entire device and it only runs at one speed (scan rate). The train makes a pass every scan rate interval, so if you want to output a pulse train at slightly less than 1 kHz you will get aliasing. However, cRIO should not disconnect at all, I don't know what's the matter there, but it seems to be closely related.
There are two solutions to this issue, but both would require some changes.
1. You can avoid all of these issues and get down to a 25ns (or smaller) time resolution if you move into FPGA mode. We can use existing code from NI.com/IPnet to implement a pulse train generator with custom timing settings and pulse times on any module.
2. Certain modules support specialty digital modes, that basically deploy a pre-built section of FPGA code (in scan mode) that support certain common functions like Pulse Width Modulation. With these modules you can request specific a rate (which will update at 1KHz) , but the actual timing for the module is handled in the hardware. There are only a few modules that support this and they are listed in the link below.
KB 55L06EMO: What C-Series Modules Support Specialty Digital Functions in Scan Mode?
http://digital.ni.com/public.nsf/allkb/2664A3D35D9F79A4862576B300277E35?OpenDocument
I hope this helps.
Saludos!
Jesús
03-07-2012 08:27 AM
ok thanks
i asked this because when i open the configuration of crio i saw that i could use a period in microsec, but when i tried to use microsec i had the problem of the disconection
so my higher frequency is 1ms to scan mode and if i want to up this value i should use the FPGA, yes?
03-07-2012 08:29 AM
Absolutely.
Así es, si quieres frecuencias mayores, necesariamente tendrás que usar FPGA Interface.
03-07-2012 08:31 AM
Mario, mark this thread as Resolved so as to help other forum members, please.