01-12-2021 03:59 PM - edited 01-12-2021 04:09 PM
Hi Friends,
I have a USB 6002, a multifunctional device having analog output (AO) and counter input , and would like to use it as a time source (via edge counting) for a timed loop to avoid Windows OS interruption to a while loop. I found that such OS interruption to a while loop occurs occasionally when a while loop runs at 20-50 iterations/s, the loop contains a VISA reading data from a device register. The interruption is normally approximately less then 2 seconds, posing the reading data for the short time, and then the reading data can resume by itself. The VI with the loop is set at the highest priority to ensure the data acquisition. It is a annoying issue to my project.
My point is to send a square wave signal via a USB 6002's analog output to the counter PFI0 or PFI1, the counter then sends edge counting bits to a DAQmx time source for a timed loop so that the loop can run at specified number of iteration.
I tried around and obtained an error. A simplified VI is attached, which included the error message and the USB 6002 channel description for your reference.
Can some one help me with the settings?
I will post this at different location for a broader exposure, e.g. LabView and counter/timer
Thanks,
Gu
01-13-2021 05:19 AM
Same question with active discussion over here.
[Editor's note: Many complain about such cross-posts but I personally support at least some of them. Such as this one. It wouldn't be entirely clear to the OP where to post it. The problem might be counter-specific or it might relate to the Timed Loop structure as a general LabVIEW feature. And there's also the issue of knowing that any such question will get a *much* bigger audience on the general LabVIEW board.
Mentioning the cross-post was helpful. Linking from one to the other would be even better. (You can even link both ways if you're quick about it, using the "Edit" feature immediately after posting.)
-Kevin P