04-16-2015 01:00 PM
Hello,
New to LabVIEW and looking for a way to practice as well as doing the online training. I have a USB 6002 and I was hoping to learn how to connect, communicate, and actually read data from it. I have no instruments of any kind that I am able to attach to it and wanted to know if someone could tell me if it is possible to connect an electronic part such as a capacitor, resistor, coil, etc..... to this unit so that it would at least send me something that I could practice creating a vi to capture and store the data. I have a book but almost no LabView experience, I am not even sure where to begin. I am trying to use the DAQ assistant but nothing is coming in from the device, I expect because there is nothing connected to it. Any help for a new B would be appreciated.
Thank you
Solved! Go to Solution.
04-16-2015 01:50 PM
04-16-2015
02:25 PM
- last edited on
04-11-2025
05:05 PM
by
Content Cleaner
If your focus is on the LabVIEW code rather than the actual hardware, then you can simulate the USB-6002 in NI-MAX. You can use that simulated device to get simualted data into your LabVIEW program, and then replace the simulated device with the real device when the hardware is ready. Section 2 of this article tells you how to simulate a device in NI MAX: NI-DAQmx Simulated Devices. This is also a chance for you to get familiar NI-MAX, which is a tool for testing and configuring hardware. LabVIEW and NI-DAQmx come with useful example code to help you get started programming with your hardware. You can find examples in LabVIEW by going to Help » Find Examples then browse to Hardware Input and Output » DAQmx.
This advice goes off the major assumption that you want to get started programming without any actual hardware setup. I'm not completely sure if that's what you're trying to do. If you need tips for setting up the hardware, you may want to ask a more specific question on the Multifunction DAQ discussion forum. or take a look at some of the documentation under Resources for the USB-6002.
Hope this helps,
04-16-2015
02:31 PM
- last edited on
04-11-2025
05:05 PM
by
Content Cleaner
I have a book but almost no LabView experience
Have a look at these links, and you will find many useful resources to learn LabVIEW:
https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495
04-16-2015 02:34 PM
Hello again,
I just had another thought. You can connect two different channels on the same device, one channel to output the signal and one channel to input the signal. That's a quick way to use your device as both the input and the output. This way you can get practice with LabVIEW and the real hardware, which is probably your true goal.
04-16-2015 02:41 PM
Yes Sir, that is exactly what I am trying to do. So I need to connect an actual voltage up to the Ai and Ao? A simple battery should do it, yes? Thank you everyone for your support. 🙂
04-16-2015 04:25 PM
@ceilingwalker wrote:
Yes Sir, that is exactly what I am trying to do. So I need to connect an actual voltage up to the Ai and Ao? A simple battery should do it, yes? Thank you everyone for your support. 🙂
Uh...don't hook a batter up to an Ao. Ao is an Analog out, it is generating a voltage, just like a battery. Hooking a battery up to this could damage the hardware. But NI has lots of protection so it likely isn't a problem I just don't know what you expect to see, you won't be able to sample an Ao.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-17-2015 01:43 AM
04-20-2015 01:57 PM
04-20-2015 02:00 PM
But did you manage to connect the AO to the AI and generate/acquire signals?