I am trying to get my vi to trigger, not sure where to add the trigger
I need a vi that can trigger using an analog rising edge (1V), then produces a square wave (any square wave will do for now), and then show the measurement of the waveform. Attached is the code that I have made so far. Not sure how to get a trigger attached, or where to place the trigger, onto what I have done so far. Another question is where to have it triggered from, do I need to add another generate waveform to produce the trigger signal?
Any help is appreciated!!
-ncm
Solved!
Go to Solution.
Attachments:
Generate and Read Waveform.vi 39 KB
Hi,
You can place a DAQmx start trigger VI in the code at the top, between the DAQmx Timing and DAQmx write VIs, and then set the trigger type to "Analog Edge" and specify the channel to trigger from (in this case I think you would use the APFI line on your card). Check out the 'Voltage - Continuous Output' Example' if you need help implementing this in code, that example covers analog output with different types of triggering in a setup similar to yours.
Matt Lee
National Instruments
Applications Engineer
Similar Messages
-
So now Im getting a new error report. I named the instance of the button in the properties panel btn_ccbil.
Here is the code I have now:
import flash.net.URLRequest;
var url:String = 'http://www.lexiefyfe.com/ccbill9001/index.htm';
btn_ccbil.addEventListener(MouseEvent.CLICK, onOrderClick);
function onOrderClick():void
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace('An error occurred');
Here is the error report:
Scene=photogallery, layer=buttons, frame=1, Line 7 A type identifier is expected after the ':'.
Scene=photogallery, layer=buttons, frame=1, Line 9 The class or interface 'flash.net.URLRequest' could not be loaded.
This is the original code for the billing from ccbill I am trying to get to work with flash:
<A HREF="http://www.lexiefyfe.com/ccbill9001/index.htm"><img src="ccbutton.jpg"></A>
Is this just something that flash can't do? If so will someone please let me know. I am running in circles at this point and very frustrated... I'm new to as3 but I thought it could work.
Thank you to all for the help and consideration,
ThomasYou appear to be using AS3 code in an AS2 setting. Go into your Publish Settings and change the actionscript version to AS3 in the Flash section.
Other matters...
You do not need to import the URLRequest class while coding in the Flash IDE.
You need to put an argument in the function definition due to the listeners throwing one when it is triggered...
function onOrderClick(evt:MouseEvent):void -
I am using action script 3. I have html codes from ccbill that I am trying to make work with flash. Here is the script I am trying to use:
import flash.net.URLRequest;
var url:String = 'http://www.lexiefyfe.com/ccbill9001/index.htm';
myButton.addEventListener(MouseEvent.CLICK, onOrderClick);
function onOrderClick():void
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace('An error occurred');
Here is the code from ccbill:
<A HREF="http://www.lexiefyfe.com/ccbill9001/index.htm"><img src="ccbutton.jpg"></A>
This is the error report I am getting:
Scene=photogallery, layer=buttons, frame=1, Line 1 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 3 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 5 Statement must appear within on handler
Scene=photogallery, layer=buttons, frame=1, Line 7 A type identifier is expected after the ':'.
Scene=photogallery, layer=buttons, frame=1, Line 9 The class or interface 'flash.net.URLRequest' could not be loaded.
Scene=photogallery, layer=buttons, frame=1, Line 7 Statement must appear within on handler
If anyone can help me with this issue I would be most grateful.
Thank you for any consideration,
ThomasYou have a mixture of things going on... AS3 code in an AS2 setting. Those are all AS2 error messages, and they are indicating you have placed the code on the buttons. To use that code, it must be placed on the timeline, and your Flash Publish Settings need to have AS3 specified instead of AS2. AS3 does not allow code to be placed on objects like AS2 does.
-
have been a Verizon customer since I got my first cell phone in my 30's - I am 50 now! A year ago, I stupidly opted to get a new phone on the EDGE program because I was trying my first Samsung device and was not sure I would like it having been an IPhone user for years.I was right! Or so I thought.... The Note 3 has been horrible. I am on my second phone(replaced it under warranty) and it still freezes, shuts off on its own, and will not come back on for long periods of time. Having had enough, I decided to EDGE Up to another device. On March 16th I tried to edge up my device online but was unable to. I immediately called to figure out what the problem was. Back in October I had a mix up in my billing where I had set up a payment. It was not done properly by customer service and as a result my line was cut off. I called the EXACT day it went off, filed a complaint about the lack of follow through for my arranged payment, and thought I had it straightened out as the payment was made that same day. That incident, although it was a Verizon error, caused my Edge Contract to be "hotlined". I spent an hour on the phone on March 16th clearing the whole mess up. When the conversation ended, the Verizon representative admitted it was a Verizon error, documented everything, and then told me she was filing a release for the hotline hold that would take a couple of days. Her name was Linda and I stupidly trusted what she said.
The days passed as I prepared to have a major foot surgery and to get my classroom straight before I would be out recovering for 3 weeks. All the time, my Samsung continued to glitch out like it has since I got it! While sitting on the couch recovering, I decided to deal with the phone issue again and EDGE UP. I figured 10 days latter, Linda would have taken care of the issue. Unfortunately, I faced the same problem and was told it was not eligible to edge up at this time. BACK on the phone again, 2 supervisors, 3 customer service reps. ( JOE from New York being the rudest customer service rep. I have EVER worked with) and 4 frustrating HOURS latter, Jason, the equally rude supervisor from Rochester, New York, informed me that Linda gave me BAD information, there was NOTHING he could do, and I am NOT eligible until April 14th!!!!! The WORST experience I have EVER had with a company. They were completely inept, rude, and not concerned about my time, my frustration, or the problems I was facing with their product in the LEAST. I have 4 LINES on Verizon that I am going to talk to Sprint about buying out. It was a horrible experience, and I can NOT believe I have no recourse or anyone to talk to....Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions. -
I'm not sure how or why this is happening and it has just started...I tried to update and then it would not allow me to open the file at all giving me a runtime error message and multiple windows (because of the help feature). It has been successfully reinstalled but I'm still getting the error message...what do I do?
Hello, MommaLloyd24.
Thank you for visiting Apple Support Communities.
Here are the steps I would recommend going through as they should resolve the issue.
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
Jason H. -
Photoshop Elements 3 dialog box with picture and patent numbers - not sure how to get it fixed. It's in an infinite loop - have rebooted to no avail. Should I update to a higher version after deleting this version?
Tried the resetting options, but can't even get to preferences - nothing
will open. May have to find my Version 3 CD, or delete Photoshop 3 and get
a higher version.
In a message dated 1/4/2015 11:35:36 P.M. Eastern Standard Time,
[email protected] writes:
Photoshop Elements diagog box is frozen and I can't get it to close. Do I
delete and up date to a high version? I've been getting along fine until
yesterday - not sure what happened
created by RKelly_ (https://forums.adobe.com/people/R_Kelly) in
Photoshop Elements - View the full discussion
(https://forums.adobe.com/message/7065312#7065312) -
When i go to unistall i get, this pack package can not be open.Verify
that the pack package exists and that u can acess it.Or contact the application
vendor, to verify that this is a valid windows installer patch package.I am using a new hp laptop that is running windows 7
-
mac book running slow I tried etresoft but not sure how to inturpret the results any help would be so awesome, thank you
Problem description:
Computer started running very slowly, when I type there is a delay and internet connection is very slow although it is not the wifi connection because it is running well on all other computers, phones, ect.
EtreCheck version: 2.1.8 (121)
Report generated March 28, 2015 12:02:27 PM HST
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
MacBook Pro (13-inch, Late 2011) (Technical Specifications)
MacBook Pro - model: MacBookPro8,1
1 2.4 GHz Intel Core i5 CPU: 2-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 640
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ℹ️
Mac OS X 10.7.5 (11G63) - Time since boot: 24 days 0:56:6
Disk Information: ℹ️
ST9500325ASG disk0 : (500.11 GB)
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 499.25 GB (422.45 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. FaceTime HD Camera (Built-in)
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple, Inc. MacBook Pro
Launch Agents: ℹ️
[running] com.Affinegy.InstaLANa.plist [Click for support]
[loaded] com.google.keystone.agent.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[unknown] com.Affinegy.InstaLANd.plist [Click for support]
[loaded] com.google.keystone.daemon.plist [Click for support]
[loaded] com.microsoft.office.licensing.helper.plist [Click for support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Click for support]
[failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
[running] com.spotify.webhelper.plist [Click for support]
User Login Items: ℹ️
iTunesHelper Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
GrowlHelperApp Application (/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app)
Belkin Router Monitor Application (/Applications/Belkin/Belkin Router Monitor.app)
AdobeResourceSynchronizer Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify Application (/Applications/Spotify.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.1
AdobePDFViewerNPAPI: Version: 10.1.3 [Click for support]
AdobePDFViewer: Version: 10.1.3 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
OfficeLiveBrowserPlugin: Version: 12.3.5 [Click for support]
SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
DirectorShockwave: Version: 12.1.3r153 - SDK 10.6 [Click for support]
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
3rd Party Preference Panes: ℹ️
Flash Player [Click for support]
Growl [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
22% iTunes
5% ReportCrash
2% WindowServer
1% Microsoft PowerPoint
1% Google Chrome
Top Processes by Memory: ℹ️
241 MB Google Chrome
137 MB Google Chrome Helper
107 MB Microsoft PowerPoint
103 MB Dropbox
94 MB mds
Virtual Memory Information: ℹ️
440 MB Free RAM
2.27 GB Active RAM
536 MB Inactive RAM
1.05 GB Wired RAM
8.03 GB Page-ins
908 MB Page-outs
Diagnostics Information: ℹ️
Mar 28, 2015, 12:01:57 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:45 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115845_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 12:02:18 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120218_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:01:57 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crashUpdate your Belkin router software along with Affinegy software.
-
why i'm not able to open pdf files? says i need adobe reader, but not sure where to get it.
Welcome to the Apple Support Communities
You can use Preview to open PDFs. Right-click a PDF file and go to Open with > Preview -
When I turn iPad on I get a box that says Not Enough Storage and neither the Closeor Settings buttons do anything. The iPad turns off on its own. It is full charged.
Try this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up -
I updated my computer to 10.10.1 and now my photoshop isn't in my applications folder anymore. Even when I try to export photos from Lightroom, PS isn't even an option anymore. Not sure where it went or how to get it back! Thanks!
Using 6-7 year old software that's no longer receiving updates & was never designed to run on 10.10 is asking for trouble. That said, try re-installing PS and installing Java SE6
Java for OS X 2014-001
It might work. But again it might not.
Good luck!
Nancy O. -
i have been getting this message " no sim installed " too many times then my phone goes off , its iphone 4S , its really a problem i cant get calls or anything and im not sure how to take the SIM out then insert it again , what to do ??
Use the sim tool that came with your phone or a safety pin and just insert it into the hole at the side of the sim tray and push it in and then pull it out. It is no more difficult than that and then just close it again.
-
I cant sync my ipad because I get a message that says 'not enough free space' but the more I delete, the less space I have. Does anyone else have this issue?
http://support.apple.com/kb/TS1503
http://www.apple.com/support/ipad/syncing/ -
Hi everyone
Not sure if this is the right forum to ask this question, however any redirect is appreciated. Where can I get the download for the latest old mozilla browser. The one with the dinosaur icon before the browser turned firefox. Thanks, JenPhoenix and Firebird were what Firefox was called before Firefox was settled on in 2004, and both used "birds" as the logo. IIRC, the dinosaur was used in the Mozilla Suite.
Here are the earliest versions of the Mozilla Suite. <br />
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/
I hope this request for a historical purposes of where Mozilla came from, because those old versions aren't safe to use on the internet any longer. -
i updated the version to my i phone 4 and deleted my photos and contacts...is there a way to get them back...i am not sure i backed up the data
Contacts are synced with a compatible programme on your computer (Outlook, Windows Contacts, Address book etc) or with a cloud service (iCLoud, Google, Yahoo). Sync your contacts back from wherever you were making the backup of them. If you have not been backing them anywhere, then they are most likely gone.
If you updated the iOS through iTunes and assuming that your photos were present at the time of update and you deleted the photos afterwards; you may try restoring the iPhone from the last backup, provided that you had not synced your iPhone after deleting the photos.
How to restore from a backup:
http://support.apple.com/kb/ht1766
Maybe you are looking for
-
hi i'm trying to install updates but Name and then the password I have for the account won't let me in. Is my name my email address?
-
Quicktime plays video in slow motion
Quicktime plays my video from a Sony NEX-3 camera [H.264 MP4 files] in slow motion. The images plays at a reduced speed, while the sound plays at full speed. One consequence is that image and sound is completely out of sync. The video plays fine in i
-
Is it possible to have a linked button (drill down) in a gird object?
-
IP Addressing and Network Preferences Question
I am conneted to the internet via Verizon DSL with an IP address of 69.160.xx.xx. This is connected to a Linksys 4-Port WRTG Wireless router which has the IP address of 192.168.1.1. Thus when setup the IP address in Network Preferences and Server Adm
-
This randomly happens and i can not tell exactly what i do or why. All i know is that every time you visit a page,site, picture etc... the back button remembers every page you have just been too in that session. However some times the back button goe