Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Help for making simple VI for measurement

I need two make a simple measurement. But I am noob so i would appreciate some help.

 


The VI I am going to make need too do as follow:


The user must type in a serial number.

When the user clicks a button, a digital output “D1” needs to go high for 1 sec. Within that sec must the two differential voltage ai0-ai1 and ai3-ai4 get sampled with an sampling rate on about 1kHz measured for about 1 sec (1000 samples). It is important that the two differential voltages are measured simultaneously or with an as high as possible scan rate.

I imagine that the 1000 sample can be stored in a buffer and then the following calculation needs to be done.

ai0*1,95/ai1 for all samples and calculate the mean of the results. The mean then needs to be outputted to the user with 2 digits (xxx.xx) on the VI and stored in a file with a timestamp and a serial number typed in by the user.

I have an NI USB-6008

I hope someone out there can help me. I am all new to Labview.

0 Kudos
Message 1 of 6
(3,712 Views)
Hi,
 
I attach a simple program to get you started with the DAQ. You can double-click the DAQ Assistants on the block diagram in order to set the channels and digital line.
Please look in the Example Finder (in the Help menu) to learn about analysis and File I/O.
 
Hope it helps.
Pelle S
Account Manager
National Instruments Sweden
Message 2 of 6
(3,682 Views)
Hi Pelle S

Thanks for the VI. But i am running labview 8.2 and you have made it in version 8.5. Can you convert the VI to the older version.

Thanks in advance
- Swiim
0 Kudos
Message 3 of 6
(3,657 Views)

Sorry for that.

Here it comes.

Pelle S
Account Manager
National Instruments Sweden
0 Kudos
Message 4 of 6
(3,655 Views)

Hi Pelle


No problem you couldn’t know.
Thanks for the fast response. It looks like a great start for my VI.
I will post here if/when I meet some problems.

Thank you so far.

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

Hi,

I have been working quite a bit with the VI Pelle uploaded. I must say that I really like LabView, it is quite easy to figure out.
I got two tasks left now.

  1. I need to calculate the mean of the 100 samples that is the result of the deviation. The mean then needs to be stored in a file with a user typed serial number and a timestamp.

  2. I need to set port 0 (P0.0 – digital output) high (5v) for 200m sec plus the time it takes to acquire the 100 samples. In other words P0.0 needs to go high when the user click the measure button and after 200m sec must the 100 samples take place and then shall P0.0 turn low (0v).

 

I haven’t worked with task 1. yet, so I don’t need help with that for now. But I have worked a lot with task 2 without getting an acceptable result. Can anyone please help me with task 2?

I have attached my VI.

Thanks in advance,


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