Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

oscilloscope example program for usb 6008

I was wondering if anyone would be willing to share an oscilloscope program they have made that is compatible with the USB-6008 device.  I have found examples for 1 and 2 channel oscilloscopes that work with DAQ cards but have not found one that can work with the 6008.

Will

0 Kudos
Message 1 of 11
(18,292 Views)
Hello Will,

I'm not sure when you purchased your NI USB-6008, but it may have been when the device was only supported by the NI-DAQmx Base driver (which is a scaled down version of the NI-DAQmx driver).  After the initial product introduction, support was added for the full NI-DAQmx driver, and the example programs available to you will depend on what version of the driver your USB-6008 is using.  If your device shows up in Measurement & Automation Explorer (MAX) under the DAQmx Device category, you should be fine.  Otherwise, I would highly recommend downloading and installing the latest version of the NI-DAQmx 8.0 driver, and following the instructions listed in the following Knowledgebase:

KB 3NE7GJMY: Why can't I see my USB 6008 / 6009 under "DAQmx Devices" in MAX after installing NI-DAQ...

With your NI USB-6008 as an NI-DAQmx device, you will have access to a huge variety of example programs.  As for one that displays data from multiple channels on a display similar to an oscilloscope, it depends on what programming environment you are working with.  If you are working in LabVIEW, I would recommend "Cont Acq&Graph Voltage - Int Clk.vi", which can be found in the NI Example Finder (Help >> Find Examples) under Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage.  If you are interested in text-based programming, DAQmx comes with some C example programs which can be found in 'C:/Program Files/National Instruments/NI-DAQ/Examples/DAQmx ANSI C'.  I hope this helps!

Regards,
Travis Gorkin
Applications Engineering
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 11
(18,263 Views)
Thanks for the help.  I didn't find the exact model of an oscilloscope program but I followed your advice (I actually downloaded NI-DAQmx 7.5) and made my own program.  For anyone who wants a simple program similar to the example oscilloscope program for daq cards(in the Example Finder), I think the attached document works pretty well.
Will

0 Kudos
Message 3 of 11
(18,211 Views)

Will,

I looked at your code, and it is a great use of property nodes: programmatically changing the properties of an indicator based on what the user specifies. I'm sure you saw how powerful this can be when you were looking through the list of properties for the graph.

--
Michael P
National Instruments
0 Kudos
Message 4 of 11
(18,186 Views)
hi will c
can u give me a c++ program for the same.
many thanks
Prads
will c wrote:
> Thanks for the help.  I didn't find the exact model of an
> oscilloscope program but I followed your advice (I actually downloaded
> NI-DAQmx 7.5) and made my own program.  For anyone who wants a
> simple program similar to the example oscilloscope program for daq
> cards(in the Example Finder), I think the attached document works
> pretty well.
> Will
>
>
> O-scope8.vi:
> http://forums.ni.com/attachments/ni/250/18885/1/O-scope8.vi

0 Kudos
Message 5 of 11
(18,142 Views)
I don't have the program in c++ and have never tried to write a daq program in c++ so I'm probably not the right person to direct questions to.  I have seen some c examples in the NI-DAQmx Base folder that could be helpful though (which you probably already know about).
Sorry,
will

0 Kudos
Message 6 of 11
(18,135 Views)
I also have an updated version of the oscilloscope program (for labview 7.0).  Apparently when you plug in a different USB 6008 to the computer, the computer creates a new device, which the program does not recognize.  It is also not easy to have the daq assistant automatically switch to the available device.  (This is somewhat obvious but I didn't realize it until later.) The new program should be able to work with any installed daq device after you select a channel from the drop down menu in the front panel.  I'm not sure if anyone is using this but I didn't want to leave a non-working program in the discussion forum.
will


0 Kudos
Message 7 of 11
(18,133 Views)
Hello Will,
I´d liked to have a try at your new version of the oscilloscope, but I got the message, that a vi (finalsub2) is missing.
sdczyk
0 Kudos
Message 8 of 11
(18,125 Views)
Sorry. Here is finalsub2.vi
0 Kudos
Message 9 of 11
(18,122 Views)
Hello will c,
 
some time ago searching on the internet I found this very interesting oscilloscope. It could be very usefull to take a look into the code.
 
 
I hope it helps,
 
Saludos desde México.
 
Edgar
0 Kudos
Message 10 of 11
(17,489 Views)