LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp

is it possible to store the sampled time instants data including milliseconds while using simulate signal?

Download All
0 Kudos
Message 1 of 4
(2,099 Views)

What are you trying to do?  Between the GPS post and this, I suspect there might be an easier way to accomplish what you're trying to do.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(2,084 Views)

Sorry for making you confuse.

The thing that I would like to do is   

I am doing project on phasor measurement and I have to take 20 samples per second to satisfy IEEE standard for dynamic state measurement. to get more precision

for represent theta value I have to store data 1 sample/50 milli seconds  and I have to show for every 50 milli seconds 1 sample data store in report sheet. For that I used wait function it didn't work. After that I used high resolution block in timer function palate, it has given time in milli seconds only it didn't shown seconds. After that I go for tick count block in timer function palate and it also didn't work as my requirement. That's why I go for GPS module interface. But I have PPS module GY-NEO6MU2 and I don't known which can be able to use to get 20 samples per second with synchronized timestamp.

Could you please tell me how to get 20 samples per 1 second with time data includes in HH:MM:SS:000(MS).

0 Kudos
Message 3 of 4
(2,066 Views)

[This Reply is intended for the Original Message.  After I posted it, I saw a second message from you.  I'll try to answer that in a second post -- sorry for the confusion.  Incidentally, the answer to the Original Question is "Yes, it is possible to generate such a simulated signal, but not the way you are attempting to do it ..."].

 

     You really need to spend more time learning LabVIEW.  I know NI has provided Express VIs and the (awful) Dynamic Data Wire to "make things seem easier" for beginners, but such "sharp tools" are extremely dangerous in the hands of the "unguided".  You will do much better spending a few hours with the "Getting Started with LabVIEW" tutorials, and trying to do everything with LabVIEW functions and without any Express VIs (for now).

     Here are some problems:

  • You use the Express VI "Simulate Signal" to simulate a 50 Hz Sinusoid, sampling at 1 kHz, but only generating 21 points at a time (or 21 msec of signal).  This seems weird.
  • One huge drawback to this Express VI is that it forces (I think) the output to be a Dynamic Data Wire, an awful structure that I think NI made expressly to convince Beginners that LabVIEW was "easy" and required "no thought".  [It is, compared to some other languages, quite easy, but still requires thought and some training!].  A better choice would have been one of the many Waveform Analog Signal Generator VIs, which output a Waveform.
  • You specify that your output Signal (in the DDW) have Timing Information.  Good.  Then you use Convert from Dynamic Data functions to throw the Timing Information away!!  I guess you don't know what you are doing ...
  • You appear to be trying to fix this mistake adding the current Relative Seconds as a Signal and then bundling this with several other signals (I can follow the logic of what you are doing by painstakingly tracing your code, but it doesn't make sense, so it's safer for me to assume that you don't know what you are doing, and are possibly/probably doing it wrong).
  • Recall that the Simulate Signal Express VI generates 21 msec of signal at a time.  You set it to simulate Acquisition timing, so it should take 21 msec.  So why do you have a 50 msec Wait function in this loop?  [Quiz -- assuming all the other functions inside the loop take <1 msec to execute, at what speed does the Loop run?  Every 21 + 1 = 22 msec?  Every 21 + 50 + 1 = 72 msec?  Some other number?] 

[For other Forum readers -- please allow Nagendra to answer the above question!]

 

Bob Schor

0 Kudos
Message 4 of 4
(2,062 Views)