09-12-2010 07:21 AM
hi, I have a program that can generate the time based on the GPS system. But now, I have a problem to change the time instead of based on the GPS time again, I want to change it to become based on the computer system (the one on the right corner of the display) because I don't want to use GPS anymore in my whole system.
part of the program can be seen on the attachment.
Anyone can help? Thanks alot 😃
09-12-2010 09:47 AM - edited 09-12-2010 09:47 AM
That VI is unreadable but if you want the system time, just use 'Get Date/Time in Seconds'.
09-12-2010 10:59 PM
Yes, I have tried to use the 'Get Date/Time in Seconds', even it gives more errors in the program. or maybe I put the 'Get Date/Time in Seconds' in wrong position?
can you help me to show where i should put 'Get Date/Time in Seconds' ?
and which subVi that I should remove in order to be independent of the GPS?
i attach the picture of part of the program.
thanks.
09-12-2010 11:26 PM
Sorry, I'm not at all familiar with the functions you are using. They are not part of anything I have installed either. What driver are you using?
You should also cleanup that VI. It's an awful lot to ask someone to try to figure out what is going on.
09-15-2010 03:08 AM
ok then. Actually the problem that I face is error in which I attach the figure on the attachment file. Do you know what the problem I encounter?
Thanks
09-15-2010 10:24 AM
It seems you are not reading the scope fast enough. This can happen when the time it takes to process the data is longer than your acquisition rate. You might want to consider a producer/consumer architecture.
09-17-2010 03:17 AM
oh, i see. Thanks.
By the way, I want to ask about case structure. Since I'm beginner in labview, i dont know how to connect the 'true case' and 'false case' in the block diagram to the same object in the front panel.
In the attachment file, just as example, actually I want to put the string terminal on both true case and false case in the block diagram whereby it points to the same string on the front panel. (in the attachment file, I just put the string on the true case only).
Can you help me to explain how to do it?
Thank you
09-17-2010 08:19 AM
It's pretty obvious you did not write the previous VI you posted if you do not understand how to use a simple case statement. Solution posted below but you have to start wuth the basic tutorial before doing anything else.
09-17-2010 01:21 PM
Of course, I did not make that program. Here I just want to edit the program according to my needs.=)
from your example, I want the "String" inside the case structure, not outside it.
My question is how to make that "String" to be in both true and false case.
Thanks
09-17-2010 05:38 PM
Having the same string inside that case statement is just silly. You can certainly create a local but why?