| T O P I C R E V I E W |
| alanpsalvi |
Posted - 12/11/2025 : 08:46:22 AM Origin Ver. and Service Release (Select Help-->About Origin): 2025 Operating System:
I have devoloped labtalk code code in command window to import csv file and its data plotting automatically.I would like to create a user interface for this importing and plotting. I need help from you for it.
Step 1 -Creating book and importing csv data Newbook; impASC -csv "C:/Users/ala05689/Desktop/Test.csv" // location of file with name Test Step 2- Naming the columns and units wks.col1.lname$ = "Time"; wks.col2.lname$ = "Voltage Signal"; wks.col1.unit$ = "ms"; // example: milliseconds wks.col2.unit$ = "V"; // example: volts Step 3.Plotting wks.col1 = 1; // Set Column 1 as X wks.col2 = 2; // Set Column 2 as Y plotxy iy:=(1,2) // Scattered graph plotxy iy:=(1,2) plot:=200 color:=color(255,0,255); // For line graph Step 4.GRAPH CUSTOMIZATION layer.x.showGrids = 1; // GRIDS layer.x.grid.majorType = 2; layer.y.showGrids = 1; layer.y.grid.majorType = 2; layer.x.showAxes = 3; layer.y.showAxes = 3;
Thanking you Alan |
|
|