From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-20-2021 03:16 PM
I have 17 digital inputs that I am collecting 1000x a second. Each time I collect I get an array of 17 waveforms with one data point each. When I wire this to a digital waveform graph the graph only displays the single data point for each of the 17 DI channels. I want to display the last x seconds of data like a chart does.
How? What is the design pattern? It seems I can't find a "Digital Waveform Chart" in my indicators.
05-21-2021 01:37 AM
Hi flycast,
@flycast wrote:
I have 17 digital inputs that I am collecting 1000x a second. Each time I collect I get an array of 17 waveforms with one data point each. … I want to display the last x seconds of data like a chart does.
How?
Then you should collect your boolean data in waveforms containing more than just one sample!
What about building waveforms containing "x seconds * 1000S/s" samples?
05-21-2021 08:07 AM
@GerdW wrote:Then you should collect your boolean data in waveforms containing more than just one sample!
What about building waveforms containing "x seconds * 1000S/s" samples?
My process is not a fixed length of time. It varies from between 0.1 seconds to 150 seconds. Sounds like I need to initialize a array of digital waveform and then append the data as it comes in.
Thanks for your help.
05-21-2021 10:30 AM
I am thinking about this a little more. I am collecting the states of air valves (open or closed) by using a DI module (NI 9425). I can collect the data in a number of different types:
1D Boolean
2D Boolean
1D U8
1D U16
1D U32
1D Waveform
It seems to me like I just don't know enough about LabView to make a well informed and wise decision about these different formats. I want to:
05-21-2021 12:24 PM
Graphs and charts display data from left to right with time or points on the x axis. How are you possibly going to show 17 signals that are all 0 or 1 on that? Best case scenairo you have 8 signals overlap on 0 or 1 (and 9 signals on the other amplitude). Can you show what you expect the end result to be?
05-21-2021 12:52 PM
Hi flycast,
@flycast wrote:
I am collecting the states of air valves (open or closed) by using a DI module (NI 9425). I can collect the data in a number of different types:
1D Boolean
2D Boolean
1D U8
1D U16
1D U32
1D Waveform
Well, those different datatypes belong to different acquisition modes…
The 1D boolean reads one sample per channel and gives you a 1D boolean array for all channels.
The other datatypes are used when you read several samples for several channels, giving you 2D data. You get
@flycast wrote:
It seems to me like I just don't know enough about LabView to make a well informed and wise decision about these different formats. I want to:
- display the data as it is being collected.
- Save the data in a TDMS file after each data set of 0.1 seconds to 150 seconds is collected.
- Check the data for certain out of spec conditions
Depending on your requirements you should think about producer-consumer schemes…
05-28-2021 10:20 AM
How are you possibly going to show 17 signals that are all 0 or 1?
For those unaware, the "Digital Waveform Graph" handles this quite nicely. Will it be tall? Yes, 17 is still a lot 😉