09-23-2019 04:48 AM
Hello everyone,
for a measurement application I use a analog Input Modul (USB-6210, 250kS/s) and a CDAQ-9171 with a 9211 thermocouple Modul.
In the *vi you can see both DAQ Assistants, each in one while loop. For the 6210 i use a much higher frequenzy than for the thermocouple.
The while loop i saved in, is the faster one.
Now my problem ist that i want to generate one file with the data from both loops. For exampel the file should look like this:
analog Input1 analog Input2 thermocouple1 thermocouple2 thermocouple3 thermocouple4
analog Input1 analog Input2
analog Input1 analog Input2
analog Input1 analog Input2
analog Input1 analog Input2
analog Input1 analog Input2
analog Input1 analog Input2 thermocouple1 thermocouple2 thermocouple3 thermocouple4
I tried a lot but Nothing worked well.
09-23-2019 05:47 AM
Hi Sven,
I tried a lot
What did you try?
(Did you try to go over those "Training resources" offered in the header of the LabVIEW board?)
but Nothing worked well.
So it worked. Why don't you attach your "working" solution?
What was "not well"?
Why do most frontpanel elements in your tiny VI miss their label?
Why do you need 3 loops, stacked into each other?
Now my problem ist that i want to generate one file with the data from both loops.
When you want to stick with ExpressVIs (where most people will advise not to) you could use one more ExpressVI: MergeSignals…
09-23-2019 05:52 AM
Your code seems as basic level stuff and to acquire datum from a hardware, it doesn't need these many loops. First of all go though this link to get know idea about basic LV design patterns,
09-23-2019 09:35 AM
You are using Express VIs, which are usually designed for beginners who want to do one basic simple thing. They tend to be "simple-minded", designed to "trick" people into thinking LabVIEW doesn't require "learning" ("It's so simple, it's all pictures, you don't need to study ...").
Think about the problem of having two different Data Streams, at two different time intervals and with possibly two different starting times. You would need a somewhat-sophisticated file system to write them both to the same file. It can be done, but is often messy.
Why not two "simple" files, one for each stream? You can probably do it right in the Express VI (but do, as soon as you can, learn about DAQmx for doing Data Acquisition ...).
Bob Schor
09-25-2019 01:56 AM
09-25-2019 03:03 AM
Hi Sven,
You don't "draw connections", you wire the dataflow. (Did you take the Training resources offered for LabVIEW beginners?)
I placed the output of the Temperature Assistant directly on the writing input. However, the speed of the VI or the memory rate was far too slow. If i worked with less loops i got the same Problem with the memory rate.