Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
university:tools:m2k:scopy:pattgen [16 May 2018 14:16] Adrian Suciuuniversity:tools:m2k:scopy:pattgen [10 Mar 2021 08:15] – Add missing new lines Guramulta Daniel
Line 3: Line 3:
 ===== General Description ===== ===== General Description =====
  
-{{ :university:tools:m2k:scopy:scopy_2018-05-10_17-26-53.png |}}+{{ :university:tools:m2k:scopy:pattern_generator_new_1.png |}} 
 The pattern generator instrument can be used to generate output from the M2K with user configurable parameters.  It consists of 3 parts: The pattern generator instrument can be used to generate output from the M2K with user configurable parameters.  It consists of 3 parts:
-  *Channel manager+  *Channel handles
   *Signals Plot   *Signals Plot
   *Control Panel   *Control Panel
  
-{{ :university:tools:m2k:scopy:pg_2.png |{{ :university:tools:m2k:scopy:pg_3.png?300 |}}+{{ :university:tools:m2k:scopy:pg_2.png |}}
 The buttons on top of the pattern generator are: The buttons on top of the pattern generator are:
   * The Run button starts the pattern generation.   * The Run button starts the pattern generation.
Line 15: Line 16:
   * The gearwheel button activates the general settings menu in the control panel.   * The gearwheel button activates the general settings menu in the control panel.
   * The sliders button activates the pattern settings menu in the control panel.   * The sliders button activates the pattern settings menu in the control panel.
-{{ :university:tools:m2k:scopy:pg_3.png |}} 
 The plot shows a preview of the generated signals by the pattern generator. For the enabled channels, the generated waveform is shown. For channel groups (groups of one or more channels) a “decoder” is displayed and has the purpose to graphically represent the binary value of the channel group.  The plot shows a preview of the generated signals by the pattern generator. For the enabled channels, the generated waveform is shown. For channel groups (groups of one or more channels) a “decoder” is displayed and has the purpose to graphically represent the binary value of the channel group. 
-{{ :university:tools:m2k:scopy:pg_4.png |}} +The channel enumerator panel lists all available channels on the device, and allows the user to enable them. 
-The channel manager panel lists all available channels on the device, and allows the user to create custom channel configurations+{{ :university:tools:m2k:scopy:pattern_generator_new_2.png |}}
    
-The user can enable channels by clicking the {{:university:tools:m2k:scopy:pg_5.png|}}  button, setting the channel as an output.  +The user can enable channels by clicking the blue checkbox  button, setting the channel as an output.  
-The channel name is shown in the second column of the channel manager. This name can be changed from the control panel +By double clicking the channel the channel settings for it will be shown 
-The channel number is in the third column. This is the actual DIO number of the device. +{{ :university:tools:m2k:scopy:pattern_generator_new_3.png |}} 
-The select button is used to merge multiple channels together into a channel group.  +In the channel settings the name, trace height are displayed. If the channel is part of a group, then the channels in the group are shown and can be removed by clicking the red X button or changed in order using the drag widget
-Channel groups are used to generate more complex patterns that span over multiple channels.  +The pattern for this channelchannel group can be changed and the corresponding pattern settings are displayed
- +To group set of channel the same mechanism as in the Logic Analyzer is usedClick the group button (it becomes "done") select all the channels you want to have in a group, then click the done button.
-In order to create a channel group, select multiple channels and click the {{:university:tools:m2k:scopy:pg_6.png|}}  button. +
-  +
-{{:university:tools:m2k:scopy:pg_7.png|}} +
-The {{:university:tools:m2k:scopy:pg_8.png|}} buttons can be used to remove a channel from the channel group or to dissolve the channel group (if the button next to the channel group is clicked). The channel group can also be dissolved if the user selects the channel group and clicks the {{:university:tools:m2k:scopy:pg_9.png|}} button. Channel groups can be merged with other channels or channel groups by applying the same procedure as before, select channels and channel groups and group them. +
-An alternative to the select/group mechanism is to drag and drop elements in the channel manager like this: +
- {{ :university:tools:m2k:scopy:pg_10.png |}} +
-An advantage dragging and dropping elements over using select/group mechanism is that it allows the user to reorder the elements in an intuitive way. +
- +
-The {{:university:tools:m2k:scopy:pg_11.png|}}  button hides elements that are not enabled, showing only the enabled elements in the channel manager and plot.  +
- {{ :university:tools:m2k:scopy:pg_12.png |}} +
-Whenever an element in the channel manager is clicked, it becomes highlighted. The highlighted element has darker tint in the channel manager and the associated waveform in the plot is enclosed within two vertical white linesThe highlighted element indicates that settings in the control panel apply to this element. +
- +
-{{ :university:tools:m2k:scopy:scopy_2018-05-10_17-33-20.png?200|}} +
-The control panel allows the user to set the parameters of the waveform to be generated. +
-The {{:university:tools:m2k:scopy:pg_13.png|}} buttons allow navigation through the channel manager. +
-The Pattern combobox allows the user to select one of the currently implemented patterns.\\+
 The currently implemented patterns are: The currently implemented patterns are:
   *Clock – generates a clock signal having user selectable frequency, phase and duty cycle.   *Clock – generates a clock signal having user selectable frequency, phase and duty cycle.
Line 53: Line 37:
   *Import - imports a CSV file and outputs it's content   *Import - imports a CSV file and outputs it's content
  
-The output combobox allows output drive selection between +{{ :university:tools:m2k:scopy:pattern_generator_new_8.png |}} 
-  * PP - pushpull +{{ :university:tools:m2k:scopy:pattern_generator_new_9.png |}}
-  * OD - opendrain +
-The Name editbox changes the name of the channel/channelgroup. +
-The thickness editbox changes the size of the channel/channelgroup in the plot +
-The colors editboxes change the colors of the channel/channelgroup in the plot+
  
 \\ \\
Line 67: Line 47:
  
 ==== Enable & run one channel ==== ==== Enable & run one channel ====
-<hidden>1. Enable channel 0 - by default channel 0 will generate a 5khz clock signal+<hidden>1. Enable channel 0 - select it and enable the clock pattern
 \\ \\
-{{:university:tools:m2k:scopy:pg-uc:image4.png}}+{{ :university:tools:m2k:scopy:pattern_generator_new_4.png |}} 
 \\ \\
 2. Start pattern generator  2. Start pattern generator 
Line 81: Line 62:
 5. Modify parameters - set frequency to 1MHz, 70% duty cycle 5. Modify parameters - set frequency to 1MHz, 70% duty cycle
  
-{{:university:tools:m2k:scopy:pg-uc:image8.png|}}+{{ :university:tools:m2k:scopy:pattern_generator_new_5.png |}} 
 \\ \\
 6. Run pattern generator 6. Run pattern generator
Line 89: Line 71:
 ==== Create a 4 channel binary counter ==== ==== Create a 4 channel binary counter ====
 <hidden> <hidden>
-3.1 Select multiple channels  +3.1 Select multiple channels (Selecting a channel is done by double clicking the handle of the channel on the left side of the plot). 
-Select multiple channels by clicking the empty rectangle next to the channels+Enable multiple channels from the channel enumerator
  
-{{:university:tools:m2k:scopy:pg-uc:image10.png|}} +3.2 Create group  
-  +Group this 4 channels together
-3.2 Create group +
-Click the “group with selected” button+
  
-{{:university:tools:m2k:scopy:pg-uc:image11.png|}}+3.3 Select Binary Counter pattern
  
 +3.4 The plot should resemble a binary counter
  
-3.3 Make sure channel group is enabled  +{{ :university:tools:m2k:scopy:pattern_generator_new_6.png |}}
-It should look something like this. If it’s not enabled, enable it by clicking the left enable button.+
  
-{{:university:tools:m2k:scopy:pg-uc:image12.png|}} 
- 
-3.4 Select Binary Counter pattern 
-From the right menu, select 
- 
-{{:university:tools:m2k:scopy:pg-uc:image13.png|}} 
    
-3.5 The plot should resemble a binary counter+3.5 Start pattern generation
  
-{{:university:tools:m2k:scopy:pg-uc:image14.png|}} +3.6 Using the scope verify channels 0 and 1
-  +
-3.6 Start pattern generation +
-3.7 Using the scope verify channels 0 and 1+
  
 {{:university:tools:m2k:scopy:pg-uc:2017-06-12_14_43_46-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} {{:university:tools:m2k:scopy:pg-uc:2017-06-12_14_43_46-ubuntu_running_-_oracle_vm_virtualbox_1.png|}}
Line 121: Line 92:
 3.8 Using the Scopy's logic analyzer (or an external tool) verify channels 0,1,2,3 3.8 Using the Scopy's logic analyzer (or an external tool) verify channels 0,1,2,3
  
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_14_53_31-ubuntu_running_-_oracle_vm_virtualbox_1.png|}}+{{ :university:tools:m2k:scopy:pattern_generator_new_7.png |}}
  </hidden>  </hidden>
- 
-==== Channel group shuffling ==== 
-<hidden> 
-4.1 Make sure the state of the instrument is the one at step (1 channelgroup with channels 0,1,2,3, binary counter, 5kHz, stopped) [[https://wiki.analog.com/university/tools/m2k/scopy-patterngenerator?&#create_a_4_channel_binary_counter|Create a 4 channel binary counter]] 
- 
-4.2 Drag and drop Channel 6 in between channels 1 and 2 inside the channel group like in gif  
- 
-{{:university:tools:m2k:scopy:pg-uc:pg-1.gif|}} 
- 
-4.3 Drag and drop channel 3 from the channel group inbetween channels 0 and 1 like in gif “pg-2.gif” 
- 
-{{:university:tools:m2k:scopy:pg-uc:pg-2.gif|}} 
- 
-4.4 The instrument should look like this 
- 
-{{:university:tools:m2k:scopy:pg-uc:image17.png?500|}} 
-  
-4.5 Select the channel group and channels 4 and 5 and click group with selected 
- 
-{{:university:tools:m2k:scopy:pg-uc:image18.png?500|}} 
-  
-4.6 Using the logic analyzer verify channels 0-6 
- 
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_15_17_46-ubuntu_running_-_oracle_vm_virtualbox_2.png|}} 
- 
-</hidden> 
- 
-==== Using drag and drop to create channel groups ==== 
-<hidden> 
-1. Drag and drop channel 12 onto channel 9 like in gif “pg-3”.  
-You should let go of the mouse button when the blue highlight shows up. 
-{{:university:tools:m2k:scopy:pg_3.png}} 
- 
-2. Select the newly created channel groups with channel 10 and 11 and group them (like in the previous steps) 
- 
-3. Enable the channel group 
- 
-4. Select channel group by clicking on it in the channel manager 
- 
-5. Select random pattern in the settings 
- 
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_16_43_01-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
- 
-6. Start pattern generation 
- 
-7. Using logic analyzer verify lines 9,10,11,12.  
-They pattern generated should be the same as in Scopy 
- 
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_16_43_23-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
-</hidden> 
- 
-==== Hide inactive & colors & other UI ==== 
- 
-<hidden> 
-1. Select a channel group by clicking it in the channel manager. Set name in the channel group settings to  "BinCntGrp" 
- 
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_16_52_38-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
- 
-2. Select a channel inside the channel manager. Change name to “DIOZERO” in the channel settings. 
- 
-3. Select LOW color as white, select HIGH color as orange from channel settings. 
- 
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_16_52_54-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
- 
-4. Select “Hide Inactive” 
-Scopy should look similar to this: 
- 
-{{:university:tools:m2k:scopy:pg-uc:image21.png|}} 
- 
-5. Start pattern generation 
-The signals should be generated the same way even though the inactive channels are missing. 
- 
-6. Show all 
-Show all channels. Signals are generated in the same fashion 
- 
- 
-</hidden> 
  
 ==== Change settings while running ==== ==== Change settings while running ====
Line 230: Line 124:
 The UART decoder should pop up over channel 15 The UART decoder should pop up over channel 15
  
-{{:university:tools:m2k:scopy:pg-uc:2017-06-12_18_24_32-ubuntu_running_-_oracle_vm_virtualbox_1.png|}}+{{ :university:tools:m2k:scopy:pattern_generator_new_8.png |}}
    
 4. Monitor the channel in the logic analyzer. Use UART decoder. Alternatively use a serial terminal connected to the channel. 4. Monitor the channel in the logic analyzer. Use UART decoder. Alternatively use a serial terminal connected to the channel.
- 
-{{:university:tools:m2k:scopy:2017-06-12_18_26_40-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
    
  
 5. Create a 3-channel group and select SPI pattern. Set SPI parameters at will, but make sure you send some data. 5. Create a 3-channel group and select SPI pattern. Set SPI parameters at will, but make sure you send some data.
- 
-{{:university:tools:m2k:2017-06-12_18_28_54-ubuntu_running_-_oracle_vm_virtualbox_1.png|}} 
  
 6. Monitor the channels and use a SPI decoder 6. Monitor the channels and use a SPI decoder
Line 245: Line 135:
 7. The channels should resemble the SPI pattern. 7. The channels should resemble the SPI pattern.
  
-{{:university:tools:m2k:2017-06-12_18_30_01-ubuntu_running_-_oracle_vm_virtualbox_1.png|}}+{{ :university:tools:m2k:scopy:pattern_generator_new_9.png |}}
  
 </hidden> </hidden>
  
 **Return to [[university:tools:m2k:scopy|Scopy Main Page]]** **Return to [[university:tools:m2k:scopy|Scopy Main Page]]**
university/tools/m2k/scopy/pattgen.txt · Last modified: 07 Apr 2021 22:14 by Brandon Bushey