08-19-2015 07:22 AM
Hi,
I have a 6259 and its frequency this around 66 hz, I wish my frequency was around 100 hz.
I I used the function "wait until next ms multiple" for 10ms and I made another function to calculate my dt in the loop, however my dt always displays the value of 15 ms.
if I put the function "wait until next ms multiple" 20ms in my dt displays 30ms.
Anyone know how to do this?
CP
08-19-2015 07:31 AM
Hi ee charles,
you use 4 different DAQmx tasks and each is set to "1 sample on demand". This is the slowest mode you can have with any DAQmx task!
Set a sample rate for your tasks and provide data as fast as is needed!
And: use some kind of producer-consumer scheme. It will help you with your application…
08-19-2015 08:03 AM
Hi GerdW,
First of all, thank you for your answer.
do you know how mode is the best to use in my case?
Best regards
CP
08-19-2015 09:23 AM
I think it's not what you said because I created a code with only the function dt and whenever the time is at 15 ms, even with the loop time in 10ms with the fonction wait until next ms multiple.
08-19-2015 09:36 AM
08-20-2015 11:39 AM
Bonjour,
Je vous suggère tout d'abord de consulter l'aide labVIEW concernant le cadencement d'applications. Il vous faudra d'abord déterminer si vous voulez un cadencement logiciel ou matériel (http://zone.ni.com/reference/en-XX/help/370466V-01/TOC11.htm).
Si vous voulez un cadencement matériel, partez d'un exemple de base fourni dans labVIEW, comme Voltage Finite Input
https://decibel.ni.com/content/docs/DOC-25106
Cordialement,
Pierre-Emmanuel BELLES
Certified LabVIEW Developper
Certified TestStand Architect
08-20-2015 11:42 AM
Hello,
First of all, I would suggest checking the labVIEW help topic about application timing. You must determine if you need a software or hardware timing : http://zone.ni.com/reference/en-XX/help/370466V-01
If you go for a hardware timing, then start from a simple example provided in the library of labVIEW examples ; you might want to check Voltage Finite Input : https://decibel.ni.com/content/docs/DOC-25106
Regards,
Pierre-Emmanuel BELLES
Certified LabVIEW Developper
Certified TestStand Architect