ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate AMI line coding

how can i generate an ami signal in labview? i am a newbie in labview. any advice would be helpful. 

0 Kudos
Message 1 of 4
(4,082 Views)

Hi hoong,

 

I guess you talk about Alternate Mark Inversion signals…

 

mark := 1
FOR each bit in waveform
  IF bit == 0 THEN
    output := 0
  ELSE
    output := mark
    mark := -1*mark
  ENDIF
NEXT

 So you need a FOR loop with a shift register for your "mark" and a case structure. Everything else is autoindexing your input/output array…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(4,061 Views)

is there any other way to generate this signal. like using block in labview. because i am not familiar with programming codes.

0 Kudos
Message 3 of 4
(4,011 Views)
It's a pretty simple code to write. You should take any of the numerous free tutorials.

That being said, one of the examples that used to come with LabVIEW was a simulated T1 test that had an AMI subVI. I don't know if it's still included. It was a database example If I recall correctly.
0 Kudos
Message 4 of 4
(4,007 Views)