LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property node - setting custom time?

Hello,
 
as posted with a vi , I have the following problem:
 
I have a program with 2 buttons and a chart. When I press the first button , the interpretation in the chart should take this value(10:15:30) as begin point. And when I press the second button the chart should begin plotting from second (13:00:00) value.
 
I have created everything except finding how to connect those values to the node property.
The time in the chart should take my value, not sth which makes unsense.
 
Also I need to change the sample rates ( 5 points/sec if button one is pressed)
(10 points/sec if button two is pressed)
 
pls help...
John
 
0 Kudos
Message 1 of 23
(4,040 Views)


Message Edited by Ben on 12-01-2007 01:37 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 23
(4,025 Views)

hey Ben,

thnx for the excellent work ! 

about the sampling rate (it will vary from test to test ,sometimes 10 values per second , sometimes 5), should I use the multiplier & offset node properties ? it will also be read as string from a file.

Best Regards
john

0 Kudos
Message 3 of 23
(4,020 Views)

hey Ben !

it looked fine but unfortunately itdoesn`t work... The time stamp you give brings out nothing than 00:00:00, can you maybe post vi ?

Here you have functioning vi except time stamp problem.

You know without solving this problem , I will never finish college..

😞

pls help



Message Edited by J.Dred on 12-03-2007 12:09 PM
0 Kudos
Message 4 of 23
(3,984 Views)
hehe ...
 
look closer on your bundle to cluster - bundle by name..Smiley Happy
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 5 of 23
(3,974 Views)

Hi J.Dred,

To help you finish college let me pass the following hints

1) Watch your code in execution highlighting (the light buld mode) to see what values are being passed to what.

2) Add indicators to wires to see what is in them (while troubleshooting).

3) There are only 24 hours in a day (hint hint hint)

I used those three facts and managed to get your version working.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 23
(3,971 Views)
hi guys,
 
The function Date/time to seconds function gives 0 as output? why is that ??? And I thougt after giving 7 to Xscale format , we should be able to connect to Xscale.Minimum directly as Data format?
Why do you want convert a "0" value at all? and even when you sent to Xscale , it will only consist of seconds? doesn`T it?
 
guys pls help.
 
my very best Regards...
0 Kudos
Message 7 of 23
(3,953 Views)
What version of LV are you using?
 
In your cluster of time/date, you have an hour of 30, which doesn't exist.  Thus the date/time to seconds function is not handling it.
 
This was  bug in earlier versions of LV.  Later versions fixed the bug with handling values of out range and would allow out of range values to roll over for the next.  So 30 hours is 1 day 6 hours.  However the latest version still has 1 bug remaining for one of the values in the cluster.
 



Message Edited by Ravens Fan on 12-03-2007 04:23 PM

Ben was on it all along.  Take a closer look at the difference between your VI and his posted screenshot and the bundle by name functions.



Message Edited by Ravens Fan on 12-03-2007 04:25 PM
0 Kudos
Message 8 of 23
(3,946 Views)

I am using LV 7.1 Student Edition.

 

this is the last form of my code , I can`t go further, pls tkae a look, I just want the beginning date to be read from string and continue so,  100 ms between the plots which is also read from a string.

could you pls correct it?

 

best regards

john

0 Kudos
Message 9 of 23
(3,933 Views)
Wire 0.1 into the x-scale multiplier.  This sets 100 ms intervals for the data.
 
What happened to 10:15:30 you were talking about before?  That is what you want feeding through to x-scale minimum.
 
The time for 13:00 or 1 pm you will want to feed through to the x-scale offset node.
 
You have the date of May 7, 1980  hard coded into the functions that you do have.  That was a long time ago.  Do you want to use that specific date?
 
I recommend turning on Ctrl-H context help.  That will give you the information as to what the functions do (or the unwired property nodes that you have) or lead you to the point in the help file with more information.
 
Do you need to use all of the string functions and date/time manipulation?  You could also put in a time stamp constant and select the correct date/time you want to use.  Convert it to double (Numeric/conversion palette) and wire that into those nodes.
0 Kudos
Message 10 of 23
(3,920 Views)