07-27-2022 11:00 AM
I was using the 2D array because I thought it would be a seamless transition from splitting array elements and then graphing, as the graph requires a 2D array. I switched over to using the 1D array as the input to my array subset function and it seems to work better.
I now have the 1D array going into the array subset input, splitting the element index I want, then using the insert into array function to combine all elements into one array, and finally using build array to be able to graph. This has fixed my problem and now I am able to plot the elements I want, on the graph that I want.
I am not using the Express VI's in this program, I was just trying to show what I did in a different program with a DAQ module and DAQ assistant VI. I was having trouble splitting signals and didn't think I would be able to export to excel as easy as I did in my other program. I am still looking into the saving/exporting function, but wanted to see if anyone had some recommendations.
I've attached a 2020 version of my most updated VI.
07-27-2022 11:18 AM
07-27-2022 11:23 AM
07-28-2022 09:03 AM
I think I see what you meant with the arrays now. I've managed to figure out how to export and save my data, but it is not without issues. Unfortunately I don't have much time to spend on this anymore, but I think it's good enough for what I need. Thank you to everyone that's helped!
Most recently updated VI is attached if anyone would like to see:
I'm not sure which one of these posts to mark as the accepted solution, as they were all very helpful.
07-28-2022 10:01 AM
@luka.zz wrote:
I think I see what you meant with the arrays now. I've managed to figure out how to export and save my data, but it is not without issues.
You are still very unfamiliar with array handling. Here are some minor corrections that could make a big difference in the result:
After scaling, your data has two decimal digits, so formatting it as integers seems wrong. Use "number to fractional string" instead. Since you are writing strings to the file, a %f format is completely wrong. It will screw up your date and time columns irreversibly. Use %s!
You should only write headers if the file is initially empty. If you want to start out with a new file with each run, set append=F when writing the headers. Much better would be some extra code using the explicit file dialog so you can decide what to do.