Ryne Horn

Members
  • Content Count

    9
  • Joined

  • Last visited

About Ryne Horn

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I recently wrote a program that runs on the AD2 to close the loop on a system I am controlling. My problem now is that I will have a person unfamiliar with coding using this. I was wondering if there were options for creating a simple GUI to control inputs into my script. Like polling from a slidebar the frequency of a sine wave, I use in the script or test windows. I am particularly looking at the StaticIO but it seems to be limited to only the digital I/O pins. If it is not available thru Waveforms Beta will the SDK be able to do something like this? Are there any previous posts (i could not find any) or examples you might have on this? Thanks, Ryne
  2. Looks like I nearly have it working but when I use this "Send" command it does not append the ending (i.e. Carriage Return). How do I go about adding this to each command I "Send"? EDIT: I found it. TO either include or not include the ending you need to put Protocol.UART.Send("Hello", true) or Protocol.UART.Send("Hello", false), respectively.
  3. Hello, So I am trying to write a script that will be taking advantage of both output and both inputs to the AD2 as well as take select information and send it out to two (for now) serial lines. I have written a script to control everything I need minus the actual setup of the UART settings, sending the data over the Tx line and receiving over the Rx line. Are there any examples of how to send the data over script as opposed to using the built-in GUI of Waveforms? Thanks, Ryne
  4. Hello again! I'm trying to use the AD2 to act as both a signal source (wavegen1) and a measurement (scope1) device for the purpose of tracking conduction delay of the signal. Currently, I simply have the wavegen1 connected directly to scope1 with 3 cycles of a sine wave being put out. I am aware of the measure command to find the maximum on my scope1 but I was wondering if there was a way to find N (3 in my case) maximums AND find the corresponding times with respect to the timing of wavegen1? I plan to assume the timing of the wavegen1 is relatively accurate to my input frequency and can find the theoretical maximum thus having the initial time from which to subtract from my scope1 maximum times. Code thus far function doPing(){ print("Amplitude and Time Delay Recorded"); // User Inputs var Freq = 5e3; var Amp = 1.0; var N = 3; // WaveGen Settinngs Wavegen1.Synchronization.text = "Synchronized"; Wavegen1.States.Trigger.text = "None"; Wavegen1.States.Wait.value = 0; Wavegen1.States.Run.value = N/Freq; Wavegen1.States.Repeat.value = 1; Wavegen1.Channel1.Mode.text = "Simple"; Wavegen1.Channel1.Simple.Offset.value = 0.0; Wavegen1.Channel1.Simple.Amplitude.value = Amp; Wavegen1.Channel1.Simple.Frequency.value = Freq; // Scope Settings Scope1.Trigger.Trigger.text = "Repeated"; Scope1.Trigger.Type.text = "Auto"; Scope1.Trigger.Source.text = "Wavegen 1"; Scope1.Trigger.Condition.Text = "Rising"; Scope1.Trigger.Level.value = Amp/2; // Start instruments Scope1.run(); wait(0.1); Wavegen1.run(); // Measure var maximum = Scope1.Channel1.measure("Maximum"); print(N+" Max: "+maximum+" V"); //Want to do for 1:N and get time and amplitude with relation to time zero being the zero of the wavegen //Close out instruments Scope1.stop(); Wavegen1.stop(); } if(!('Wavegen1' in this) || !('Scope1' in this)) { throw("Please open a Scope and a Wavegen instrument"); } doPing();
  5. Thank you, both for your answers. I will start developing!
  6. Hi @JColvin and @attila, I actually have stumbled across these post in my search. If I were to rephrase my question, I am looking more for how do I either swap between devices or tether the devices together so that I can control all of them from a single script within Waveform 2015. I have very limited knowledge of the functions available to me within that program and there seems to be only a small list of commands available on the internet from what I have found. It may very well be that I need to move this project outside of waveform to accomplish the task. I am needing these devices to run as close to simultaneous as possible to work for what I am wanting it to work for. It would also be great if this was compatible with Matlab. There was a post a while back about creating this compatibility but it seems no other news has come back after that. Thanks, Ryne
  7. Hey Everyone! I've been playing around with the AD2 for the past week or two and I'll have to say, I'm impressed at the bang for the buck here. However, in its current state, it seems to be a tool for hobbyists and tinkerers (which is great!), but can be lacking for creating a really sophisticated control system. I was wondering if it is possible to scale up the number of ADC (specifically) by making use of the trigger I/O pins in a daisy chain fashion to create maybe a 10 ADC channel system (5xAD2). I'm not sure it is available (or I just did not Google hard enough) but it would be great if Waveforms 2015 could interface multiple AD2 in a single script. This would allow a syncing up to the 5 AD2s allowing all data collected from each AD2 to be used in the script to adjust certain aspects of each AD2s outputs. Is this possible, within Waveforms 2015 or would I need to move to a custom piece of UI to handle this? If it is the latter are there any good resources? I'd rather not invest the time to start from scratch...