04-23-2018 02:37 AM
@Bob_Schor wrote:
Do you understand Sampling Theory? If you are interesting in signals in the 0-10Hz range, why are you sampling at 50KHz? Please use standard abbreviations -- I can "guess" that 50ksps = 50KHz, but 1MS, to me, means 1 Mega-second, which makes no sense.
Bob Schor
http://www.ni.com/sv-se/support/model.usb-6008.html
NI uses kS/s for their devices, so writing ksps isn't far fetched. I'd even go so far as saying it's more correct than Hz.
/Y
04-23-2018 02:41 AM
@GerdW wrote:
Otherwise "KHz" is unknown to me: With SI units you should use a small "k" to denote "kilo".
Why do you think "mega seconds" with "MS": this clearly is "MegaSiemens", the reciprocal of µOhm…
(Just some Sunday evening joking about SI units used by
USpeople not used to metric system. :D)
KHz would be KelvinHertz ... whatever that would symbolize, some temperature dependant frequency?
/Y
04-29-2018 06:46 PM
Sorry for the delay. Finals time has come and is almost gone. Here is the VI. It is basically 2 example VIs and some stuff I added for the Thorlabs stuff.
Thank you all for helping out and for all of the productive advice... well mostly
04-29-2018 08:24 PM
Have you "played with your Device" using MAX? You can set up a Test Panel to define the (multiple) Channels you want to sample, set the Range, set the Sampling parameters, then Start the Task. You can also "define a Task" that is saved in MAX, and has all of these saved in the Task Constant. So you can simplify the DAQmx code by wiring a Task Constant to "Start Task", click the down-triangle and select the Task you just created in MAX. Alternatively (the method I prefer), you can use a LabVIEW Project and define the Task in the Project ("New", "Task").
If you set up to sample 5 channels, and you want to process all of them, you can use a For Loop and process each Waveform. If possible, it is much easier (and more compact) to get rid of all Express VIs. Note that the first two Scale operations are "multiply by 2", and the other three are "Do Nothing" (multiply by 1).
Using sub-VIs, you can make your entire routine fit on a single (laptop) screen. Much easier to look at, and try to understand.
Bob Schor
05-04-2018 12:57 PM
Yeah, the size of it has become annoying. I will definitely look into that. I have not tried Max, but when I did, it seemed like it was just DAQ Assistant. Is that correct? I used it before, but opted for this to try to get more out of it. But since they are doing the same thing, using assistant would be much cleaner. I will look into both of those options to clean it up.
The scales were there before I finalized it so the scale by 1 was just adummy. I am not sure if I need to sale it yet, but will definitely get rid of it if I do end up not using it, thank you.
Thanks again! I just started in a new lab, so my reply is late. Sorry about that.
05-04-2018 10:04 PM
DO NOT USE the Dreaded DAQ Assistant. Do not use its Evil Twin, the Dynamic Data Wire. Read this NI White Paper which explains Tasks, creating them in MAX (you can also create them in the LabVIEW Project Explorer), and how to use DAQmx functions.
Bob Schor
05-05-2018 03:34 PM
Thanks again! I didn't think you meant use the assistant but that is all I found while quickly exploring max. So, thanks for the link. I'll be sure to take a look at it!