Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

generating 6 sine weighted PWM Generation through NI 9474 card using cDAQ-9178

we are generating  6 sineweighted PWM for 3phase, PWM frequency 2.5KHz, there are main 3 waveforms and other 3 are complement of each other, we want all these waveform in synchronisation, with resulation of 1 microsecond, but i have only 4 in built counter in cDAQ 9178, so i have used some other logic for generating these w/f , I have first generated all these wave form in software and then out that data on cDAQ, but in this method i am facing one problem of not enough memory to complete this operation because i am generating the arrey of 1 lac element for each w/f. so how to optimization memory performance.
0 Kudos
Message 1 of 5
(4,779 Views)

Hello,

 

In case the wave that you are trying to generate is periodic, then write a single period at a time.

 

Regards

Akshat

0 Kudos
Message 2 of 5
(4,767 Views)

Hi Akshat

 

Thx for rep.

 

ya I know that the w/f is periodic, all these point refers to single cycle only and it contains 1 lack points for 1 cycle then i dont have to generate another cycle, just i have to contineously write data to port. but in some case when cycle contains more than 1 lac points, it gives me error "not enough memory to complete this operation". I wan to optimize memory performance, but i dont know how to achive this. I am storing all these points in array and also performing some operations on this data so labview allocating new buffers when performing operations on this data. you have any solution for this

0 Kudos
Message 3 of 5
(4,758 Views)

Hello,

 

Please share the error code that is popping up.

 

Regards

Akshat

0 Kudos
Message 4 of 5
(4,703 Views)

Dear Sir,

             Could you kindly share the code so that we can assit you in your application.

Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 5 of 5
(4,671 Views)