LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PWM PCI-6251

Hello Andrew W

Thanks for your reply.

Best regard

zacha

0 Kudos
Message 11 of 15
(1,356 Views)

Hello Andrew W

Thanks for your reply.

i got a problem .i don't measurement and save real time for analog voltage input when generate PWM.

How i do.

Best regard

zacha

0 Kudos
Message 12 of 15
(1,343 Views)

Hello Andrew W

i sory .a first one it wrong a program.

this reply is true progam for use.

i got a problem .i don't measurement and save real time for analog voltage input when generate PWM.

How i do.

Best regard

zacha

0 Kudos
Message 13 of 15
(1,339 Views)
Zacha,

I'm interested in your code, but could you clarify the problem you're having with the VI?  Is the DAQ Assistant not behaving in the way you want?  Is the sequence of events in your application incorrect?  With a little more information maybe I can help you out!
0 Kudos
Message 14 of 15
(1,307 Views)
Hello LV_junkie
Thanks for yous reply.i'm sory. i'm not clear the problem in my program.
In my program .i'm use DAQ Assistant measurement the analog input from position sensor and calculate the positon in degree.
i'm use the position (deg) to check condition in case structure. the program in case structure [1] are generate the PWM to drive
the solenoid valve.
the fomula are check the condition in case structure is:
 
//condition to Position//
/* a is an input from position sensor and b is a insirt position input */
/* y = 0 decrease angle
    y = 1 increase angle 
    y = 2 hold position    */
if (a[0]>=b)        /* if array a[0] >= input*/
y=0;                   /*y is default condition =0*/
else y=1;          /*if array a[0] < input .y is codition =1 are increase position angle*/ 
if ( abs(a[0]-b) <=5)
y=2;
 
The problem in my program is:
1.When generate the PWM in port0/line0:7 the DAQ are not measurement a analog input in real time.
   but it measurement a one value only.
2.It not calculate the position (deg) to check condition in case structure becuase it not real time.
 
In my program i'm want twice the measurement in real time and generate the PWM to drive solenoid valve.
 
How i do
 
Best regard
zacha
 
Download All
0 Kudos
Message 15 of 15
(1,298 Views)