07-06-2010 05:38 PM
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.
Solved! Go to Solution.
07-06-2010 06:08 PM
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.
07-06-2010 06:18 PM
As requested...
07-06-2010 06:27 PM
Use the Index Array funtion found in the Array palette. Wire in the index number of the waveform you wish to display.
07-06-2010 07:36 PM
I swear I tried that before, and it didn't work...
ah well, it works perfectly now. Many thanks.