LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

psd

hello, i have encountered some problems on the way of plotting psd spectrum density in matlab , as a source i used the excel file with data from labview. Time and amplitude. 

 

The data from the graph is wrong, it shows some random freq on the plot, IDK whats wrong.

Im kind of new here with dealing FPGA labview MyRio.

 

and the thing is im exporting data from the Myrio 1900 ai0 connectors graph (output of opamp) to  the excel file. but that excel file contains wrong data. i mean just looking at the graph chart i can see difference with scope.( i checked the output before with oscilloscope)

 

do smn know how to use it so it will work eventually? Because i think I need to use FIFO or smth advanced . pls i need help.  

as2717sussexacuk_0-1720691198782.pngas2717sussexacuk_1-1720691245748.png

ps dont look at the empty graphs i didnt run anything yet. PLS HELP. I AM USING MSP connector. with 1 sample rate i think. 

 

0 Kudos
Message 11 of 23
(467 Views)

Hi as,

 

no need to start a new thread for the same topic. Keep things (and discussion) in one place!

 

Mind to share some code? We cannot debug/edit/run images in LabVIEW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 23
(441 Views)

sinewavegen file in fpga. 

0 Kudos
Message 13 of 23
(436 Views)

Hi as,

 


as2717@sussex.ac.uk wrote:

sinewavegen file in fpga. 


There is no "sinewavegen" file in the archive. (Apart from that bitfile, which is just "compiled code".)

Where did you place your VI?

 

Why is the project still "untitled"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 23
(427 Views)
0 Kudos
Message 15 of 23
(407 Views)

There are so many "moving parts" to your situation that I find it difficult to understand (without seeing all of the relevant LabVIEW code) where the problem lies.  Here are the parts I know:

  1. You are sampling analog data at some rate using a myRIO.  Please (re-)state clearly the sampling rate and type of sampling (finite vs continuous, # of channels, how many samples acquired at a time).
  2. You appear to be acquiring these samples using code written for the myRIO's FPGA.  How are you getting these values to the processor inside the myRIO running NI Linux LabVIEW Real-Time?
  3. You mentioned saving the sampled data in an Excel format.  Where is this file generated?  I'm assuming it is on the PC running LabVIEW and "hosting" the LabVIEW Real-Time Project whose Real-Time code is described in Items 1 and 2, but this isn't clear.

To provide you with meaningful help, we really need to see the entire Project, preferably saved for LabVIEW 2019 or 2021, both of which have myRIO Software Toolkits that will support the myRIO and integrate with LabVIEW Real-Time.  

 

Bob Schor

0 Kudos
Message 16 of 23
(407 Views)

 

1.sampling rate of sine wave generation loop is 1000 tick *25ns continuous

the acquiring channel sample rate didnt define so, it is ordinary 500ks ? yes? for Ai0 MSP connection.

 number of channels are 3,  sine wave input, output of sensors, and subtraction each other. i think that subtraction also need some adjustment. idk. how to do smpl rate adjustemnt between them. 

2. im using typical labview fpga myrio project.

3. excel file is extracted simply  from graph of input ai0. 

 

 

0 Kudos
Message 17 of 23
(397 Views)

Regrettably, I'm at a meeting far away from my own myRIO devices.  Something seems wrong with your sine-wave generator, but I can't put my finger on it without poking around a bit, perhaps generating a very slow sinusoid and using Bob-friendly Time Units (like ms instead of Ticks).

 

Back to Gerd ...

 

Bob Schor

0 Kudos
Message 18 of 23
(393 Views)

Hi as,

 

charts doesn't make sense in a FPGA VI as the FPGA doesn't provide any UI capabilities…

 

Use FIFO(s) to transfer data to the RT host!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 23
(380 Views)

ok ill try, but its too much work, are there any other method than using dma fifo?

0 Kudos
Message 20 of 23
(367 Views)