Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

PWM Display and Output to DAQ

Hi All,
 
I am a newbie to LabVIEW and I don't know much about it. Anyways I am trying to generate a PWM signal in order to control a motor, subsequently, I have downloaded the examples of PWM on https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1P0CAI&l=en-US. So how can I display the PWM signal on a chart ? (I am getting some weird conversion error when I directly connect it to DAQmx Start Task.vi or DAQmx Is Task Done.vi). What kind of conversion do I have to do ?
 
Moreover, I want to pass this PWM signal via DAQ to the motor, how can I do this ? (I am using 6025 DAQ.). A Vi showing the connections will be highly appreciated.
 
Cheers
Dan916
0 Kudos
Message 1 of 3
(7,186 Views)
Hi Dan916,
 
The PWM signal that you are generating is being created in the hardware so in order to display it on a graph you would need to measure that signal through an input. You could use an example from the Example Finder in order to read it back in. The use the Example FInder go to Help>>Find Examples from LabVIEW.
 
As far as connecting your signal to your motor, you are going to need to connect the signal from your counter output. The pinout you are looking for can be found on the last page of the linked specifications manual. You would be looking to use Ctr 0 Out or Ctr 1 Out depending on the counter you are using in your application.
 
Steve B

0 Kudos
Message 2 of 3
(7,156 Views)
Thanks Steve.
0 Kudos
Message 3 of 3
(7,134 Views)