LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot realize Producer / Consumer Build

Solved!
Go to solution

Wrong poly instance too. That daq read outputs a 2d array of dbl.  There are multiple channels in the task. The queue data type should be array of waveform and the DAQmx read n ch n samples wfm.


"Should be" isn't "Is" -Jay
Message 11 of 25
(1,116 Views)
Solution
Accepted by topic author Zottel

Now that I'm at a computer,

 

Just drop an array constant and drag the waveform into it, rewire and you are fixed!

Capture.PNG


"Should be" isn't "Is" -Jay
Message 12 of 25
(1,110 Views)

@BertMcMahan wrote:

Don't use Build Cluster Array, just use Build Array.


Good evening (:
maaaaaaaaaaaaany thanks for that hint Bert, of course it worked. So i further can keep on running.

0 Kudos
Message 13 of 25
(1,097 Views)

@UliB wrote:

Hi Zottel,

as BertMcMahan already wrote: You have to use 'Build Array' (Array Palette, 2nd row, 2nd column).

By the way, if you hover with the mouse pointer over a wire you get information for the data type in context help window. If the wire is broken you get information why the wire broken.

UliB


Hey Ulib,

 

many thanks to you as well. but let me explain myself:

 

indeed i know that context help and i am using it as good as i can. but sometimes, especially if you are a "newbie noob" in a topic, it's not enough to read:

source type array blaaa; sink type waveform blaaa;

sometimes you don't know how to start, even if you know your target state like Waveform/Array of Waveforms blaaa. i'm practicing via trial-and-error method all day long and obviously i'm not good enough in any case...

anyway i'm not a kind of a "lean back'er" ( :  and have read much guides, did many simple examples and so on.

 

so thanks for all your patience, i'm just missing the implicitness in that "labview" thing right now.

 

0 Kudos
Message 14 of 25
(1,092 Views)

@Yamaeda wrote:

@Zottel wrote:

aaaaaand Yamaeda:

I'm blushing. But i dont think so, e.q. i still use "on" on everything =D; english tenses? uuuuhhhh ^^ practise makes perfect and i'm missing practise

greets.

i'll send feedback, whether i could make the labview thing or not


We all makes mistakes. Yours were very minor. A couple of 'on' too much, a 'a' instead of an 'an' and german Word flow in the last sentence. Still, this is a forum, not an English paper and i've seen/Heard native English write and speak with plenty more errors. 😄

(I'm in no way perfect, i'm Swedish ;))

 

So, it seems you want to 1 Signal to your queue, but is Reading out a 1D Array of signals (a, an? by logic it should be an, but isn't the expression 'a one'?). Either change the polymorphic instance to a singular signal or simply use Index Array to get a singular one.

/Y


thank you very much yamaeda 😃

i'm with you.

at this point i changed the array thing in front of the while loops, got an array aaaaand could wire it so far.

i placed a graph and a chart into "while" aaaaaaand at least i got accumulating data plots.

 

unfortunately i couldn't work really hard on it since last two days, because i had a lot of trouble with "advanced design suite" too ^.^ *sigh*

 

consumer loop:

- my next steps will be to collect data samples of 5 s on demand

producer loop:

- next step here will be to do not track and accumulate all data in a "live" chart/graph (caused by shifting register) but rather collect/plot maybe last 10 seconds

 

well, when i got down to work and got i trouble again, i'ld like to ask here again

 

0 Kudos
Message 15 of 25
(1,090 Views)

@JÞB wrote:

Wrong poly instance too. That daq read outputs a 2d array of dbl.  There are multiple channels in the task. The queue data type should be array of waveform and the DAQmx read n ch n samples wfm.


yeah, this should be what i've put into the machine.

i'll upload a picture of current state tomorrow, when i hopefully got at the desktop

0 Kudos
Message 16 of 25
(1,089 Views)

@JÞB wrote:

Now that I'm at a computer,

 

Just drop an array constant and drag the waveform into it, rewire and you are fixed!

 



sounds interesting, i'm excited to give it a try at my next turn, hopefully tomorrow.

"there's more than one way to skin a cat" ^^

ty

0 Kudos
Message 17 of 25
(1,088 Views)

@Zottel wrote:

@JÞB wrote:

Now that I'm at a computer,

 

Just drop an array constant and drag the waveform into it, rewire and you are fixed!

 



sounds interesting, i'm excited to give it a try at my next turn, hopefully tomorrow.

"there's more than one way to skin a cat" ^^

ty


with later versions of LabVIEW there is a right click option to "Change to Array" but that's not in 2009


"Should be" isn't "Is" -Jay
0 Kudos
Message 18 of 25
(1,073 Views)

As for the consumer - Index array is automatically indexed from 0 with +1 for each expanded node, so the 4 integers are redundant and just clutter the code.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 25
(1,051 Views)

@Yamaeda wrote:

As for the consumer - Index array is automatically indexed from 0 with +1 for each expanded node, so the 4 integers are redundant and just clutter the code.

/Y


Nice, thanks for that hint 😃

Message 20 of 25
(1,031 Views)