Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Complete noob - want to measure voltage with manual start and stop

Solved!
Go to solution

Hello

 

As the subject says I am a complete noob when it comes to programming NI.

 

I am looking for someone to point me in the right direction


Setup:

Windows8 Desktop

Visual Studio 2013

NI 6255 PCI DAQ card

NI SCB-68 Connector Block

 

What I want to do:

I want to write a console application to measure voltage on signal ai16

-- I want to be able to manually start and stop the application

-- I want to be able to output the measured voltage to a csv file.

 

Where I am at:

I have compiled and run the "NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage" example

It says that I have "collected " samples but I dont know what that means, since I do not see an output file..

 

What I do not understand:

Samples - I do not understand this or even know where to start

File output - how do I get the file to save the data that is collected.

 

 

Thanks in advance

Chad

0 Kudos
Message 1 of 4
(3,917 Views)
A 'sample' is a single voltage reading performed by the analog to digital converter. Multiple samples are usually separated in time by a convert clock that is specified in samples per second or Hz.
0 Kudos
Message 2 of 4
(3,902 Views)

I believe this could be a valuable resource for you to use or reference in trying to log your data:

 

http://www.ni.com/tutorial/3633/en/#toc7

Aaron L.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,876 Views)
Solution
Accepted by topic author youngc

Hi Arron

 

Thanks for the link, unfortunatly, it did not help because the instructions were for Visual Basic and not C++. This was my fault for not putting the prog language that I needed help with in my initial post.

 

However, I did start to find help on this link: http://www.ni.com/tutorial/5409/en/

-- Using NI-DAQmx in Text Based Programming Environments

 

 

 

 

0 Kudos
Message 4 of 4
(3,847 Views)