omur Posted March 19, 2019 Share Posted March 19, 2019 I need to send logic bus value to analog output by using Wavegen simultaneously. Wavegen1.Channel1.Custom.data= Logic1.Channels.Bus.data Link to comment Share on other sites More sharing options...
attila Posted March 20, 2019 Share Posted March 20, 2019 Hi @omur Link to comment Share on other sites More sharing options...
omur Posted March 22, 2019 Author Share Posted March 22, 2019 Mr. Atilla, Thanks for your reply. Can you check my script. I normalized my bus. It is ok but I cannot send this data to wavegen Wavegen1.Channel1.Mode.text = "Custom"; Scope1.Trigger.Trigger.text = "Repeated"; Scope1.run(); Logic1.run(); var datam = Logic1.Channels.Bus.data var data_norm = []; for(var idx = 0;idx < 2500; idx++){ data_norm[idx] = parseFloat(datam[idx])/4095; } print(data_norm)? plot1.X.data = idx plot1.Y1.data = data_norm Wavegen1.Channel1.Custom.Type.text = data_norm? Wavegen1.run(); Link to comment Share on other sites More sharing options...
attila Posted March 22, 2019 Share Posted March 22, 2019 Hi @omur // start capture and wait to be finished Logic1.single() Logic1.wait() // on AD by default the Logic Analyzer and Wavegen have the same 4064 buffer var datam = Logic1.Channels.Bus.data var data_norm = [] datam.forEach(function(v){data_norm.push(v/4095)}) plot1.Y1.data = data_norm Wavegen1.Channel1.Mode.text = "Custom" Wavegen1.Custom.set("mycustom", data_norm) Wavegen1.Channel1.Custom.Type.text = "mycustom" Wavegen1.run() Link to comment Share on other sites More sharing options...
omur Posted March 22, 2019 Author Share Posted March 22, 2019 It is okay. Thanks. Link to comment Share on other sites More sharing options...
omur Posted March 24, 2019 Author Share Posted March 24, 2019 Hi @attila I need to send bus data simultaneous and continuous to wavegen. Is it possible? This script does not run in a while(1) loop. I'm waiting for your suggestions. Link to comment Share on other sites More sharing options...
attila Posted March 25, 2019 Share Posted March 25, 2019 Hi @omur Such continuous digital input and analog output is not supported by the application. It could be done with the WaveForms SDK, see the samples /py/ DigitalIn_Record.py and AnalogOut_Play.py examples. Link to comment Share on other sites More sharing options...
Question
omur
I need to send logic bus value to analog output by using Wavegen simultaneously.
Wavegen1.Channel1.Custom.data= Logic1.Channels.Bus.data
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.