LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie Labview Question: Array of clusters

Solved!
Go to solution

1: i am a student

2: this is not homework or a graded project

3: I'm a pretty capable programmer, but that's in text-based languages. 😉

 

I have a sensor feed which contains 4 channels. I need to leave all 4 channels active, but I want to select one of them to graph at any given time. The data from the NI driver for the hardware comes as a 1x4 array of 2-element clusters.

 

Normally, I'd just index to the desired element in the 1x4 array, and feed that cluster to the appropriate graphing tool, but I'm missing something. I swiped a display element from the NI driver example VI's, but any time I insert blocks between the data feed and the graph I get "bad connection" errors.

 

I've been googling and book-looking for several days now, to no avail, I'd appreciate any help in this question.

 

in the image at ( http://dl.dropbox.com/u/4286123/LabviewHelp.jpg  ), what block do i need to insert into the highlighted wire to be able to select and graph only one of the 4 data channels, controlled by an integer source?

 

Many thanks.

Message 1 of 5
(4,353 Views)

Can you post your image here?  I can't access the link you provided because my of my company's policy.  It's blocked.

You can post the image by clicking on the Insert/Edit Image button in the menu bar above.  The icon looks like a tree.

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(4,344 Views)

18237i9095BF330A2E009A

 

As requested...

0 Kudos
Message 3 of 5
(4,337 Views)
Solution
Accepted by brianlojeck

Use the Index Array funtion found in the Array palette.  Wire in the index number of the waveform you wish to display.

 

18239iBE8F6E8F60C448B2

- tbob

Inventor of the WORM Global
Message 4 of 5
(4,330 Views)

I swear I tried that before, and it didn't work...

 

ah well, it works perfectly now. Many thanks.

0 Kudos
Message 5 of 5
(4,314 Views)