07-13-2022 08:26 AM
I'm using a USB6000 where i have 8 analog sensors connected, I'm using the DAQ assistant to connect their signals to a waveform chart.
The default of this chart is not 0 to 10 for example which I see in all youtube videos using this chart. For me, it is the real-time and the date on both sides. I tried everything and now I changed it to decimals but then it will start at 3740557141 because it will really wants the dates and real-time.
What I need:
A graph where I can call the time from 0 to whatever, for example, 0 to 1000. So that I can log results over a 1000 seconds and analyze the graph. Right now it is really annoying to read.
Also, I would like that the data points correspond to the position on the time axis. Right now, all data points will move from left to right, so I don't know when that data point occurred.
Also is it possible to get 8 different graphs? Instead of all in one?
Lastly, I would also like to scae the signals because all of the zero idle voltages are different which is confusing and ideally I want to map the voltages to a unit (i know the calculations for each corresponding sensor)
Thanks for answering!
07-14-2022 01:24 AM
Welcome to the LabVIEW Forum, @JulesvH.
Here are some comments/suggestions.
Bob Schor
07-14-2022 02:47 AM
Thanks for your answer!
I've tried the properties but every time when I run the program, the x-axis changes back:
This is when changing it myself (0 to 1000)
When i Run (3740627787 to 3740628787):
Also the data will come from the right and each point will keep moving. I want a constant x-axis where each point stays at its corresponding position above the x-axis.
Lastly, could you (or somebody else) emphasize how I can scale and offset (and maybe invert) individual graphs?
Right now I can only connect 1 graph to the DAQ assistant which will output all the data to the same graph. Therefore I do not see how I can add the LabVIEW mathematical operators.
I tried adding multiple DAQ assistants to add different waveforms to each one but it doesn't allow me to add multiple DAQ assistants.
I've added the code in the appendix now 😉
Thanks!
P.s. I'm totally new to LabVIEW
07-14-2022 10:40 AM - edited 07-14-2022 10:47 AM
It sounds like you want the X-Axis to be Relative Time from 0 to 1000 seconds?
Try this:
Turn off auto scale X-Axis, set your min/max, and chose this Style
Set the X-Axis Display Format to Relative Time
Use the Advanced Editing Mode to set the Format String to show only seconds (remove hours %H and minutes %M)
07-14-2022 02:31 PM
To add to @RTSLVU's excellent comments, here are a few more:
Bob Schor
07-14-2022 03:06 PM
@Bob_Schor wrote:
To add to @RTSLVU's excellent comments, here are a few more:
- It looks like RTSLVU is plotting each "row of data" in a separate Chart (which certainly prevents plots lying "on top of" each other), rather than the "add an offset to each plot and plot all channels on a single Chart". I've done this both ways -- "You Pays Your Money, and You Makes Your Choice").
Yeah when I opened the VI the Chart was already set to "Stack Plots" so I didn't bother changing it back to "overlay plots"
07-14-2022 05:18 PM
Wow! I never heard (or else I "forgot") about Stacked Plots! What a cool idea ... Hmm, I should look at my old code from a Project I largely completed a decade ago where I had Chart data to plot -- did I use Stacked Plots and just "forgot" about this feature? Can you spell Altzheimer?
Forgetful Bob
08-10-2022 03:45 AM - edited 08-10-2022 03:46 AM
Thanks for your comment! @RTSLVU
I've tried this and once I run the code then all graph settings will reset.
Any idea on how to solve this?
P.s.
Excuse me for my late reply, just got back from a holiday.
08-10-2022 09:00 AM - edited 08-10-2022 09:01 AM
Show me the Chart Properties Scales tab:
Also make sure you don't have any property nodes in your code that could be changing things