LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a virtual input device

I am trying to create a vi that will read from NI USB-9201 before it gets shipped to me.

I did load the virtual version of it, but don't know which example vi to use to get started.  Also, I would like to know how to put the virtual 9201 into the vi to "read" its output.

 

Thank you,

Sam

0 Kudos
Message 1 of 6
(3,800 Views)

Where did you try looking for an example? Example Finder will be the best place (Help -> Find Examples...). Try to see if you can find something, and if not, do post back.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(3,792 Views)
I also don't quite understand what you mean by the "virtual version of it". Have you installed DAQmx? Did you create a simulated device in MAX? If so, then you can look at the DAQmx examples that get installed when you install DAQmx. You can filter the results by explicitly limiting the results to a specific DAQ module. This is done using the controls at the bottom left of the main NI Example Finder window.
0 Kudos
Message 3 of 6
(3,786 Views)

Yes, I installed DAQmx.  I did create a simulated device in MAX; but I didn't know where to find it when I was back in a LabVIEW VI.  Isn't that what I should be doing - using the simulated device in a VI to simulate the voltage I will get from the real hardware when it arrives?  I attached a document with a screen shot of where I was looking for it, but I don't see anything labeled DAQmx-USB9201 (or something similar).

Maybe I'm just going about this incorrectly...

 

Also, I did try looking in Example Finder for a VI to get started with.  What I saw where 28 VIs to use under "Harware Input and Output: DAQms: Analog Measurements: Voltage"; so I got a little confused.  Which is the best one to select for trying to read in voltage from a Potentiometer and graph it along a distance (which will be another input) so I can see the voltage change as distance increases (then I'll want to collect all that data and save it to a file as well; but that's probably a different discussion.

I have added the screen shot of NI Example Finder in the above mentioned attachment in case I'm looking in the wrong location.

 

Thank you for all your help and advice.

Sam

0 Kudos
Message 4 of 6
(3,779 Views)

Please don't attach a proprietary file. Just attach the images - png or jpg only. Judging by the size of the file, you inserted some bmp images and your .doc file is just an attempt to get around the ban on bmp file.Smiley Mad

 

You should really go to Getting Started With DAQmx to first get a basic understanding of what DAQmx is and how to use it. When you select functions from the palette, there is nothing specific to certain DAQ devices. When you select channels to acquire with either MAX, the DAQ Assistant, or a physical channel control, you will see a list of devices and channels associated with that device. Since you only have a single simulated device, that is all that you will be allowed to choose from.

 

In the example finder, you will be able to select devices to narrow down the available choices but might want to look at all of the DAQmx voltage input examples. Nothing will be specific to a voltage across a pot - nor should you expect anything so specific. A voltage measurement is a voltage measurement.

 

Nor will you be able to specify a simulated voltage. With simulated hardware, the simulated signal you will be reading is a sine wave.

 

 

0 Kudos
Message 5 of 6
(3,773 Views)

Sorry about the attachment.  I did not know about a ban on .bmp files or I would not have included it.  I would be happy to remove it if someone would tell me how.

 

thanks for your input and advice

 

Sam

0 Kudos
Message 6 of 6
(3,767 Views)