Continue with my program until the DAQ have one event (NI TB-2705)
Hello to all,
I am trying to do a program that contains multiple sub VI which I go calling sequentially within one loop.One of this sub VI is a DAQ subVI in which I read data of one NI TB-2705 Daq Card of my PXI system, In this subVI I want start the DAQ with the appropiate parameters, I think that I can be able to do it but I need besides continue with my program,that is continue with the loop which call the rest of my sub VI (the DAQ must to continue running too) until this data are out of one range, them I need stop the loop of my program and return to mi DAQ sub VI and storage the DATA. Is it possible???
If someone have some example about this subject or could help me.
Thanksfully
Gonzalo De Francisco
see here
Similar Messages
-
I have a PC running Windows XP (yes an antique) with CS3 Photoshop and InDesign and lightroom 2 (yes all antiques). I have acquired a PC running Windows 7 with no programs. I also have a MacBook pro with full CS5 suite. The programs were already loaded with I got it as a gift. Question 1. If I find serial numbers used to download programs to the old PC, can those CS3 programs be put on the newer PC. Question 2. I really want to put CS5 suite on PC machines. Is that possible? Especially since my MacBook is showing some hard drive problems.
You should be able to get the CS3 programs installed and running on the new pc since CS3 is spec-ed for Windows 7 Service Pack 1. Downloading the programs does not require a serial number. You can find them here: Download CS3 products but you will need the serial number to activate the programs. You might be able to find that thru your Adobe account online.
You will not be able to install the CS5 Mac version on a PC and you won't be able to trade it to a PC version either due to it being an older version. Trades are allowed only for the latest version (CS6) -
My iPhone will not restore the process starts and then a message pops up saying 'we are unable to continue with your activation at the time' I have tried a few times now and the same. What can I do ? As I can't use iPhone at all now!!
Sorry... But...
The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
You will need to look elsewhere.
Unauthorized modification of iOS
http://support.apple.com/kb/HT3743 -
I'm having difficulty syncing my iCal between my home computer and iPhone. New entries from my home are not syncing with the phone and vice-versa. I didn't have any problems with this before until the latest phone update. Any suggestions?
It could be that the existing wire in your appartment is not clean enough to provision DSL only. When combined with the phone possibly it has a higher line voltage and worked before. Now that the line is to be provisioned without phone service it may be giving them trouble that did not show before they came out and ran the new line test. So a new jack dedecated for your DSL line may require a new wire be run to your appartment. Also the account for internet only used to require direct billing to a credit card or something else. This was a number of years ago. Most accounts are linked to a phone number, and without a voice number it adds to the confusion.
If you are getting the voice and everything turned on as before, then I am at a loss for words. -
If you have any possible with in the itemrender have one is label control and onther one is datagrid
Hi Friends,
If you have any possible with in the itemrender have one is label control and onther one is data grid control.
In my application i was using list control.The list control have item renderer. In my case if i click list control of label name, the corresponding releated data of data grid need to display and list control label also.
<mx:List width="750" id="Lst_userlist" verticalScrollPolicy="off" horizontalScrollPolicy="off" rowCount="20"
labelField="sec_user_first_name+sec_user_last_name" labelFunction="BindUserName" buttonMode="true" itemClick="Click_UserList(event)" >
<mx:itemRenderer>
<fx:Component>
<mx:VBox horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<s:Label id="lbl_userhead" name="{data.sec_user_first_name+data.sec_user_last_name}" buttonMode="true" color="#000000"/>
<mx:DataGrid height="100%" id="membershipGrid" alternatingItemColors="[#DCDCDC,#F8F8FF]" paddingLeft="5" horizontalScrollPolicy="off" color="black"
horizontalGridLines="false" verticalScrollPolicy="auto" verticalGridLines="false" rowCount="{membershipArrColl.length}" rowHeight="25"
borderSkin="{null}" showHeaders="true" borderVisible="false" dataProvider="{membershipArrColl}" width="750" visible="false" includeInLayout="false">
<mx:columns>
<mx:DataGridColumn width="180" headerText="Name" minWidth="150" sortable="true" wordWrap="true" >
<mx:itemRenderer>
<fx:Component>
<mx:HBox horizontalScrollPolicy="off" >
<fx:Script>
<![CDATA[
override public function set data(value:Object):void{
super.data = value;
if(data.home_sec_organization_id==data.sec_organization_id)
fileimg.load("/ist_shared/ist_images/ist_icons/Modern/gif/16/hot/user _favorites_16_hot.gif");
else
fileimg.load("/ist_shared/ist_images/ist_icons/Modern/gif/16/dis/user _remove_16_dis.gif");
lbl_Gridcloumn_name.text=data.sec_user_first_name+" "+data.sec_user_last_name;
]]>
</fx:Script>
<mx:Image id="fileimg" buttonMode="true" toolTip="This is the User's Home Organization"/>
<s:Label id="lbl_Gridcloumn_name" width="200" buttonMode="true" textDecoration="underline" toolTip="User Menu [{data.sec_user_name}]" click="outerDocument.Click_Name(event);" />
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn width="120" minWidth="110" headerText="UserName" sortable="true" dataField="sec_user_name" />
<mx:DataGridColumn width="100" minWidth="80" headerText="OrgName" dataField="sec_org_name">
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:List>
Please Any One Help to me...
Thanks,
Magesh R.Hi Friend,
The list values are display Even if i click perticular data list value ,the corresponind data grid are display in blow line data list...
can u see below sample.
Blue colotr items are List values
Green Color items are Data Grid values... If click Blue color name then only correspond data grid items are display...
Canvass360 01
Canvass360 01
canvass360-01
HR Demo
System Wide Auth Admin UT
Canvass360 01
canvass360-01
HR Demo
System Wide DocStor Admin UT
Andrew Addison
Andrew Addison
AAddison
HR Demo
System Wide Auth Admin UT
Andrew Addison
AAddison
HR Demo
System Wide DocStor Admin UT
System Admin
System Admin
Admin
HR Demo
MyOrg Administrator UT
System Admin
Admin
HR Demo
Regional Manager UT
System Admin
Admin
HR Demo
Site Manager UT
System Admin
Admin
HR Demo
System Wide Auth Admin UT
System Admin
Admin
HR Demo
System Wide DocStor Admin UT
Ben Affleck
Ben Affleck
Ben
HR Demo
Site Manager UT
Jennifer Aniston
Jennifer Aniston
JenniferA
HR Demo
Site Manager UT
Christian Bale
Christian Bale
Christian Bale
HR Demo
Site Manager UT
Brad Burgess
Brad Burgess
BBurgess
HR Demo
System Wide DocStor Admin UT
Sean Connery
Sean Connery
SConnery
HR Demo
Site Manager UT
Harrison Ford
Harrison Ford
HFord
HR Demo
Regional Manager UT
Megan Fox
Megan Fox
MFox
HR Demo
Regional Manager UT
Chuck Gamble
Chuck Gamble
CGamble
HR Demo
MyOrg Administrator UT
Chuck Gamble
CGamble
HR Demo
Regional Manager UT
Chuck Gamble
CGamble
HR Demo
Site Manager UT
Chuck Gamble
CGamble
HR Demo
System Wide Auth Admin UT
Chuck Gamble
CGamble
HR Demo
System Wide DocStor Admin UT
Chuck Gamble
CGamble
HR Demo
OnBoarding UT
Please Any One Help to me.
Thanks,
Magesh R.
Amiee Mann
AMann
HR Demo
Regional Manager UT
Jennifer Smith
JenniferSmith
HR Demo
Site Manager UT
Reese Witherspoon
Reese
HR Demo
Site Manager UT -
If you have any possible with in the itemrender have one is label control and onther one is data gri
Hi Friends,
If you have any possible with in the itemrender have one is label control and onther one is data grid control.
In my application i was using list control.The list control have item renderer. In my case if i click list control of label name, the corresponding releated data of data grid need to display and list control label also.
<mx:List width="750" id="Lst_userlist" verticalScrollPolicy="off" horizontalScrollPolicy="off" rowCount="20"
labelField="sec_user_first_name+sec_user_last_name" labelFunction="BindUserName" buttonMode="true" itemClick="Click_UserList(event)" >
<mx:itemRenderer>
<fx:Component>
<mx:VBox horizontalScrollPolicy="off" verticalScrollPolicy="off" >
<s:Label id="lbl_userhead" name="{data.sec_user_first_name+data.sec_user_last_name}" buttonMode="true" color="#000000"/>
<mx:DataGrid height="100%" id="membershipGrid" alternatingItemColors="[#DCDCDC,#F8F8FF]" paddingLeft="5" horizontalScrollPolicy="off" color="black"
horizontalGridLines="false" verticalScrollPolicy="auto" verticalGridLines="false" rowCount="{membershipArrColl.length}" rowHeight="25"
borderSkin="{null}" showHeaders="true" borderVisible="false" dataProvider="{membershipArrColl}" width="750" visible="false" includeInLayout="false">
<mx:columns>
<mx:DataGridColumn width="180" headerText="Name" minWidth="150" sortable="true" wordWrap="true" >
<mx:itemRenderer>
<fx:Component>
<mx:HBox horizontalScrollPolicy="off" >
<fx:Script>
<![CDATA[
override public function set data(value:Object):void{
super.data = value;
if(data.home_sec_organization_id==data.sec_organization_id)
fileimg.load("/ist_shared/ist_images/ist_icons/Modern/gif/16/hot/user_favorites_16_hot.gi f");
else
fileimg.load("/ist_shared/ist_images/ist_icons/Modern/gif/16/dis/user_remove_16_dis.gif") ;
lbl_Gridcloumn_name.text=data.sec_user_first_name+" "+data.sec_user_last_name;
]]>
</fx:Script>
<mx:Image id="fileimg" buttonMode="true" toolTip="This is the User's Home Organization"/>
<s:Label id="lbl_Gridcloumn_name" width="200" buttonMode="true" textDecoration="underline" toolTip="User Menu [{data.sec_user_name}]" click="outerDocument.Click_Name(event);" />
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn width="120" minWidth="110" headerText="UserName" sortable="true" dataField="sec_user_name" />
<mx:DataGridColumn width="100" minWidth="80" headerText="OrgName" dataField="sec_org_name">
</mx:columns>
</mx:DataGrid>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:List>
Please Any One Help to me...
Thanks,
Magesh R.Hi Friend,
The list values are display Even if i click perticular data list value ,the corresponind data grid are display in blow line data list...
can u see below sample.
Blue colotr items are List values
Green Color items are Data Grid values... If click Blue color name then only correspond data grid items are display...
Canvass360 01
Canvass360 01
canvass360-01
HR Demo
System Wide Auth Admin UT
Canvass360 01
canvass360-01
HR Demo
System Wide DocStor Admin UT
Andrew Addison
Andrew Addison
AAddison
HR Demo
System Wide Auth Admin UT
Andrew Addison
AAddison
HR Demo
System Wide DocStor Admin UT
System Admin
System Admin
Admin
HR Demo
MyOrg Administrator UT
System Admin
Admin
HR Demo
Regional Manager UT
System Admin
Admin
HR Demo
Site Manager UT
System Admin
Admin
HR Demo
System Wide Auth Admin UT
System Admin
Admin
HR Demo
System Wide DocStor Admin UT
Ben Affleck
Ben Affleck
Ben
HR Demo
Site Manager UT
Jennifer Aniston
Jennifer Aniston
JenniferA
HR Demo
Site Manager UT
Christian Bale
Christian Bale
Christian Bale
HR Demo
Site Manager UT
Brad Burgess
Brad Burgess
BBurgess
HR Demo
System Wide DocStor Admin UT
Sean Connery
Sean Connery
SConnery
HR Demo
Site Manager UT
Harrison Ford
Harrison Ford
HFord
HR Demo
Regional Manager UT
Megan Fox
Megan Fox
MFox
HR Demo
Regional Manager UT
Chuck Gamble
Chuck Gamble
CGamble
HR Demo
MyOrg Administrator UT
Chuck Gamble
CGamble
HR Demo
Regional Manager UT
Chuck Gamble
CGamble
HR Demo
Site Manager UT
Chuck Gamble
CGamble
HR Demo
System Wide Auth Admin UT
Chuck Gamble
CGamble
HR Demo
System Wide DocStor Admin UT
Chuck Gamble
CGamble
HR Demo
OnBoarding UT
Please Any One Help to me.
Thanks,
Magesh R.
Amiee Mann
AMann
HR Demo
Regional Manager UT
Jennifer Smith
JenniferSmith
HR Demo
Site Manager UT
Reese Witherspoon
Reese
HR Demo
Site Manager UT -
On iPhoto I can see all the pictures for one event, but about 9 out of 106 I can't move to print or place it anywhere else?
Basics from the manual are restrt, reset, restore.
Have you tried each of these? -
Can I use one GBIP-Interface with two programs at the same time?
Hi, I have one PCI-GBIP-controller with multiple instruments installed. Now I want to use these instruments with two differents programs at the same time.
E.g.: program 1 uses GPIB0::1 and GPIB0::3
and program 2 uses GPIB0::4 and GPIB0::7
Is this possible??
When I have tried to do this, I always got timeout errors..
Thanx in advance.
PhilippHi,
You shouldn't have any problems accessing different devices from different programs using the same interface. I even used the two VIs to communicate with the same device. Although not the best approach, VISA didn't return any errors.
DiegoF. -
Whilst on holiday I downloaded pictures and video from my digital camera to my ipad. everything was fine. The digital pics and video footage played great! i have just got back and synced my ipad with my macbook and the video clips have been put onto the macbook but not reinstalled on the ipad. I get a message to say that the video clips have not been loaded as the ipad cant play them! Why has this happened? As i deleted the original clips off the camera once they were originally loaded onto the ipad i have no way of reinstalling them. Wat can i do to get them back onto the ipad?
ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"
-
If I have my damaged iPod Touch 16gb gen 5 (no back camera) replaced under the repair program, will the replacement 16gb have a camera?
No. Replacements are always the same as what is being replaced. No back camera now means no back camera after replacement.
-
How do I delete duplicates in my library as a group, rather than one by one?
Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning to backup your library before deduping.
(If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
tt2 -
Can someone please post a chart of what adapter works with the different devices? I have a MacBook air, I-pod, I-pad, and I-phone 4. I am getting my adapters mixed up.
Macbook: https://www.powerbookmedic.com/xcart1/images/D/macbook-air-adapter.gif
All iDevices until 2012 (excepting 3rd generation iPad) used the 30-pin connector: http://igyaan.in/wp-content/uploads/2012/01/idevice-30-pin-connector2.png
Newer iDevices: iPhone 5, iPad 4th generation, iPad Mini, and iPod touch 5th generation use the Lightning connector. If you do not have one of these devices, it does NOT use Lightning. http://www.macobserver.com/imgs/teaser_images/20120912lightning_connector_usb.jp g -
I have several buttons and events on the GUI of my app to monitor. Would it be better to use one Event Structure with several cases (10 or 15) or have a couple and split the cases evenly? None of the cases have much processing to handle, so there is not a time lag issue. I am just worried about overloading the structure. One of the tech support guys mentioned that the event structures are not that hard to get confused.
Has anyone had any problems with Event Structures?I use event structures very often in my code. I use them just to handle the interface and to run small code. I have had event structures that handled over 50 user interface events and never had a problem. In my personal opinion If there was any code to run I would let the event structure handle the the user interface event that fired a que in another while loop that handled the code.You can find examples on this, if not I will send you one. It is just good programming practice for beginners because it will alow you to build more robust VI's in the future.
Hope this helps
Joe
Joe.
"NOTHING IS EVER EASY" -
Event structure: have one event trigger another event
I have an event structure with two events. I want the finalization of the first event to trigger the second event. Both events are triggered by a boolean value change, say "boolean 1" and "boolean 2". Can I have a local variable of boolean 2 inside event 1. By changing its value, it should trigger event 2. However, this doesn't seem to be working. (see attached example)
any help?
Solved!
Go to Solution.
Attachments:
test.vi 9 KBTim's reply is the answer you are looking for.
I would like suggest that you create a sub-VI that doesw the work in the second event you want to fire so tht rather than resorting to having one event trigger another, you can simply use the sub-VI that does the work in event_2 after the sub-VI that does the work for event_1.
If you decide to stick one event triggering another, please clearly document the sceme in BOTH events. What you want to avoid is latter deciding event_1 should be triggered by Event_2 and the next thing you know, your app hangs.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
In form1 constructor:
fileDownloadRadar();backgroundWorker2.RunWorkerAsync();
First i'm downloading one image from another source using WebClient in form1:
private void fileDownloadRadar()
if (Client.IsBusy == true)
Client.CancelAsync();
else
Client.DownloadFileAsync(myUri, combinedTemp);
Then in the DoWork event:
private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
SatelliteImages.ExtractCountires();
this.BeginInvoke(new MethodInvoker(delegate
for (int i = 0; i < SatelliteImages.countriescodes.Count; i++)
comboBox1.Items.Add(SatelliteImages.countriescodes[i]);
for (int i = 0; i < SatelliteImages.countriesnames.Count; i++)
comboBox2.Items.Add(SatelliteImages.countriesnames[i]);
comboBox1.Text = "is";
comboBox2.Text = "Europe";
SatelliteImages.ExtractDateTime(comboBox1.Text, true, combinedsatelliteimagesdir);
This is the SatelliteImages class:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Web;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
namespace mws
public partial class SatelliteImages : Form
static WebClient client;
List<string> imagesUrls = new List<string>();
static string htmltoextract;
static string link;
static string text;
public static List<string> countriescodes = new List<string>();
public static List<string> countriesnames = new List<string>();
public SatelliteImages()
InitializeComponent();
public static void ExtractCountires()
htmltoextract = "http://sat24.com/en/?ir=true";//"http://sat24.com/en/";// + regions;
client = new WebClient();
client.DownloadFile(htmltoextract, @"c:\temp\sat24.html");
client.Dispose();
string tag1 = "<li><a href=\"/en/";
string tag2 = "</a></li>";
string s = System.IO.File.ReadAllText(@"c:\temp\sat24.html");
s = s.Substring(s.IndexOf(tag1));
s = s.Substring(0, s.LastIndexOf(tag2) + tag2.ToCharArray().Length);
s = s.Replace("\r", "").Replace("\n", "").Replace(" ", "");
string[] parts = s.Split(new string[] { tag1, tag2 }, StringSplitOptions.RemoveEmptyEntries);
string tag3 = "<li><ahref=\"/en/";
for (int i = 0; i < parts.Length; i++)
if (i == 17)
break;
string l = "";
if (parts[i].Contains(tag3))
l = parts[i].Replace(tag3, "");
string z1 = l.Substring(0, l.IndexOf('"'));
countriescodes.Add(z1);
string z2 = parts[i].Substring(parts[i].LastIndexOf('>') + 1);
countriesnames.Add(z2);
public static void ExtractDateTime(string selectedregion,bool infraredorvisual, string satimagesdir)
WebClient client1 = new WebClient();
string[] Urls = new string[9];
string input = File.ReadAllText(@"c:\temp\sat24.html");
string pattern1 = @"imageUrls = \[[^\]]*\]";
Regex ex1 = new Regex(pattern1, RegexOptions.Singleline);
string pattern2 = @"region=(?'region'[^&]*)&time=(?'time'\d{12})";
Match match1 = ex1.Match(input);
Regex ex2 = new Regex(pattern2, RegexOptions.Singleline);
MatchCollection matches2 = ex2.Matches(match1.Value);
IFormatProvider provider = CultureInfo.InvariantCulture;
List<DateTime> dateTime = new List<DateTime>();
foreach (Match match2 in matches2)
string region = match2.Groups["region"].Value;
DateTime dt = DateTime.ParseExact(match2.Groups["time"].Value, "yyyyMMddHHmm", provider);
switch (region)
case "eu":
dt.AddHours(1);
break;
case "is":
dt.AddHours(-1);
break;
dateTime.Add(dt);
for (int i = 0; i < dateTime.Count; i++)
string result = dateTime[i].ToString("yyyyMMddHHmm");
link = "http://www.sat24.com/image2.ashx?region=" + selectedregion + "&time=" + result + "&ir=" +
infraredorvisual ;
// why downloading so slow ? to check maybe to ask
// in forums.
string filePath = Path.Combine(satimagesdir, "SatImage" + i + ".GIF");
try
client1.DownloadFile(link, filePath);
catch (Exception e)
DannyGeneral.Logger.Write(e.ToString());
client1.Dispose();
private void SatelliteImages_Load(object sender, EventArgs e)
I guess the problem is in the SatelliteImages class where i'm downloading there first time the html file and then downloading 9 images.
I tried to start the backgroundworker2 inside the completed event in form1 of the WebClient.
But again it's all freezing untill it's completing downloading the images in the class SatelliteImages.
I thought put it in the backgroundworker2 dowork will not make it freeze.
Why the downloadings in the class SatelliteImages make it all freeze untill it finish the downloadings even if it's inside the backgroundworker2 dowork event ?Unless I have missed something, the only thing that is running on the background thread is:
SatelliteImages.ExtractCountires();
It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.
Maybe you are looking for
-
How to transfer a purchased app from Mac Book Pro to Ipad mini
I am trying to put a new app I purchased for my Mac Book Pro onto my Ipad Mini without having to buy it again. Thanks for any help
-
11g JPS-04028 error - Application with name "abc" does not exist
Hi, We are migration one our app from 10g OC4J to weblogic 11g server. This app is running fine in 10g OC4J but getting the below exception in 11g. Pls help us in resolving this in identifying and resolving the same. I found info here, but wasn't hel
-
Read multiple text files and sort them
I am trying to read multiple text files and store the data from the file in vector. but for days. I am with no luck. anyone can help me out with it? any idea of how to sort them will be appreciated. Below is part of the code I implemented. public cla
-
When I use Bridge to transfer a photo into Photoshop, the size is thumbnail. It is too tiny to edit into Photoshop. How to enlarge without blur?
-
I just got my iMac and I'm trying to download Netflix. It has said to download Silverlight but it won't let me save the file.