LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help urgent gps time

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 😃

0 Kudos
Message 1 of 11
(3,484 Views)

That VI is unreadable but if you want the system time, just use 'Get Date/Time in Seconds'.

0 Kudos
Message 2 of 11
(3,471 Views)

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.

0 Kudos
Message 3 of 11
(3,446 Views)

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.

0 Kudos
Message 4 of 11
(3,439 Views)

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

0 Kudos
Message 5 of 11
(3,403 Views)

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.

0 Kudos
Message 6 of 11
(3,392 Views)

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

0 Kudos
Message 7 of 11
(3,347 Views)

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.

0 Kudos
Message 8 of 11
(3,334 Views)

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

0 Kudos
Message 9 of 11
(3,316 Views)

Having the same string inside that case statement is just silly. You can certainly create a local but why?

0 Kudos
Message 10 of 11
(3,299 Views)