Trigger digital beginning for simultaneous tasks of HAVE and AO
I am trying to create a Subvi to simultaneously measure 5 signals of HAVE and an AO output signal. The AO signal feeds a diet that feeds in turn my sample. It HAVE the applied voltage, current temperature measurement (via a shunt resistance), via a V 1-5 of a pyrometer optical signal and two other sensor input voltages. During the test, I would also like to vary the applied voltage, so I set up a ripple of tension values. To make things pretty simple I execute the tasks of HAVE it and AO at the same pace, and I want the two tasks to start at the same time. To reach the start of the trigger, I wired an additional set of contacts on the power relay to line 0 on a DIO 9401 resident module in slot 5 9172 chassis (access to the PFIO signal).
Attachment is the base Subvi, I came with to do so. I think it is the task of the AI seems to trigger correctly, but the AO seems to start as much as 100 msec before the start of the task to HAVE it (sometimes it is dead on, but other times not).
Will I put in place these tasks to start at the same time, or is my approach to programming off?
Here's my hardware configuration
1. If you want to start both tasks at the same time and run synchronously, you don't need two digital triggers start. Take a look at the example of Multi-Func-Synch AI - AO.vi in the Finder of the example.
2. Design your architecture using the State machinery rather than using the Structures of the sequence. Take a look at a model of State machine in the file-> New...
Tags: NI Software
Similar Questions
-
Flow for the PS to HAVE and return
Hello
I make pictures showing signs of signlanguage.
I have everything first to record a video of the sign in Premiere Pro, then get one or several images of PP
Save as jpg
Open in PhotoShop
Make some adjustments
.. .and then: I need to get one or several good arrows showing the direction of hands on this sign.
For this, it seems that Illustrator is better than the PS, but what is the best medium I terms of formats etc. to do export / import in the good sense?
I need to keep the size of the original image.
I found no instructions on this, but it might be there somewere...
Thanks in advance,
Håkan
I almost forgot, another reason to cut first in the workflow is that you can import your video images directly into Photoshop and save a whole step. Go to file - import - images to layers. Select the layers you want to retain and export save as PSD files for work in Illustrator.
-
I was told it was Eric microsoft or hp that's why I got the message from crypt32.dll who blacked out everything on my computer.so what I do now?
Hello
(1) what is the exact full error message?
(2) at what stage of installation do you feel the issue?
I suggest you to run the Windows 7 Upgrade Advisor, if you have not yet tried.
http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor
You can also see the following article which explains the upgrade from Windows Vista to Windows 7.
http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7
-
I have created a new digital signature for my boss
Hi all
I have created a new digital signature for my boss and then I went through the process and create a password and repeated and then I clicked on finish but then when I try to sign a document, it says that my password is incorrect which I know it is good.
Any help please.
Kirk
Hi kirka75318474,
Please perform the steps given in this link: Re: I don't know any password for the digital signature or the different menu options to remove the same. I need a new digital signature file, or the possibility of placing my signature on a document, as I did years.
Let us know if you face any problem.
Thank you!
Shivam
-
With the help of digital input for Boolean control?
Hello!
I have spent a lot of time to search but have not found a solution to this...
I have LV 2015 with chassis NI 9188 and module NI 9425 DI. Try to use the input signal to assign a State structure machine program and/or events in real time. It would be acceptable to have an indicator show the status of the input line, since I can use it elsewhere with Value (Signaling).
Please do not ask for the code - the problem is quite simple. I just want to use the digital inputs to program control as a T/F. I want just the program to analyze the State of the input and decisions - a bit like a PLC.
All I seem to be able to extract is data of digital waveforms with a task DAQmx.
It's not a trigger - I already use a trigger to start the analog acquisition.
Formulate the problem in a simpler way... What to do if you had a digital input module and you wanted to see the status of each input line in the form of a LED on your face in real time. How would you do it?
I really appreciate the help!
greyhorn23 wrote:
Formulate the problem in a simpler way... What to do if you had a digital input module and you wanted to see the status of each input line in the form of a LED on your face in real time. How would you do it?
I would like to write what has been read to the Terminal.
From what I can tell, you want to just read a single static value from your digital line. You can then simply read the value of one and do some logic with her.
-
Simultaneous to the AO and HAVE with the acquisition of data NOR USB 6001/MATLAB Toolbox
I am very new to data acquisition and bought a NI USB 6001 to start to learn. Because I can get free MATLAB through my University, I use Matlab data acquisition Toolkit as the data acquisition software.
My problem is that I get the following error message when I try to generate an AO (an LED voltage) signal and measure a signal I (voltage of a battery of 9V) simultaneously.
ATTENTION: This change is caused in the dump output data queue. Use queueOutputData for the queue data before the start of the object.
Hardware does not support the specified connection. Check the user manual of the device for the valid device routes and pinout.However to measure IA or by generating the AO each by themselves works perfectly well.
My Matlab script looks like this:
daq.getDevices;
s = DAQ.createSession ('or');
s.Rate = 1000;
s.DurationInSeconds = 10;
addAnalogInputChannel (s, 'Dev1', 'ai0', 'Voltage');
addAnalogOutputChannel (s, 'Dev1', 'ao0', 'Voltage');
aoVoltage = 1.8 + 0.1 * sin (linspace (0, 2 * pi, 10000))';
queueOutputData (s, aoVoltage);
s
startBackground (s);
Note that adding the channels HAVE and AO at the session also works, however I get the error mentioned at the start of the session. This is a limitation of my data acquisition hardware (I don't see something like that mentioned in the manual) or do I have to modify the script?
The pins connected for the LED are AO0 (+) and AO GND (-).
The pins connected to the battery are AI0 (+) and (-) AI4. (The problem is still there if I use the reference to the ground for AI)
6001 cannot make simultaneous tasks. Very standard limitation of the low-end hardware... just don't have on board computing resources to handle such things. Even the 621 x boards have only limited multitasking abilities.
Can intensify to a high range data acquisition ($$$) or buy a 2nd a low end and synchronize tasks in software (not as precise calendar). I've done two approaches, one is "best" really depends on demand... If low-cost or high-performance is a priority.
-
How many simultaneous tasks may be accompanied by OR compactRIO
Hello world
I m new to modular data acquisition. I need to gain about 10-12 simultaneous analog inputs for the quality of food and the transient analysis. As NI CompactDaq specifications States that it can accommodate 7 - simultaneous tasks while for NI CompactRIO, no information is mentioned in its specifications.
So my question is how many simultaneous tasks can be supported by CompactRIO?
So please help me regarding the choice of system type or CompactDaq or CompactRIO fulfil certain conditions in my case.
Yes, you will be able to do it with a cDAQ. As long as you are in a frame, you can share the same time base and start on the same trigger.
-
Use the angular position of the encoder to trigger Digital out
Hello
I am a novice user of labview, I have access to three modules, two NI9201 and a NI9401.
I have an angular encoder is used to measure the angular position of a crankshaft of engine, what I try to do is to use the encoder to trigger a digital camera (spark in the motor event) at a certain angular position. For example, I would like to start up (or) stalled, then I want to change that to + 5 degrees on the encoder, etc.
So far, I am able to read in the angular encoder when the engine is running, I am also able to output digital signals even if I can't find a way to connect the two.
If anyone has an idea how to do this, it would be greatly appreciated, I am attaching my VI.
Thanks in advance,
Nick
Hi Nick,
I hope that the vi attached you will get on the right track. It's just a general concept.
The while loop will work until you press the stop button.
I guess you'll need a spark by revoultion.
This VI is really just an If/Then
If the encoder value is equal to (in this example) zero,.
Trigger digital output.
I know that I have a wire cut, but I didn't know how to get the angular position of you DAQmx.
Let me know if this help. (Also let me know if I'm off-target)
Good luck
Bill
-
The Windows Task Manager seems completely wrong - it has no tabs for applications, services, processes, performance and networking, just one size rectangle box SHOW the TASKS of WORKING ON? I use it all the time close process and close programs stuborn. None of these options are CURRENTLY available? The only thing I can think is I went to delete one of my readers WD3.0 data and he says it has been used by another program and I've had that happen before and just go close a lot of the process by typing Control, Alt and delete which opens the windows task manager. I recently changed "System Configuration'under'msconfig" Normal startup to "selective startup" and reduce the number of drivers and programs loading to 'Start Up', as he ran 90 things and slow start. "" "» I have no viruses or malware. I changed the "system configuration" back to normal + restart and that he would remove the progams, or processes that have been intefering with the Western Digital HD software. THIS IS WHEN I FIRST NOTICED WINDOWS TASK MANAGER HAS BEEN SCREWED UP.
But I can't because my Windows Task Manager is just a rectangular box with a single word to the top sayingTASKS! Without tab with all the other options as in (program, process, services, performance, and network management).
Would BE AN INTELLIGENT PERSON please TELL ME WHAT TO? I don't want to do a system restore , as I just cleaned it all points this week and just started around and added a bunch of programs and data this week that I let go.
PLEASE HELP ME TECHE AND MICROSOFT. I PAY $250 p/year FOR THIS DELL ALIENWARE MACHINE LOADED due to it's PERFORMANCE AND THEY WILL NOT ANSWER (1) DANG SOFTWARE ISSUE WITH what THEY ARE PAID. THEY WANT $60 - $100 OR MORE TO ANSWER THIS QESTION FRENCH ANOTER. THEY USED TO, WHEN I COULD BUY GOLD SUPPORT BUT THEY SELL ON THIS MACHINE, SO I'M ON MY OWN AND THANKS FOR THE ADVICE LIKE THIS...
The Microsoft Support web site.
The task manager has two different views. For the display that includes menus and tabs, double-click the border of the Task Manager window. To return to the view without menus and tabs, double-click anywhere in the border around the tabs.
We won't have the information mentioned in the first response of Sandsweep.
(I confirmed Microsoft's answer worked.) I must have clicked on the edge of the window Task Manager to have switched over to the second, less familiar view.)
-
Script to wait for Clone task is completed
Good day, as part of the post, I run a command that enables the NIC and sets the right Port-Group of cloning process. I put a sleep command in each environment is diferrent, so I find myself always change this duration of sleep because the cloning process does not end in the time of sleep and the rest of the script fails. So in order to get rid of the sleep control that I want to capture the CloneVM_Task and pass this parameter to wait-task that will force the completion of the ClonVM_Task. I could just make sure no other tasks are running but this task, but as we all know that alays can't be the case. So that's what I did.
I begin a deployment of FVO to have an another long running task. Then I run the script.
If ((Get - PSSnapin - name Vmware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null) {Add-PSSnapin "Vmware.VimAutomation.Core"}
# Virtual Center details
$server_address = "MYvCenter name" or IPSE connect-VIServer-Server $server_Address - user username-pass password - WarningAction SilentlyContinue
#Create Master VM Templates
#
# Here we import the CSV file with the account information and he piped in a Foreach-object
# Creating a Variable that imports the csv file that contains all data of the virtual machineCD "e:\Scripts.
$InputFile = import-Csv "E:\scripts\mycloneinput.csv".
$InputFile | {ForEach-Object$ip = $_. VM_IPAddress
$GName = $_. VM_Guestname
$TName = $_. Template_name
$HName = get-VMHost "myhostname" # 1 first Select
$Desc = $_. Description
$Dstore = $_. Datastore_Name
$Spec = $_. Customization
$Folder = $_. Folder
$Sfolder = $_. Subfolder
$NIC = $_. NIC
$NIC_Lable = $_. NIC_Label
$Gateway = $_. NIC_Gateway
$SubnetMask = "255.255.255.0".
$DNS1 = $_. DNS1
$DNS2 = $_. DNS2
Write-host "creation: ' $GName
Write-host "template name is: ' $TName# This takes variables and creates the virtual machine
Get-OSCustomizationSpec $Spec | Get-OSCustomizationNicMapping | »
Game-OSCustomizationNicMapping - IpMode UseStaticIP - $ip - $SubnetMask subnet mask - DNS IpAddress $DNS1, $DNS2 - DefaultGateway $Gateway
New-VM-name $GName - location $Folder - model $TName - host $HName - $Dstore - $Desc Description data store - OSCustomizationSpec $Spec - RunAsync-confirm: $false
#######################################
#Waiting for cloning process to finish.
#######################################$$$ Under notes show a little history of how I got to this point.
$$ Note1: the first attempt, I just captured running tasks and their past to the task pending. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."
$$ Note2: so I added the If Else loop below that failed, because $RTask never equaled only CloneVM_Task, but was a table of two.
$$ Note3: I tried to us below to separate the two tasks to help
# $RTask = get-task-status running (who captured the two tasks running)
# $Array = $Rtask.Split("") (Errored with the method call failed because [System.Object []] contains a method named 'Split'.)
# So I tried to divide the table like this. ForEach ($Task in $Rtask.Name - Split("")) {Write-Host "my tasks are:" $Task}
Get-task-status Running | Export-CSV "E:\scripts\Current_Tasks.csv".
$InputFile2 = import-CSV "E:\scripts\mmca\mmca_Current_Tasks.csv".
$InputFile2 | {ForEach-Object
$RTask = $_. Name
Write-Host "current task is: ' $RTask
IF ($RTask - eq "CloneVM_Task") {}
Write-Host "current task of Clonning is: ' $RTask
Write-Host "in the meantime the cloning process finish.
Waiting-task-task $MyTask
}
Else {}
Write-Host "no cloning process is executed.
}
}
# This allows the NIC and set the correct Port Group
Get-VM-name $GName | Get-NetworkAdapter-name $NIC | Together-NetworkAdapter - NetworkName $NIC_Lable-confirm: $false - StartConnected $true
}When I run the present, I get the following:
# #This shows the task start Clonning #.
erverId: /[email protected]:443 /
Status: running
IsCancelable: true
PercentComplete: 5
StartTime: 03/05/2013 00:52:13
FinishTime:
ObjectId: VirtualMachine-vm-382
Result:
Description: Clone virtual machine
ExtensionData: VMware.Vim.Task
ID: Work-task-2070
Name: CloneVM_Task
UID: /[email protected]:443 / task = work-work-2070 /#########################################################
# #Runs through the tasks running.
Current task: deploy the model to the FVO
No cloning process is executed# Ignore deploy it task #.
# #Matches the If statement and continues to process #.
Current task is: CloneVM_Task
Task current Clonning is: CloneVM_Task
Wait for the cloning process to complete# #Error #.
Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
E:\scripts\Working_Create_Master_Templates.ps1:71 tank: 24
+ Wait-task-task < < < < $RTask
+ CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask$$$ Under notes show a little history of how I got to this point.
Note1: The first attempt, I have just captured tasks currently running and pending their past to the task. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."
NOTE2: So I added the If Else loop below which failed because $RTask never equaled only CloneVM_Task, but was a picture of two tasks.
Note3: I tried to use the following to divide the two tasks:
$RTask = get-task-status running (who captured the two tasks running)
foreach ($Task in $Rtask - Split(""))
{
{Write-Host "my tasks are:" $Task}
IF ($Task - eq "CloneVM_Task") {}
Write-Host "current task of Clonning is: ' $Task
Write-Host "in the meantime the cloning process finish.
Waiting-task-task $Task
}
Else {}
Write-Host "no cloning process is executed.
}
}# #Output the little script above #.
Current task: deploy OVF model CloneVM_Task
My tasks are: deploy
My tasks are: OVF
My tasks are: model
My tasks are: CloneVM_Task
Task current Clonning is: CloneVM_Task
Wait for the cloning process to complete
Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
Online: 11 char: 24
+ Wait-task-task < < < < $Task
+ CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTaskI'm new to Powercli and I've scoured Google for a possible answer. I thought I might have a solution that has been published on the VMware PowerCLI Forum, but I couldn't get this to work. Any help would be greatly appreciated.
#########################################
I wasn't worried about how to tasks where splits, unless I was trying to follow the import fo the OVF, so that the script went into the loop If and as one of the names for CloneVM_Task then he Treaty. But I got the same error I did in the last version of the above script. That's why I have the version curent thinking that if I exported and then imported the tasks it might make a difference.
I'm new to Powercli and would like a little help. I am either very close or by a mile off. :-)
Thank you
Mitch
Why don't you store the the task object that is returned when you use the RunAsync switch?
You can create a loop around the State and wait until the clone job is done.
$task = New-VM -Name MyVM ... -RunAsync while($task.ExtensionData.Info.State -eq "running"){ sleep 1 $task.ExtensionData.UpdateViewData('Info.State') }
The big difference with the Wait-job cmdlet, it is that this will allow you to perform additional work in the While loop.
Waiting-task the cmdlet waits just until the task is finisned and you can not do anything else.
-
Maximum simultaneous tasks available under Linux.
I used the converter for a few weeks now. I would like to be able to set up a queue of tasks to have the converter to start now. However, I'm unable to change the maximum number of virtual guests on a linux vmware converter standalone installation.
When the demon of converter is linux on a machine, I connect via another machine with the customer installed linux or a windows with the client box is installed. When I select the Administration, simultaneous tasks Maximum is not available. The same result occurs when I connect from the client linux for itself (localhost). However when I connect to the converter of windows server, the "Maximum simultaneous tasks" option is available.
Does anyone know how to set this option for vmware converter for linux server? I tried editing /etc/vmware-converter/converter-agent.xml and /etc/vmware-converter/converter-server.xml and replace the parameter of vmacore - & gt; threadPool - & gt; TaskMax 40-to-1. The result being that the client could not connect or demon is deceased early solange, respectively.
Go to a command line, and then run the following as root. Root is the only one who has permissions to modify the file that contains the number of concurrent tasks.
/usr/lib/VMware-vCenter-converter-standalone/bin/VMware-Converter-client
You can then change the number of concurrent tasks.
Kind regards
EvilOne
VMware vExpert 2009
NOTE: If your question or problem has been resolved, please mark this thread as answered and awarded points accordingly.
-
Need digital pen for Portege M200
Hello Toshiba Forums!
I lost my * digital pen * for * Portege M200 * so now I have the opportunity to buy another.
My question is: What pens (from companies) agree and works perfectly with the Portege M200?
I am interested to buy Wacom, Fuji or any other pen, including the original but I still have a few problems:
1. I can't buy anything more expensive than $75
2. it is rather difficult to find something except Wacom since I live in Israel (there is only one shop of Toshiba and I'm not sure they have the original pen for M200).
Thank you!
____
-KariHello
Have you lost two pens?
I mean there's a pen reserve battery pack Bay the laptop underneath.
Check it!With regard to the question of the use of all other pens
Well, I've never tested other pens so it is difficult to say if the other pens work -
Western Digital IcePack for the SSD mounting: problem to share
I liked the sled of adapter form factor of 2.5 to 3.5 Western Digital IcePack for my converted Momentus XT 500 GB disks hard/Intel SSD 2.5 "for proper installation in HP xw workstations. Most of the jobs that I use have the standard plastic 3.5 "drive green HP monte that slide in case channels meant for this. See PDF attached on the ice. They are very solid and well built.
It turns out that are the two colors of the interface... red and green circuit board. Green only those that I have seen include a molded projection that is supposed to interface with a cavity on the back of some disks 2,5 "hard, that allows the transfer of the drive jumper pins hard interface in the background of the ice SATA connector (which is exposed for easy access, therefore).
I received only of briquettes with PCB red until today, and those who have not had this projection at the end of disk 2.5 "interface.
My SSD intel is not riders and so no mating recess and therefore not necessary for this part of the interface, but they cannot drag on the projection as a result. My 'red' briquettes version would accept the SSD and 2.5 "hard drives with a jumper pin recess in all circumstances (but not be able to allow the manipulation of rider to end exposed sea ice). My "green version" briquettes will can return disks 2.5 "with the cavity of jumper pin into the rear end of the car itself.
So, for me, red is the only type I want. I did not use jumpers on the drives for years... If you buy a guy on eBay who these new Western Digital be sure to communicate your needs for the Red version. It is obvious through the sealed bags of mylar.
Scott
CHANGE > > > > > > see below... There is actually a few briquettes with PCB being red and have the projection causing trouble, too, but they seem to be a small minority.
I've seen 2 WD briquettes with the Green circuit board, and each of them has had this additional projection that interferes with my Intel SSD to slip in the correct position. You can see in the pictures that "bottom basket' of the SSD Intel a flower metal where the hard drive has a"container"recessed in the same region to take account of this protrusion.
I checked all my Velociraptors currently here, which are 2.5 "hard disks that are mounted on the plateau of the Western Digital factory. All those who have red cards (without projection). This is despite the fact that make Velociraptor hard drives have the recess that would accept the projection, as does the 2.5 "hard drive shown in the first photo attached. Thus, it seems that for the WD Velociraptors does not feel the need to provide this Green type of physical interface.
The hard drives with the recess for the projection of mesh with the Green type perfectly, but they are also perfectly on the type of red. So, for me, I would call the "universal" type red
If they make a red PCB with the offending projection included is something I can't answer otherwise that to tell you I have never seen one of these and have used over 20 Red types so far.
CHANGE > > > > > > > > > visitor, below, found a specific example of an ice floe that has a red PCB and a drive to interface with the projection. Thus, they exist but appear to be a small minority. See my last post on how to avoid the problem.
Keep us informed if learn you more, take a look at the attached pictures.
-
Film digital storage for Apple TV?
Film digital storage for Apple TV? I think of buying a collection of films, but do not have much space on my iCloud. Movies can stay in the Apple TV? Digital films take a lot of space, Don't they?
The ATV is a multimedia player that allows rather than a storage device. You can store media (movies, tvshows, music, etc.) on your computer to iTunes and House share locally or you can broadcast over the web. But you cannot store anything on the ATV itself - conservation applies to the apps/games only...
-
Digital list for Boolean table
Hello
I have two list boxes. One of them has different voltages and the other has tensions of difference.
For every interaction, a freq and tension must be selected and the corresponding Boolean table elements must be high.
Voltage FREQ
100 2
200 < ="" ="" ="" ="" ="" ="" ="" ="" ="" 4="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="" ="==="> 0100 0010
300 6
400 8
Does anyone know how to make the conversion to digital listboxes in the table of Boolean?
Thank you!
Try this
Of course, this assumes that the list boxes have exactly 4 elements each.
Maybe you are looking for
-
Hello Today, I replaced my old iPhone with a new iPhone. The two are the exact same phone, an iPhone 6 + iOS 9.3, the latest version of the software running. When I implemented the new phone, I used the backup from my old phone to restore all of my
-
Get annoying action ads at the top of the Yahoo home page. I always use Firefox and haven't changed the settings, then why the big announcements? I know that they are put there by Yahoo, but they were not there before and they aren't there when I ope
-
Apple TV first generation will be to synchronize iTunes 12.3.3.17
I'M a die hard apple TV user 1st generation. Almost gave up after switching to the new software of PICTURES but has waited long enough and finally photos the ATV is presented one day. then yesterday I updated to iTunes 12.3.3.17 and guess what? No sy
-
Is it possible to tell when a number was locked or unlocked?
I'm wondering if it is possible on an iphone 6 s. If you can tell when a number has been blocked or unblocked phone? I already know how to put a block or unblock for a number. I am curious about the time or date Thank you
-
Hidden properties and PropFlag_Hidden gives - failed [Code of error-17500] Popup
We use a User Interface LV (8.5) TS (4.0), which is a modified version of the Interface of LabVIEW Basic comes with TestStand. Our user interface is pretty basic; It allows the selection and execution of the sup within these sequences sequences and