05-17-2019 04:10 AM
So currently I'm doing some researches at my univercity.
I'm hitting some Actuators with juice and then getting getting some data about how they react back (they start vibrating) and I get this data with a laser which uses the DAQ assistant to give me the data back.
I need to use 2 DAQ assistants one to get the data from the lasers and the other one to get the data about the electric tension that I'm sending (I get the data from a NI USB 6003).
The problem is when I run the DAQ laser standalone I can get frequencies up to 400 Hz while when using the other DAQ assistant at the same time I'd get frequencies up to .... 4 or 5 Hz.
So Yeah I need to find a faster alternative.
Sadly after some intensive Googling researches I haven't found a suitable solution.
Thank you for taking the time to read my post.
05-17-2019 04:20 AM - edited 05-17-2019 04:22 AM
Hi Max,
I need to use 2 DAQ assistants
Wrong: nobody is forced to use to use DAQAssistent ExpressVIs!
Use plain DAQmx functions - they are easy to use!
The problem is when I run the DAQ laser standalone I can get frequencies up to 400 Hz while when using the other DAQ assistant at the same time I'd get frequencies up to .... 4 or 5 Hz.
Maybe you also need to use some/other programming pattern like QMH, state machines, producer-consumer, etc…
05-17-2019 05:36 AM
Thanks Gerd I'll check them out out
What do you mean exactly by other programming pattern
05-17-2019 05:43 AM
Hi Max,
as you didn't attach your VI(s) I can only guess about the way you programmed your algorithm.
But there are several programming/design patterns (like the ones I named above) which will aid you in creating "better" software…
05-17-2019 05:53 AM
my bad Its nothing special really its just vi I created to find the root of the problem.
One signal is analog the other one is digital.
I attached the vi to this post.
When I enable the DAQ assistant for Voltage the function that shows the movement of my Actuator that I get at a high frequency (100-500Hz) will go from a nice clean Sinus motion to a messed up function that looks weird and chaotic.
05-17-2019 05:57 AM
05-17-2019 07:04 AM
Sorry for the slow responce time
Here you go
05-17-2019 07:12 AM
Here you go, @GertW.
How serious are you in learning LabVIEW? If you plan on being an Engineer doing Testing and Development of new devices, it might prove to be a valuable investment of your time. I recently posted "Bob's Rule" for learning Programming -- Write Programs! Learn the Language. Learn its "style". Look at (and study) Good Code, and try to make your code better.
When I got started in LabVIEW (a while ago, with experience in a half-dozen text-based Programming Languages), I bought two books -- Jim Kring's "LabVIEW for Everyone" (which describes most of the functions of LabVIEW, but regrettably is more than a decade old) and Peter Blume's "The LabVIEW Style Book" (which I read cover-to-cover at least three times). Despite their ages (around LabVIEW 7 or 8, as I recall), they contain a lot of Practical Knowledge that you can put into practice right away (particularly the "Style" book!!). You will also find discussions of Design Patterns in there.
Another great learning source are the Tutorial series for LabVIEW, including the sources listed on the first page of this Forum. NI has an excellent series on DAQmx, which can free you from the tyranny and limitations of the Dreaded DAQ Assistant and its Evil Twin, the Dynamic Data Wire. If you are doing DAQmx stuff, learn about Waveforms (which work wonderfully with Charts and Graphs).
Bob Schor