06-20-2020 08:07 AM - edited 06-20-2020 08:35 AM
hello!
I've just started learning Labview. I'm having some problems. My device is NI USB-7856R. I want to input sinusoidal signal (1Khz,1.5V) from scb-68a.But there is nothing in the waveform. Can anyone help me?
Solved! Go to Solution.
06-20-2020 08:28 AM
Hi Clel123,
Certainly it should be possible to acquire a sinusoidal signal with that module.
If you share the code you've written so far it might be possible to make some suggestions that would help you along.
From what you've written so far, it's difficult to even guess what the problem might be.
You could also take a look at the Examples in LabVIEW (Help > Find Examples...) for things related to either your specific hardware, or Analog Input more generally using R-series modules.
06-20-2020 08:29 AM - edited 06-20-2020 08:32 AM
Wow! I've been using LabVIEW (and NI DAQ Devices) for over a decade, and I've never encountered such a sophisticated device. If you are just starting to learn LabVIEW, I hope you have some knowledgable colleagues around who can help you get started with this device!
What I would do if someone handed me such a device would be something like the following:
Bob Schor
P.S. -- NI has some nice tutorials on DAQmx. My favorite (which taught me a lot) was something like "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acqusition Applications". If you do a Web search for "Learn 10 Functions in NI-DAQmx", you should find it (even if I didn't quite get the title correct).
06-20-2020 08:36 AM - edited 06-20-2020 08:40 AM
Thank you for your suggestion! I have put up my VI picture.
06-20-2020 08:40 AM
Hello, I can see my device (USB-7856R) with MAX, but right click only "rename", as shown in the picture.I know there is DAQ acquisition assistant VI, but I want to take the signal from the AI port and send it to PC VI.Thank you for your reply!
06-20-2020 08:44 AM
A few potential problems stand out:
06-20-2020 01:22 PM
It is challenging to work from pictures. It would be much easier for us to help you if you sent the entire LabVIEW Project, with the Host VI and the FPGA code for your device, included. If your Project and its files form the contents of a single Folder, then use "Send to:" to send it to be compressed, and attach the resulting .zip file.
While I don't have your device to test your code, I do have a RIO device sitting here that I could use to test your ideas, and make suggestions. I'm not an FPGA "expert", but I'm rapidly learning how it works and writing some LabVIEW-RT code that using this chip. We'll "learn together" ...
Bob Schor
06-20-2020 09:41 PM
Hi,
I connected the signal of 1KHz and 1. 5V from AI0 port, and put the whole project compression package on. Thank you for your reply!
06-20-2020 09:50 PM
Hi,
I changed the data type of FIFO to a fixed point, but there is still a coercion dot (red dot). I will send the compressed package of the project. Please give some suggestions. I can still see only one line in the waveform chart.
06-20-2020 10:38 PM
@CIel123 wrote:
Hi,
I changed the data type of FIFO to a fixed point, but there is still a coercion dot (red dot).
Hi,
I opened the code you attached and am now installing the drivers to be able to read it more carefully, but it seems like (and perhaps this is related to my lack of a driver at the moment) your FIFO type is now signed 48 bits with 24 integer bits. I strongly suspect that the datatype for the AI value is much narrower (e.g. perhaps signed, 16 bits with 4 integer or similar).
@CIel123 wrote:
I can still see only one line in the waveform chart.
I'm a bit confused here - how many lines are you expecting to see? Can you share a graph of what you're getting (screenshot etc) and perhaps an example of what you're expecting (I'd thought this would be a single line with a sine wave shape, 1V amplitude and 1ms period based on what you'd previously written, but if that's not the case (and you're expecting multiple channels, for example) please let us know 🙂 (if that is the case, then we probably don't need the expected graph!)