04-22-2021 10:58 AM
I need help with taking data and showing current time and date on both a chart and writing it to a measurement file.
Essentially I am taking in data from an encoder that outputs data in amps. From here I taking that output current and converting it to a position value in inches. Then calculating velocity which would be outputted on a chart. However, I can't seem to show the current date and time. This VI is running separately over the network. I am using a NI 9207 module on a CompactRIO-9045
I have attached the Vi I am using which is on LabVIEW 2020.
Any assistance would be appreciated and since I am a newbie I might not have given you all the information you might need to help me but I can provide more if needed.
Thanks
04-22-2021 11:27 AM
Your VI is missing.
04-22-2021 12:11 PM
Sorry I thought I attached it.
04-23-2021 01:28 AM
Hi AverageJoe,
@YourAverageJoe wrote:
Then calculating velocity which would be outputted on a chart. However, I can't seem to show the current date and time.
Technical solution to your question: convert the scalar FeedRate value into a waveform, then display the waveform in your chart. The chart will now allow to display timestamps on the x axis…
Your really should cleanup the VI:
04-26-2021 09:07 AM
Thank you for the help.
Do you know a good way to save this information to the measurement file. I've been trying to find a way for it to save the time stamps as well as the data in like lets say 2 columns and have it presented nicely.
Any assistance would be great
04-26-2021 09:53 AM
'Get Date/Time String' or 'Format into string' (if you want more control) will convert a timestamp to a string that you can write.
04-26-2021 12:25 PM
How is that parameter pass through the write to measurement file express VI. Any help would be appreciated
Thanks
04-26-2021 01:45 PM
Hi Joe,
@YourAverageJoe wrote:
I've been trying to find a way for it to save the time stamps as well as the data in like lets say 2 columns and have it presented nicely.
Then you need to provide your data as two columns (aka 2D array). Right now you only save a 1D array, resulting in just one columns…
Judging from your VI you should take the "Training resources" to learn LabVIEW basics (like data handling with correct datatypes)!
04-27-2021 08:15 AM
Yes again I'm still learning and I believe I found some way of making it play nice. Thanks for the training resources.
Here is what I have after some time making my own revisions.
Let me know what you think.