Anupama
I have made oscillators with hal
1) I use hal components to make the oscillators,
I think you make the oscillator with some language, so this may not
help you
2) I use values from a gui for on time aqnd off time of the rectangular
pulse
you use some stream from a file
3) I observe the pulses using HalScope. I simply connect HalScope to the
correct thread
( like time base on real scope) and the 'probe' to the signal I have created
My hal logic takes 3 data from the gui
a) OscEna
b) OnTime ( the gui values need translation because of differing data
types )
c) OffTime
The logic converts and scales the user values into number of microseconds
Then 2 cascaded oneshots create the pulse stream, each retriggers the
other, endlessly
The gui enable can inhibit the pulse stream by anding it to the 1st
oneshots trigger.
I can also read the on and off values from a file
The file is a list of settings for EDM pulse generator and the file is
identified by a number
so it can easily be handled by Hal ( no strings!)
The index into the file table identifies a unique on and off pair which
is read by a python wscript
and loaded into the hal one-shot parameters ( file read and setp )
You are doing similar so this may help
BEWARE:
the granularity of the on and off times is determined by the period of
your thread and your latency
you cannot get a pulse period ( on AND off ) less than 2 thread periods
and
you cannot insure that unless your latency is very good
it may be best to assume granularity of 2 thread periods!
tomp tjtr33
On 01/13/2016 12:19 PM, Anupama wrote:
>>
>>>
>>> Dear all,
>>>
>>> I am working towards developing a script for rectangular pulse generator (
>>> variable data cycle)which is a user defined real time component.I am having
>>> some conceptual doubts about the work flow in the Hal environment.
>>> 1) I have defined the logic inside a function named "signal_ logic". How do
>>> I use the " FUNCTION(_) " feature of Hal to identify my function?
>>> 2) By just using " FUNCTION(_)" in my script, is the function exported to
>>> Hal environment or should I use some other command to export?
>>> 3) Presently, I am passing all the calculated values of rectangular pulse
>>> to an array and sending it as a bit stream to output pin of data type"S32"
>>> but I am not able to see any values in output pin, when I give "show pin".
>>> 4) How should I follow the process/ steps of inserting the component into
>>> Hal and run it and see the rectangular pulse in GUI? Currently the script
>>> is logically correct but I am totally messed with running it in Hal GUI.
>>>
>>> Thanks in advance,
>>>
>>> Anupama
>>
>>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers