01-17-2008 06:13 AM
01-17-2008 09:00 AM
Hey,
Maybe you can explain your problem a little bit more detailed, e.g. what exactly is this analog input/output, do you ment FPGA I/O Nodes?
Christian
01-17-2008 02:45 PM
The Timed Loop within a LabVIEW FPGA VI is a Single Cycle Timed Loop (SCTL). This loop is different from a timed loop used in LabVIEW for Windows or Real-Time.
The SCTL and all of its content executes in a single clock cycle of the FPGA. Therefore some functions and VIs can not be used inside of a SCTL as they require more than one FPGA clock cycle. Analog I/O functions in cRIO are not supported in the SCTL for this reason.
07-02-2021 03:41 AM
Buongiorno Christian, scusa se ti disturbo, volevo chiederti come si potesse fare per acquisire un segnale analogico con FPGA con una frequenza diversa da quella nominale, dato che non posso inserirlo dentro al SCTL.
Io ho provato a farlo con il procedimento nella foto, ma non so se sia corretto, perché in questo caso il modulo analogico estrae un valore ogni volta che il while loop si ripete e quindi con una frequenza diversa da quella dell'SCTL.
Grazie in anticipo per la risposta e buona giornata.
07-02-2021 09:37 AM - edited 07-02-2021 09:40 AM
Hi Riccardo,
what do you want to achieve with this SCTL in your code?
@Riccardo_97 wrote:
I wanted to ask you how it could be done to acquire an analog signal with FPGA with a different frequency from the nominal one, since I cannot insert it inside the SCTL.
I tried to do it with the procedure in the photo, but I don't know if it is correct, because in this case the analog module extracts a value every time the while loop repeats and therefore with a different frequency from that of the SCTL.
To set a certain iteration speed of the outer while loop you can simply place a Wait function into the loop! Either choose "ticks" or "µs" to set higher frequencies…
(It's most often recommended to also place a flat sequence, with the wait in the first frame and the AI node in the 2nd frame, to ensure proper timing.)
Btw. did you notice you are posting in a 13½ year old thread? Most often it makes sense to start a new thread after that long time…
07-02-2021 10:14 AM
Grazie per aver risposto alla mia domanda.
Volevo utilizzare un SCTL per avere prestazioni migliori, ma se non è il metodo più adatto inseririò un timed loop express VI come mi hai consigliato.
Ti chiedo scusa per aver commentato un post di tanto tempo fa, purtroppo non me ne sono accorto.
Ti ringrazio ancora per l'aiuto e ti auguro una piacevole giornata.
07-02-2021 10:39 AM
Hi Riccardo,
@Riccardo_97 wrote:
I wanted to use a SCTL for better performance, but if it is not the most suitable method I will insert a timed loop express VI as you advised me.
You can improve FPGA behaviour with SCTLs, like using less fabric. It may even help to improve code performance, but: is this needed in your VI?
@Riccardo_97 wrote:
I apologize for commenting on a post from a long time ago, unfortunately I didn't notice.
I thank you again for your help and I wish you a pleasant day.
You also seem not to recognize you are writing in an English speaking forum. (There's also an Italian regional board…)
Bouna sera!
(Ti auguro una fantastica partita di calcio...)