09-30-2007 11:12 PM
10-01-2007 02:40 AM
Hi how81,
post your code rather that several pictures. makes it hard to read like that.
but your problem i understand is to aquire data. i would suggest 2 things: first open the MAX (measurement and automation explorer, in the NI folder). in there, if you have installed your card, you should be able to recognise it and test it, with your real input.
second, browse the LV examples for data aquisition:
NI example finder -> hardware input and output ->DAQmx->analog measurements->...
for example the voltage->ack&Graph Voltage EXtclk.vi.
then come back with a piece of code if you have troubles. good luck
10-01-2007 03:26 AM - edited 10-01-2007 03:26 AM
Message Edited by How81 on 10-01-2007 03:29 AM
10-01-2007 03:32 AM
Hmm...Thanks for pointing out a way for me to try it out at least ,Gabi1 ! Deeply appreciated!
No problem
browsing and deciphering examples is a great way to learn labview.
I am not too sure how to post the code up as most of it are in blocks, pardon me, still quite a novice after trying LV out for some time.
if you dont have subvis, simply attach the vi itself.
if you have subvis, you can either zip them together we recieve all of them, or save your application under what is call a llb : save with options - > development distribution.
you will create a new file with llb extension, that is effectively a containing library of all the subvis you use in your project.
once you are started, and you still have problems, ask again on this forum
10-01-2007 03:48 AM
10-01-2007 05:15 PM
HI,
Below is a link to our getting started with NI-DAQmx series.
http://zone.ni.com/devzone/cda/tut/p/id/5434
This document has tutorials and explanations of our most common questions. I would recommend this as resource to start from as well as the shipping examples as Gabi1 suggested which can be found by going to Help>>Find Examples... Then once the example finder is open browse the following Hardware Input & Output>> DAQmx>>Analog Measurements>>Voltage. These examples are a great starting points if you need help with program flow and Data input.
With regards to your question about channels and error handler:
Channels, Physical Versus Virtual (Taken from DAqmx Help)
<SCRIPT type=text/javascript> </SCRIPT> A physical channel is a terminal or pin at which you can measure or generate an analog or digital signal. A single physical channel can include more than one terminal, as in the case of a differential analog input channel or a digital port of eight lines. Every physical channel on a device has a unique name (for instance, SC1Mod4/ai0, Dev2/ao5, and Dev6/ctr3) that follows the NI-DAQmx physical channel naming convention.
Virtual channels are software entities that encapsulate the physical channel along with other channel specific information—range, terminal configuration, and custom scaling—that formats the data. To create virtual channels, use the DAQmx Create Virtual Channel function/VI or the DAQ Assistant.
Virtual channels created with the DAQmx Create Virtual Channel function/VI are called local virtual channels and can only be used within the task. With this function/VI, you choose the name to assign for the virtual channel, which is used in the rest of the NI-DAQmx software framework to refer to the physical channel.
If you create virtual channels with the DAQ Assistant, you can use them in other tasks and reference them outside the context of a task. Because these channels can apply to multiple tasks, they are called global virtual channels. You can select global virtual channels with the NI-DAQmx API or DAQ Assistant and add them to a task. If you add a global virtual channel to several tasks and modify that global virtual channel with the DAQ Assistant, the change applies to all tasks that use that global virtual channel.
The error in and error out clusters include the following components of information:
Some VIs, functions, and structures that accept Boolean data also recognize an error cluster. For example, you can wire an error cluster to the Boolean inputs of the Select, Quit LabVIEW, or Stop functions. If an error occurs, the error cluster passes a TRUE value to the function.
The above information can all be found in either the LabVIEW or DAQmx help files. Which are found by going to Start>>All Programs>> National Instruments then the respective piece of software and opening the help file.
Thanks,
JaceD
10-02-2007 04:46 AM
Thank you for your help too, JaceD!
I just started trying out on individual DAQmx blocks, rather than the DAQ assistant hoping that I can grasp it better that way, although time is an essential quantity as of now..:( Appreciate all your kind assistance!
10-03-2007 12:56 PM - edited 10-03-2007 12:56 PM
Hi How81,
I have attached a screen shot of an example program that explains the basic program flow when performing data acquisition. I have also attached a screen shot of how to have code generated from a DAQ Assistant, this is done by right clicking on the DAQ Assistant. This is a great comparison tool so that you can see what the DAQ Assistant is doing. I have also provided links to tutorials which are extremely helpful and explain in great detail why certain things are done and how.
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
Complete Data Acquisition Tutorial
DAQ Assistant code generation
Program Flow explanation
I hope this helps!!
Message Edited by jaced on 10-03-2007 12:59 PM