10-31-2017 11:21 AM - edited 10-31-2017 11:21 AM
How can i start waveform plotting from Zero instead of time or date? I'm using arduino interface.
10-31-2017 12:51 PM
Hi George,
how is "waveform plotting" related to "arduino interface"?
Can you please explain "start … from Zero instead of time or date"? Where do you see "time or date"?
Can you share your current VI to let us actually see your problem?
11-01-2017 05:58 AM
Dear The Knight of NI 😊
I have attached the VI in this email, please see attachment. The analogue reading should be recorded over the time and I would like to start from zero on X axis. Besides that, I have another question regarding the LED and analogue reading from photodiode. Now, the LED is turn on during analogue read, but I would like to turn on the LED a few millisecond before reading the analogue signal (photodiode) to let the LED warn up and turn of the LED after the analogue reading. Is that possible to do it? Your help will be highly appreciated.
Many thanks
George
11-01-2017 06:46 AM
Hi George,
The analogue reading should be recorded over the time and I would like to start from zero on X axis.
Set the x axis to "relative time"…
Now, the LED is turn on during analogue read, but I would like to turn on the LED a few millisecond before reading the analogue signal (photodiode) to let the LED warn up and turn of the LED after the analogue reading. Is that possible to do it?
This "sequence of states" really enforces just one answer: use a state machine!
Define some states (like "turn on LED", "wait warmup time", "read analogue input", "turn off LED", "save data") and have your state machine execute those states in the desired order.
LabVIEW comes with an example project of a stae machine!
On your VI: you really should THINK DATAFLOW to have those Arduino functions execute in a certain order (instead of "parallel" like you do now). It will also help you to get rid of this sequence structure…