LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error saving waveform from TDS 380 into spread sheet

Solved!
Go to solution

Hi,

 

I've been trying to save the waveform generated from TkTDS 3xx Read Waveform.vi to a spreadsheet or excel. I tried using "Write Waveforms to file.vi

 

However, this error was encountered, ""you have connected 2 terminals of different type. The type of the source is a cluster of 3 elements. The type of the sink is waveform double. Hence, I was wondering how do I save the cluster of 3 elements to a spread sheet?"

 

Attached is the vi i was working on.

 

Please help.

 

Thanks

0 Kudos
Message 1 of 6
(3,629 Views)
You need to convert your existing cluster to a waveform data type. Use the Unbundle by Name on your cluster and wire up the outputs to a Build Waveform function. From the existing cluster, the array gets wired to the Y Array of Build Waveform, the t(0) goes to the t0, and the delta t goes to the dt.
Message 2 of 6
(3,618 Views)
Solution
Accepted by Wan81

Hi Wan81,

 

Yes, the method desribed by Dennis Knutson is right. You may refer to the picture below:

Clusters to Waveform

 

 

If you want to write the data in clusters, you may want to use Datalog Files. However, please consider to do so, if you want to read it back or manipulate  with ONLY LabVIEW. If you want to know more about Datalog FIles, you may refer to LabVIEW help as follow: Datalog Files Help

 

Please let me know if this solution is working or not for your application. Have a nice day!

Sincerely,

 


Krisna Wisnu

Application Engineer

NI ASEAN

Message Edited by Krisna Wisnu on 09-24-2008 08:16 PM
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
Message 3 of 6
(3,606 Views)

Hey,

 

thanks a lot for the help. Going to try it now.

 

🙂

0 Kudos
Message 4 of 6
(3,598 Views)

Hi,

 

how do I save waveform from both channels using the TDs380?

 

Ridwan 

0 Kudos
Message 5 of 6
(3,472 Views)

Hi Ridwan,

 

First you would need to use two "Read Waveform.vi" to generate two channels (Channel 1 and Channel 2). You can duplicate the same VI and change the source input, one is Channel 1 and the second one is Channel 2 (Refer to main VI.PNG)

 

Second, you can use build array to append Channel 1 waveform and Channel 2 waveform (Refer to main VI.PNG).


Lastly, you need to change the "Write to Measurement File.vi" configuration X Value Column to one column per channel. (Refer to the Write To Measurement File Configuration.PNG)

 

I have made an example, you can refer to main VI.PNG

 

Let me know if this works for your problem.

Sincerely,

 

Krisna Wisnu

 

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
Download All
0 Kudos
Message 6 of 6
(3,415 Views)