LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1-D Array of 3 elements to waveform(DBL) help needed

Hi,

I am getting this error:


"These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is 1-D array of cluster of 3 elements.
The type of the sink is Waveform(DBL)."


I have tried converting into a 1-d array but the error remains I am somewhat out of ideas on how to solve this problem. Any help is greatly appreciated thank you.
0 Kudos
Message 1 of 49
(6,042 Views)
The sink is a waveform datatype, so I'm not sure why you're using a Build Array to create an array of whatever is coming out of the spigot. The source is a cluster, so a Build Array makes even less sense. The waveform datatype is not a cluster. It does consist of 3 elements: start time, delta t, and array of values. Your source cluster consists of 3 elements: start frequency, something else (not labeled) and an array of values. Know what the "something else" is? I'm guessing it's probably the frequency step.

Given that, I don't think you want to use the waveform datatype since that's intended to be used with timed data. You could shove it into the waveform datatype by converting the start frequency to a timestamp:

When you read the file you can do the opposite.

An alternative way is to simply write the data out as a binary file. Or, you can write it out to a text file by prepending the two individual elements and then just writing out to a spreadsheet-format-like file:



Message Edited by smercurio_fc on 06-25-2008 02:46 PM
Download All
0 Kudos
Message 2 of 49
(6,028 Views)
stop frequency? is the only thing i can think of.


The reason I use the write wfm to spreadsheet option is i am under the assumption it will pit out a graphical plot of the data being sent its way.


Message Edited by MrSafe on 06-25-2008 03:14 PM
0 Kudos
Message 3 of 49
(6,020 Views)
Well, you're actually using the Write Waveforms to File. Were you intending to use Export Waveforms to Spreadsheet File? Neither of these has anything to do with a graph. If all you want to do is see a graph, you just need to wire the array of values to a graph:




Message Edited by smercurio_fc on 06-25-2008 03:23 PM
0 Kudos
Message 4 of 49
(6,012 Views)
i see my hope was that I would grab exactly what i saw on the analyzer but i see your point i think that has more to do with the drivers than labview i take it?
0 Kudos
Message 5 of 49
(6,009 Views)
Neither. And it also depends on what you mean by "grab". If you mean the data, well you've got that. It's a matter of simply displaying it on a graph. You can save it to file any which way you want.

If you want to grab an image, that's something else entirely. You first need to see if the hardware has this capability. I have no idea what hardware you're using, so I would suggest looking at the list of drivers you have to see if there's a VI to do that. If not, it simply may not have been written. You should check the programming reference manual for the hardware to see if the capability is there.
0 Kudos
Message 6 of 49
(5,998 Views)
I have a Rohde & Schwarz Analyzer 7 GHz max span. It is capable of doing that screen capture I am after. In fact I have another software I use to capture screens its called GPIB SHOT. The problem with that software is that I can not use it during a test. Because it stops all functions on the analyzer. I hope is to get labview to grab that screen for me which would also enable me to automate the test.
0 Kudos
Message 7 of 49
(5,972 Views)
What is the model number? Have you looked in the list of driver VIs that you have to see if there's a VI to do a screen capture? If not you should be able to code it up yourself using the programming manual for the instrument.
0 Kudos
Message 8 of 49
(5,966 Views)
well it is ESIB-7 from my understanding. I am going through the drivers as we speak I see traces etc But much of this is very foreign to me. Labview has opened up so many possibilities that once I realized the power I began to work with it.
0 Kudos
Message 9 of 49
(5,964 Views)
The images/examples you have shown before..I can  not locate those specific tools do you need a specific version of labview? I have labview 8.
0 Kudos
Message 10 of 49
(5,934 Views)