LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED Indicator

I'm using LabWindows/CVI and put a LED to act as an indicator. 
 
I am generating a discrete pulse and I want the indicator to turn on when it is outputing my waveform.  I have a "Generate" button to initiate the pulse.
 
I put the indicator lines in the Callback function for the Generate button.  It goes something like this:
 
if(event == EVENT_COMMIT)
{
SetCtrlVal
 
 
}
 
 
 
0 Kudos
Message 1 of 4
(3,014 Views)
I'm using LabWindows/CVI and put a LED to act as an indicator. 
 
I am generating a discrete pulse and I want the indicator to turn on when it is outputing my waveform.  I have a "Generate" button to initiate the pulse.
 
I put the indicator lines in the Callback function for the Generate button.  It goes something like this:
 
if(event == EVENT_COMMIT)
{
  SetCtrlVal(panel, AO_PANEL_LED_2, 1);
  for(i=0; i<300, i++) //updating 300
   AO_VWrite(1,1,waveir[i]);
 
 
 
 
}
0 Kudos
Message 2 of 4
(3,005 Views)
I'm using LabWindows/CVI and put a LED to act as an indicator. 
 
I am generating a discrete pulse and I want the indicator to turn on when it is outputing my waveform.  I have a "Generate" button to initiate the pulse.
 
I put the indicator lines in the Callback function for the Generate button.  It goes something like this:
 
if(event == EVENT_COMMIT)
{
  SetCtrlVal(panel, AO_PANEL_LED_2, 1);
  for(i=0; i<300, i++) //updating 300
   AO_VWrite(1,1,waveir[i]);
 
 
 
 
}
0 Kudos
Message 3 of 4
(3,006 Views)
You will want to repost your query under LabWindows/CVI section of the forums. 
 
-Khalid
0 Kudos
Message 4 of 4
(3,003 Views)