LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6002 practice

Solved!
Go to solution

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

0 Kudos
Message 1 of 26
(7,462 Views)
You have to connect a voltage to it. That it not related to LabVIEW or any other programming language.
0 Kudos
Message 2 of 26
(7,453 Views)

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,

Taylor B.
National Instruments
Message 3 of 26
(7,441 Views)

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

 

0 Kudos
Message 4 of 26
(7,432 Views)

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.

Taylor B.
National Instruments
Message 5 of 26
(7,430 Views)

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. 🙂

0 Kudos
Message 6 of 26
(7,419 Views)

@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.

0 Kudos
Message 7 of 26
(7,410 Views)
Please post attention to what was said. The ao will generate a voltage and you can wire ao to ai. Amy experience at all with basic electronics?
0 Kudos
Message 8 of 26
(7,391 Views)
Electronics, yes. PLC's, yes. LabVIEW, no.
0 Kudos
Message 9 of 26
(7,339 Views)

But did you manage to connect the AO to the AI and generate/acquire signals?

0 Kudos
Message 10 of 26
(7,335 Views)