Meaning of "ParamP" in SFD_ProcessChannel -function (DAC: Script-block")
I don't understand the meaning of the parameter "ParamP" in
SFD_ProcessChannel -function at all. Every time the SFD_ProcessChannel
-function is called, ParamP is emty, is't it ?
Could everybody show me an example with ParamP is not empty ?
Martin Bohm
[email protected]
Diadem Help:
Syntax
SFD_ProcessChannel( ChannelNumberP, InputListV, ParamP, DataP,
ErrorP )
Parameter
Globale Parameter
ParamP
In diesem Parameter wird der Singalparameter aus der Bedienoberfläche des
Script DAC-Treibers an die Funktion übergeben (sofern dieser nicht durch andere
Funktionen des Scripts geändert wurde).
Its the value of the parameter you may enter individually for every configured channel in the Script DAC driver block in DIAdem.
The variable is not a vector variable - even though you can have several channels and different parameters.
This is because the ProcessChannels function is called once for every configured channel (and tact). ChannelNumberP shows you the index of the channel that is currently processed. So, if ChannelNumberP =1 ParamP contains the parameter of the first configured channel, if ChannelNumberP =2 ParamP contains the parameter of the second channel. (Same as with DataP).
Ingo Schumacher
Systems Engineer Sound&VibrationNational Instruments Germany
Similar Messages
-
Problem in DIAdem DAC Script-processing
Se description and DAC-schema in attachments !
Regards
Henrik
Message Edited by Support on 02-20-2007 01:43 PMHi Henrik,
Currently we have no idea why this behavior occurs like you described. That's something we have to look into. But we have a workaround. You can use a separate clock block for each DAC script block. That works fine in our tests. Attached you find your modified example. I hope it can help you.
Greetings
Walter
Message Edited by Support on 02-20-2007 01:43 PM -
Data exchange Mainscript (SCRIPT) with script block (DAC)
Is there any way to exchange data beetwen a Mainscript (SCRIPT) with
user-dialoges and script block (DAC) in this way that the script in
scriptblock can access to this data?
Background: I write a DAC-Application with some script-blocks for
reading and writing data to/from real devices. During the development
I'd like to simulate all device accesses because I don'd have the
devices in my office. I write all scripts with a branch for simulation
an real measurement on startup.
How can I execute a swich (simulation / mesurement) without changing
all my scripts all times? Can a script read a variable anyway (Variable
from Mainscript, Diadem-Uservariable or "Hilfsvariable" like L1)?
Can I fill "DeviceParam1V" with content of a variable?
I could use a input channel connected with a formula-block for it. (The
formula-block can read a variable.) But this way is uncomfortable an
don't work for input blocks.
Martin Bohm
[email protected]Because the DAC Script is executed in its own runtime environment you cannot use the DIAdem variables as in a normal VBS or a SUD.
Still, there are ways to exchange information.
First of all by an extra channel as Input (you named it)
Secondly, there are several variables you can use. Have a look at the Script DAC block. There are two fields called Parameter1 and Parameter2. And each signal you configure has a parameter of its own.
Prior to starting the scheme, you can use a script to change the value of those parameters:
Call DACObjOpen("Script-in1")
VBSSignalParam(1) = "abc"
Call DACObjClose("Script-in1")
Is changing the parameter of the first signal that is configured.
Call DACObjOpen("Script-in1")
VBSParameter1 = "1st device parameter"
VBSParameter2 = "2nd device parameter"
Call DACObjClose("Script-in1")
is changing the global device parameters.
On the side of the Script DAC driver VBS you cann use the paramP funtion to access the signal parameter that corresponds to the actual channel (as referenced by ChannelnumberP)
' SFD_ReadChannel
' Zweck : Lesen eines Wertes für den Kanal "ChannelNumberP"
' ChannelNumberP | Kanalnummer aus dem Block-Dialog
' ParamP | Vom Anwender definierte Variable aus dem Block-Dialog
' DataP | Variable zur Rückgabe des neuen Kanalwertes. Diese
' | Variable sollte zumindest auf einen gültigen Wert
' | initialisiert werden.
' ErrorP | Variable zur Rückgabe einer Fehlermeldung. Wird diese
' | Variable gesetzt, stoppt DIAdem die Messung
Sub SFD_ReadChannel( ChannelNumberP, ParamP, DataP, ErrorP )
End Sub
To acces the device Parameters, use the init function:
' SFD_Init
' Zweck : Diese Prozedur wird während des Messungsstarts aufgerufen
' DeviceParam1V | Erster Parameter, der vom Anwender im DAC-Block
' | eingegeben werden kann
' DeviceParam2V | Zweiter Parameter, der vom Anwender im DAC-Block
' | eingegeben werden kann
' ErrorP | Variable zur Rückgabe einer Fehlermeldung. Wird diese
' | Variable gesetzt, stoppt DIAdem die Messung
Sub SFD_Init( DeviceParam1V, DeviceParam2V, ErrorP )
End Sub
Ingo Schumacher
Systems Engineer Sound&VibrationNational Instruments Germany -
What is the values and meaning for parameter TCLAS in functions
what is the values and meaning for parameter TCLAS in functions like
HR_INFOTYPE_OPERATION
regards
janHi Jan,
Good Morning,
In TCLAS,
A, B , T will be there.
A- Master data and time data.
B- Applicant data.
T- Shift Schedule.
So, here we can say the default value will be integrated according to the above ABT.
Means in the feature ABKRS, if you give the default values for all the three, your payroll area will appear in Master Data and Time data. And in recruitment ( Appicant data ) and work schedules. Means you are getting ingrated to all the three.
And you can observe the feature PINCH also.
If you dont want to get integrate with Master data, then dont give the default value under the A- Master date and Time data. And if you want to get integrate with Recruitment , then give the default value under B.
I think u got the clear idea about TCLAS.
Dont forget to give the points
Thanks in Advance
Cheers
Vijai -
Whats mean by output type w.r.t script & smartform
Hi!
Whats mean by output type w.r.t script & smartform
Thanks,
Imran.Output type - this is application ,which is attached to transaction,when you create document ,automatically layout will trigger
Let me say one example :
We have Purchase order ,we create purchase order ,order goes to the vendor.
Creation of purchase order at ME21N Transaction,now vendor will receive the order in the form of layout( Layout will go by usingE-Mail,Fax and so on ).
Output type is attaching to purchase order,output contains layout name(Script name(SE71) and Print program.
Look AT NACE Transactio->select EF Application->click on output type->select NEU Output type ->click on processing routines.
here you can see the purchase order print program and layout.
if you want to see the output in purchase order
just goto ME22N( My assumption is you have purchase order) click on messages.
now enter output type = NEU
Medium = Print output
Partner = VN
Partner number = vendor number(See in purchase order)
language = En
Now click on Further data ->select send immediately->back
click on communication method - >Local destination (LP01 or LOCl) back -.save it
now click on print preview -> you will able to see the output -
Hi All,
We are going to develop an interface that will import some data from a third party system to GL.
For this Im required to design some functional test scripts.
01) What are functional test scripts
02) Further let me know how do develop functional test scripts,since I am new to this area.Further let me know if this involve any technical areas,since Im a functional person.Is there a way to get sample test scripts
The way I have tested these interface programs is by getting a sample data file and transfer them to relevant application.In that process I identify the issues or error resolve them till I get the desired result.But I havent ever gone through a formal procedure in testing, such as developing functional test scripts.
Please explain.
Thanks,
MPHFunctional test involves making sure the functionality of the overall application works fine.
So in your case, it will involve making sure the interfaced file works well with all types of accounts, that a trial balance can be generated.
It may also involve error handling in case some records in the file error out. In that case, proper notifications should be sent out.
Since you are using an interface/api, the functional testing need not be very complicated.
Hope this helps,
Sandeep Gandhi -
I found this article, and used it, and it seems as though my script resource node items are being properly expanded, and honestly I think it passes through being loaded up, but then when I go to start it, it fails. so let me put up some links with code and
error messages for you all.
http://social.technet.microsoft.com/Forums/exchange/en-US/2eb97d67-f1fb-4857-8840-de9c4cb9cae0/dsc-configuration-data-for-script-resources
Ok, so here is my configuration. The idea is that I need some specific permissions set on a specific registry key on my sql servers. This is so I can do the SQL LowPriv monitoring. I'm just setting one key right now, premise is once this is working I can
then duplicate that for the remaining keys.
https://gist.github.com/jeffpatton1971/1bfb19a06782f0975f6e
When I paste that into the prompt it appears to be perfectly happy
https://gist.github.com/jeffpatton1971/3aeb568130988a460738
In fact, the resulting MOF file looks ok to me
https://gist.github.com/jeffpatton1971/a94858f0c1e9e5612f90
When I attempt to start the configuration on my local machine, which has the key this is what I get
https://gist.github.com/jeffpatton1971/82da888bb7aac31ef4ad
lol...well so it's a different error now, I removed a credential param that I wasn't using, so now i'm left with an & that I can't seem to find anywhere... at any rate...so now my issue has become where is the bad &?I'm going back to the internets
to see if there is something akin to this error, and i'm open to any questions the most pressing one is why are my scriptblocks all smooshed together? well, early on I was wondering if random whitespace and extra characters were mucking up the waters. I may
actually dial down the script and see if I can add things until I get the error as well.
Jeffrey S. Patton Jeffrey S. Patton Systems Specialist, Enterprise Systems University of Kansas 1001 Sunnyside Ave. Lawrence, KS. 66045 (785) 864-0242 | http://patton-tech.comI looked at the first link, and it looks like you might be missing quotes around the $Node.ActionAccount part of the comparison, which would cause the script block creation to fail. Maybe change the sections that look like this:
Where-Object {$_.IdentityReference -eq $Node.ActionAccount}
to this:
Where-Object {$_.IdentityReference -eq '$Node.ActionAccount'}
If you're looking to do permission changes with DSC, I'm actually looking for testers for my
PowerShellAccessControl module. The 3.0 beta has two DSC resoruces: cAccessControlEntry (lets you make sure an ACE is present or absent) and cSecurityDescriptor (lets you specify an SDDL string for an object). The current cSecurityDescriptor is going to
be called cSecurityDescriptorSddl in a future release, and a new cSecurityDescriptor is going to be added that lets you control the different sections without using SDDL. If you were to use it, I think you could change your configuration to the following (at
least for the permission part):
Configuration SQLLowPrivRegistry {
param(
[string[]] $ComputerName = "localhost"
Import-DscResource -Module PowerShellAccessControl
Node $ComputerName {
cAccessControlEntry TopLevelActionAccountPermissions {
Ensure = "Present"
Path = "HKLM:\Software\Microsoft\Microsoft SQL Server\"
ObjectType = "RegistryKey"
AceType = "AccessAllowed"
AccessMask = ([System.Security.AccessControl.RegistryRights]::ReadKey)
Principal = "DOMAIN\SqlDefaultAction_sa"
What you're doing should work just fine, so I'm not saying you need to use mine. If you do get a chance to look at it, though, please let me know what you think (or if it even works). There are two scripts in the examples folder of the module that demo more
with the two resources (hopefully that will do until I finalize the documentation). -
Hello OTN,
After converting/exporting machines from VMware and importing them into OVM i am receiving errors on some of the machines when powering on.
Here is the complete error message:
Start - /OVS/running_pool/dirkwin
PowerOn Failed : Result - failed:<Exception: return=>failed:<Exception: ['xm', 'create', '/var/ovs/mount/483E943AE684484EAD7255356E8F24CC/running_pool/machinename/vm.cfg'] => Error: Device 768 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected.
>
StackTrace:
File "/opt/ovs-agent-2.3/OVSXXenVM.py", line 57, in xen_start_vm
run_cmd(args=cmd)
File "/opt/ovs-agent-2.3/OVSCommons.py", line 85, in run_cmd
raise Exception('%s => %s' % (cmdlist, p.childerr.read()))
>
StackTrace:
File "/opt/ovs-agent-2.3/OVSSiteVM.py", line 131, in start_vm
raise e
Searching for this error turned up different solutions but none of them worked.
One mentioned OVM not being able to handle spaces in vm names but this is not a working solution as most of the machines are just regular names without spaces or special characters.
Also interesting, sometimes this error does not turn up when powering on BUT the machine just powers off again and returns to its turned off state. Next power on the error returns.
OS types vary from S10, Win XP and RedHat so a possible connection to the error being the host OS is not there.
Harddrive types are set to auto. The vm.cfg's of functioning machines do not differ from non functioning machines besides the actual vm name in the vm.cfg
Any idea to this error or how to solve it ?
Thanks
-StephanHello Sebastian,
This is one of the vm.cfg which will abort due to the above mentioned error:
acpi = 1
apic = 1
builder = 'hvm'
device_model = '/usr/lib/xen/bin/qemu-dm'
disk = ['file:/var/ovs/mount/483E943AE684484EAD7255356E8F24CC/running_pool/vmname/vmname.img,hda,w',
',hdc:cdrom,r',
kernel = '/usr/lib/xen/boot/hvmloader'
memory = '2048'
name = 'vmname'
on_crash = 'restart'
on_reboot = 'restart'
pae = 1
serial = 'pty'
timer_mode = '0'
usbdevice = 'tablet'
uuid = 'a2a62bcb-f9ab-4ec3-8574-7415985cdf0a'
vcpus = 1
vif = ['bridge=xenbr0,mac=xx:xx:xx:xx:xx:xx,type=ioemu']
vif_other_config = []
vnc = 1
vncconsole = 1
vnclisten = '0.0.0.0'
vncpasswd = 'xx'
vncunused = 1
The xend.log also turned up nothing concerning this error. no messages were written into it. No other log has been created by xen in the /var/log/xen directory concerning an issue with the current machine.
Thanks for your help !
-Stephan
ps:mac address + pw is commented out
Edited by: Stephan Becker on Aug 5, 2010 7:11 AM -
"Object Required" error when using the script block from the code behind
I try to use the following script block on the code behind page
<script defer='true' id='NavID' type='text/javascript'>Nav();</script>
and the function Nav() is on the .aspx page. It gives me the "Object Required" error message. BUT if I add an alert("hello!!!") line inside of the Nav() function, it works fine after the user closes the alert box. Has anyone experienced a similar problem? Please help. Thanks.There is no way to troubleshoot this by looking at a picture of the diagram. LabVIEW 6 is almost prehistory and many things have changed, especially the file IO all looks different so it is impossible to tell what you are doing.
Error 7 is file not found, so most likely your string operations are not correct. What are the full strings? What is the final file name (maybe you are missing a "\" or maybe you are on a different OS type). Put an indicator at the path wire to see what's happening!
Is this a datalog file?
(Overall, the code is a bit suspect. Nobody needs a seven frame flat sequence. ) Why do a control and an indicator have the same label?)
LabVIEW Champion . Do more with less code and in less time . -
Problem creating inputs, outputs and text in Scilab Script Block
I have recently installed the Labview to Scilab Gateway. I am running Labview 11.0 and Scilab 5.3.3. The example files run properly, However, when I try to define any inputs, or outputs, there is no option to add the ports. The block also ignores any text I type in it or copy to it. I have been trying this on a blank vi.
Solved!
Go to Solution.Hi Ronny,
I have a few more questions to help us debug this issue. You said you tried the same right-click procedure to create inputs and outputs on a normal script block and it worked as expected. What specifically do you mean by a "normal script block"?
How did you drop the empty Scilab script node on a blank VI? Did you drop it from a palette or paste it from another VI?
Can you post an image of your Help >> About LabVIEW screen (feel free to obscure your name, company, and license number)? If not, can you provide the LabVIEW version number specified from that screen? There have been a few patches to LabVIEW 2011 and it will help us to reproduce the issue if we know exactly which version you have. Also on that screen, do you have LabVIEW Base, Full, or Professional (or maybe an Evaluation or Student edition)? The Scilab script node will not work in LabVIEW Base and the right-click menu will look as you describe. You can verify your LabVIEW activation in the NI License Manager.
Do you have any other versions of LabVIEW installed on your computer? Is LabVIEW 2011 the most recent LabVIEW you installed? How about previous versions of Scilab? Do any previous versions remain or did you remove a previous version of Scilab AFTER installing Scilab 5.3.3?
Grant M.
Senior Software Engineer | LabVIEW Tablets | National Instruments -
State control from script block
Hello, my Flex SWF is receiving a local connection from
another embedded SWF.
When this local connection is made and the relevant function
is called by the sender SWF, what is the best way to initiate a
state change within the parent receiver SWF ?
i,e. how do I initiate a Flex state change from withing a
CDATA script block ?
Thanks for any help.That can work. I assume you've already seen:
http://learn.adobe.com/wiki/display/Flex/Local+Connections
the AS would simply be something like:
currentState = 'myNewState'; -
Use Variables created in script block outside of script block
hello
I have a code like:
$command= { param($p1,$p2) if (Test-Path "D:\$p1") {
$s=$p1+ "_" +$p2 } }
Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2here session is already created with remote server. Invoke-Command runs that script block on a remote server.Now I want to use that variable $s after invoke-command like $command= { param($p1,$p2) if (Test-Path "D:\$p1") { $s=$p1+ "_" +$p2 } }
Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2write-host $sif ($s -eq "ZTE_3G") {Write-host True} else {write host false}But here value of variable $s comes as null.Could you please help me how can i use value of that vairable?You need to return $s in your scriptblock and then save the output of Invoke-Command to a variable in order to test.
Something like this may work:
$command= {
param($p1,$p2)
if (Test-Path "D:\$p1") {
$s=$p1+ "_" +$p2
$s
$s = Invoke-Command -session $sesion -ScriptBlock $command -ArgumentList 1,2
write-host $s
If ($s -eq "ZTE_3G") {
$True
} else {
$False
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI | PoshRSJob
PowerShell Deep Dives Book -
Calling of function in initialization block
Hi,
Could anyone please tell whether calling of function in initialization block occurs in what manner?
Please answer by selecting from below options:
Option 1. SEQUENTIAL (e.g USER 1 & USER 2 concurrently logged in, Now USER 1 calls the function through initialization block first and after completion releases it for USER 2)
Option 2 THREADING (e.g USER 1 & USER 2 concurrently logged in, Now USER 1 and USER 2 calls the function through initialization block simultaneously)
Regards,
Varun
Edited by: Varun Malhotra on 17-Dec-2009 01:07
Edited by: Varun Malhotra on 17-Dec-2009 01:57Hi Varun,
Based upon my previous Dashboard Prompt Execution Order, most things in OBIEE happen asynchronously.
That being said, I would think that your second scenario is the most likely. If both users login at the same time, the function gets called simultaneously (or close to it).
Hope that helps.
-Joe -
Can I use Count, Max function in PLSQL BLOCK.
Can U help me to use count, max function in PLSQL BLOCK.
Because it is giving me error "It is a SQL function"SELECT COUNT(*)
INTO l_variable
FROM dual;
Will work inside PL/SQL -
Open a file using matlab script block
Hello!
I want to open a file from a specified directory using matlab script block.
The input of this block is a string with file's name......but it doesn't work in this way. I have to change the input data or I have to change it into matlab matlab script?
Some idea?
Thanks!
Attachments:
example.PNG 4 KBOoooppss!
My computer is crazy....sorry.
I'm near to solve my problem...
The problem is that I have a column of strings like this
str=['labview'
'labview2'
'labview3'
'labview4']
I use the double command but the byte array to string block only converts me an element, do you know is exist another block to change all the elements.
I've tried to do with a for loop block....using an index array and changing with i the index element, but it doen'st work.
You have some idea?
Maybe you are looking for
-
I guess I have more then one Apple ID accounts and I own a little money on both and I am willing to pay and when I try to update and put my new payment method in my iPhone it tells me I need to contact iTunes support, the apple id I'm useing now is x
-
Need to debug an occasional network freeze
Since recently, I have been having a strange problem with my network connection. Setup: Desktop with a static IP and well qualified hostname. Here are some configs: ~> cat /etc/hosts 127.0.0.1 arch.physics.indiana.edu localhost.localdomain localhost
-
SWF-Files in a PDF try to start a Website
Hi, I use Acrobat 9 ext. and have some PDF's with SWF-animations. Problem: If the animation finished, it trys to open a website and brakes with a eror-message. There are no scripts on the SWF, so I gues a security-mistake on the Acrobat 9. Can anybod
-
IPhone 5 won't sync. Please Help!
I plug my iPhone 5 into my computer and it will not come up in itunes. All I get is the "Trust this Computer?" Please help
-
Hello, Here is my problem: Data was imported into the staging area. After resolving some errors and running the job, I got the data to move over to the next area. From there, data should be moving over into the DW. I have been troubleshooting for ho