09-28-2009 01:16 PM
Hello,
I am facing a problem while trying to resample some multisim data so that they can be inserted to LabView 7.1.
I am using the resample multisim data.vi and the data i try to resample are on a .txt file in Multisim format.
The data are read from the .txt file but the resampling is not happening.
On the 2 graphers i have the following:
Is it the data format wrong?
The data are coming from simulating a two stage amplifier in multisim and are in the following format (.txt file content):
---- Page: "Oscilloscope-XSC1"
---- Graph:
---- Left Axis: LINEAR "Channel_A Voltage(V)"
---- Top Axis: LINEAR
---- Right Axis: LINEAR "Channel_B Voltage(V)"
---- Bottom Axis: LINEAR "Time (S)"
---- Trace: 1 LEFT BOTTOM "Channel A"
0.000000000000e+000 0.000000000000e+000
1.000000000000e-004 5.922348744636e-001
2.000000000000e-004 1.129712892369e+000
4.000000000000e-004 2.092170264748e+000
8.000000000000e-004 3.431907017104e+000
1.600000000000e-003 4.069643836434e+000
2.641151320367e-003 3.886740992002e+000
...
...
...
1.054222006550e+002 4.695912073889e+000
1.054322006550e+002 4.132278334812e+000
1.054422006550e+002 3.552336381005e+000
1.054522006550e+002 2.958374978411e+000
---- End Trace: 2 "Channel B"
---- End Graph:
---- End Page: "Oscilloscope-XSC1"
---- Page: "DC operating point"
---- Chart: Operating Point
DC Operating Point
$9 0.00000
$6 2.40382
$5 6.43175
$13 0.00000
$11 1.38015
$12 1.72519
$4 2.40382
$8 1.20763
$7 1.72519
$1 15.00000
$3 6.43175
vv1#branch -3.93115m
---- End Chart: Operating Point
---- End Page: "DC operating point"
10-02-2009 01:42 PM
10-02-2009 04:18 PM
Did you try the resample data vi with only a single waveform? I am guessing the VI is not indexing the waveform information and therefore it is parsing the data incorrectly.
Regards,
Patrick Noonan
Business Development Manager
National Instruments - Electronics Workbench Group
50 Market St 1-A
South Portland, ME 04106
Phone: 207 892-9130
Email: patrick.noonan@ni.com
10-04-2009 01:57 PM
Following your instructions, i tried to run the VI with one waveform only.
Im afraid the result is the same.No resampling.
i cannot spot the error...
10-17-2009 02:15 PM
...
This is what i have this far,on the zipped archive.
If anybody please can spot the error! I can't...
Thanks in advance!
10-18-2009 05:22 PM
Ok I've found the issue. The VI you are using "resample.vi" is reading in a spreadsheet file with time (x) in the first column and the waveform data (Y) in the second column - it is basically using the "Read From Spreadsheet File.vi" which does not expect headers or any formatting other than raw data values. On your Multisim files you can extract the X (time) and Y (waveform) data without the headers and save into a new txt file for processing. Both the basic 2 ch scope and the Grapher have header information. The LabVIEW program could be modified to parse out the header information.
Probably a better way to solve this problem is by using the following example and saving the data in LVM format:
http://zone.ni.com/devzone/cda/tut/p/id/16
or here:
http://zone.ni.com/devzone/cda/tut/p/id/6140
When you use this capability, the export to LVM format automatically resamples/interpolates the waveform data from the scope as needed with the desired delta-t.
Also when you use the Multisim API (via the LabVIEW toolkit), you choose the resample/interpolation method and the data is also reformatted into sampled data (unless raw mode is selected). I have recently posted some sample VIs to show this:
http://decibel.ni.com/content/docs/DOC-7438
Regards,
Patrick Noonan
Business Development Manager
National Instruments - Electronics Workbench Group
50 Market St 1-A
South Portland, ME 04106
Phone: 207 892-9130
Email: patrick.noonan@ni.com
11-12-2009 04:26 PM
Hello,
I created an example VI and a PDF describing how to do this.
http://decibel.ni.com/content/docs/DOC-8017
Regards,
Patrick Noonan
National Instruments