How to read and write FileGlobals with TestStand ActiveX control in c#

Hello everyone,

I'm trying to read and write FileGlobals with TestStand ActiveX control in c#.

I tried with:

SequenceContext contextOfTraceMsg = e.thrd.GetSequenceContext (0, out frameId);

var filepara = contextOfTraceMsg.FileGlobals.GetSubProperties ("ProjectParameter.NestIsTested", 0). GetValue (1); (NestIsTested is an array of Boolean)

but without success.

Can someone tell me how to do it right?

Thank you in advance!

Concerning

0049 wrote:

Hello Doug,

Thanks for the reply.

It works to read a Boolean value. How to read the table of Boolean?

Kind regards

For a table you can either do:

(1) myarray [] bool = contextOfTraceMsg.FileGlobals.GetValVariant ("myarray", 0);

Or

(2) using GetNumElements() and GetValBooleanByOffset().

-Doug

Tags: NI Software

Similar Questions

  • How to read and write attributes using the API?

    I'm trying attributes of access (read and write) of the following:

    SequenceFile

    Sequence

    The sequence steps

    When you look at the documentation of the API, TestStand, the following functions are available:

    PropertyObject

    Properties

    Attributes (read-only)

    HasAttributes (read-only)

    Methods

    DisplayAttributesDialog

    I tried to use the SetValString and GetValString commands using the reference of the attributes, but it does not seem that the data is stored in the file.

    I can't find the following information in the TestStand API:

    1. Where the attributes are stored in a property object?

    2. How can we access through the API?

    No advice and no information is appreciated!

    You must increment the number of changes to the file after that editing the sequence editor (or UI) won't refresh or mark the file, as amended. Use sequenceFile.AsPropertyObjectFile (). IncChangeCount().

    SequenceFile attributes are stored in the SequenceFile.Data, not the object of SequenceFile object. You can change them in the Advanced tab of the properties of the file sequence dialog box.

    Hope this helps,

    -Doug

  • How to read and write files .exe to soa using the file adapter?

    Hello

    I have a requirement, that I need to read and write files .exe to soa using the file adapter.

    Can someone help me.

    Thanks in advance,

    Divya.

    Hi Vijay,

    I tried with opaque. It works for me.

    Kind regards

    Adkins

  • How to read and write a text file to the folder of the user preferences?

    I'm trying to code for the user to record the plug-in, the first time that the user opens Acrobat after you have installed the plug-in. I want to write a file of registration of preference of the user folder access later to check that they are already registered.

    Is there an easy way to do this? I wrote the code to access the preference of the user folder to search for the file, but I have not been able to code for the write file. All I've found is how to write a PDF file.

    Any suggestions?

    Gregory

    ASFileRead/ASFileWrite

  • Problem with digital I/o read and write in CVI

    I have a PXI with PXI 6225 Renault installed box. For some uses, I wired 4 lines of digital port 0

    for its 4 top lines so that the output digital on bottom lines can be read as a digital input on the top lines.

    In the CVI program I have set up two input and output of tasks as follows:

    Enter task:

    DAQmxCreateDIChan (digitalInputTask, "PXI1Slot5/port0 / line4:7","InputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming (digitalInputTask, ' AI/SampleClock ", 4000, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 2000" ");

    Output task:

    DAQmxCreateDOChan (digitalOutputTask, "PXI1Slot5/port0 / line0:3","OutputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming(digitalOutputTask,"ai/SampleClock", 4000, DAQmx_Val_Rising,DAQmx_Val_ContSamps, 2000));

    DAQmxCfgOutputBuffer (digitalOutputTask, 2000);

    I also started a task of analog input to ensure that the analog "IA/SampleClock" sample clock is running, and I check

    as I interpret the correct analog data of my analog lines.

    Here's the problem:

    I write 2000 identical samples of zero for the 4 lines (port0/$line0... (3) with the following command:

    DAQmxWriteDigitalU32 (digitalOutputTask, 2000, 1, 10, DAQmx_Val_GroupByChannel, sampleArray, & writing, NULL);

    After a while, I try to read the 4 lines (port0/4... (7) using the:

    DAQmxReadDigitalU32 (digitalInputTask, 2000, 10, DAQmx_Val_GroupByChannel, scanArray, 2000, & read_num, NULL);

    but the values returned in scanArray are nil!

    If I replace the digitalInputTask by digitalOutputTask in the above function call, I get the good samples rewritten

    (do not know how the 4 lines below that are configured in output mode can be read back! could it be just read buffer?)

    I don't know that the hardware configuration is correct, because when I try to emulate this feature in Labview, it works.

    (I use an output data acquisition assistant to write down the 4 lines of port 0, using a digital wave of entry, then)

    top reading 4 lines with the help of one Assistant DAQ to enter a digital waveform VI.

    In another test, I have 4 lines below in CVI, put on stop my CVI program, start a simple Labview VI to read from

    upper 4 lines and I can see the values I just write in CVI).

    Any idea what could be causing DAQmxReadDigitalU32 to read only zeros in CVI?

    I compared my settings in CVI with parameters DAQ assistant in Labview and tried to make them identical, but nothing helped.

    Thank you

    Try to use these examples to see if you can read and write in CVI

  • with third party applications, I can read and write on the external drive HFS + for windows?

    Hello

    I see with third party app I can read and write to external disk NTFS on the mac computer.

    then othrwise, then I can read and write on extern hardrive HFS + with application of third party windows computer.  So who are the best third-party applications to read and write HFS and if they are free of charge on the external drive?

    Thank you

    Johan

    Now that I understand your goal, check out http://www.ufsexplorer.com/rdr_hfsp.php but your YMMV.

  • I read and write English but my husband reads and writes in Russian. How can I activate the taskbar of the Russian language?

    My husband is from the Russia.  It reads and writes in Russian and I'm having a problem turning on the Russian keyboard.  I went many steps of the menu start, Control Panel, regional and language options, languages, details.  I added the Russian.  under the Russia, there is a symble of a keyboard than Russian (typewriter) Russia and the United States.  acorrdign at every stage, there should be a tab in the bar of tasks showing that I can switch bewteen eglish and Russian.  who does not come to the top.  I have check the tab bar of language and made sure all the boxes are ticked, but I still can't find the language bar. what I am doing wrong?

    I don't need a translator who is the other thing that I still find.  I need for my husband who bought the computer to be able to type in Russian, his mother tongue.

    Thank you for your time,

    Heather

    See if that helps you

    http://Office.Microsoft.com/en-GB/Outlook-help/switch-between-different-languages-by-using-the-language-bar-HA010362283.aspx

  • Lsass.exe on Vista constantly reads and writes three times. How can I stop this please?

    After starting calm down.  Task Manager indicates that LASS. EXE continuously reads and writes.  It shows three readings and three written a couple of times per second.  The readings are still 204 bytes and the writing are always 132 bytes.  This action stops.

    I searched the web for answers and tried all the suggestions and nothing worked.

    Any ideas please?

    Hello

    I suggest you go through the link that talks about a similar problem.

    http://social.technet.Microsoft.com/forums/en-us/itprovistasecurity/thread/03638144-f4da-4349-B246-a27ec3727e70

    You can also post your question to:

    http://social.technet.Microsoft.com/forums/en-us/itprovistasecurity

  • Satellite M30X-165: Mat * a UJ - 831 S is not read and write any DVD

    Hello

    the next problem is sticky on the laptop Satellite M30X 165 with the burner Mat * a UJ - 831 S: it can read and write CDs, but is not able to write them to DVD or even read some of the ones I've burned and also read in the same drive. Even at the start of the DVD, it does not start from the recovery DVD, the player starts and slows down very quickly.
    Without doubt, it must be put at the service of repair or someone has other suggestions?

    Could you please tell me how long the repair takes (I know what it takes to install the desktop temporarily used).

    Thank you

    Post edited by: DerSeher
    Using burning software, it detects the DVD, but invite you to an "error of calibration power (037303).

    Hello

    If you cannot use recovery media, I guess that the drive is defective and must be replaced.

  • Satellite M100 - can only read and write CDs.

    Hello
    I use a Satellite M100 Version PSMA0L-18203E on windows xp sp3. My DVD writer model is HL-DT-ST DVDRAM GMA-4082N.

    The problem is an am able to read and write Cd but when I insert a blank dvd, it displays "Please insert a disk in the drive" so that I am able to use Recovery DVD ROM from Toshiba with no problems. Please help me.

    Hello

    As wrote Al - Ex what program you use to burn discs? I have good experience with Nero and CD Burner XP. Can you test with one of them, please?

    In addition, you must also use high quality media. I have good experience with the types of DVD-R Verbatim and TDK.
    What DVD's that you have?

  • TCP Read and Write at the same time

    Hello everyone,

    I have a question about parallelism in TCP connections.

    I know that it is possible to read and write on the same connection ID.

    So, if you ReadTCP and WriteTCP block each other, if you use the same TCP connection ID?

    Or to request more precise if I run two while loops, in parallel, with one end by calling WriteTCP and the other called ReadTCP.

    one of the delay of loops (or block) will be the other if both loops call their VI TCP at the same time right?

    The system is Windows 7 and Labview 2012.

    Kind regards

    Sebastian

    They are perfectly parallel.  Just write in one and read it from the other.  There is no conflict.

    See My TCP articles for more details.

  • Read and write to a port

    Hello

    I tried to read and write in a port using .net 3.5 example codes that are supplied with the controller. Examples\DotNet 3.5\Digital\Generate Values\Write Dig channel and channel digging reading. Regardless of the value that I write I always get a positive output reading and all the bits are high on the channel. To reporoduce the problem simply run two programs at the Dig sametime writing and reading Dig Channel channel. Set the port to Dev1/Port0 / line0:7 in the two tests and write a negative value for any or all channels. When you read the values, the values are all positive. I tried using the example of code in VB and I get the same results. Please note that the regulator is working properly when I run the test, measurement and automation. I looked at the Forums and I found the post to:

    http://forums.NI.com/T5/Measurement-Studio-for-VC/basic-questions-about-PCI-DIO-96/m-p/242296 The name of the article is basic questions about PCI-DIO-96 and it says that the values written should persist. Any ideas on what I can do wrong?

    Thanks, Magued

    This is a LabVIEW and an example VB that illustrate the use of tristate to switch between the input and the output. The output setting will allow you to drive the liine and re-read what you wrote. The read setting will allow you to read an external digital signal. Please excuse the fact that these are examples of rough and informal.

  • Read and write of series Basic can't read a second time

    Hi, I'm developing my own VI to write and read an iRobot Create.  I based my vi off the coast of the basic series example write and Read.vi I found (on LabView 8.0).  When I run my vi I am able to read information from the beginning to create, but I am unable to read a second time (after a write command).  The second reading should be the same as the first (I checked with the help of another program that is linked to the creation).  I am new to using LabVIEW and I was wondering if there is a common mistake made by trying to implement a series of read and write.

    Thank you.

    First of all, to debug your orders with a program such as Hyperterminal. If it works there, then it should work in LabVIEW. You may need to send a carriage return and newline (\r\n). Your code is not currently set up to do.

    Only do something when a button is basic programming LabVIEW. You can use a simple while loop with a façade that Boolean connected to an instruction box. If you have anything other than the basic version of LabVIEW, you should use the structure of the event. Look at the examples that come with LabVIEW.

  • GPIB read and write commands of Agilent 54642 oscilloscope

    Dear friends,

    I would like to acquire a waveform of Agilent 54642 ocsilloscope in the LabView 7.1 via GPIB program. Can anyone mention the GPIB read and write commands for the oscilloscope even?

    Furthermore, on the subject of the LabView program, is it fair to place blocks to write two GPIB followed by a single GPIB read block (everything series), as well as an indicator, in order to check the waveform in LabView?

    Kindly help me with your answers...

    Look forward to y...

    Thank you very much in advance...

    Marion

    Download the 7.0 driver that Albert gave the link to, make sure that you have installed NI-VISA and run the getting started sample which is part of the pilot. If it does not, please elaborate on the error codes that are reported.

  • Help blackBerry Smartphones... 8530... language... Here you are... Add... Read and write Chinese English to the Japan

    Helooo I want download link and... A solution language how to add input more...

    Read and write in Chinese English language at the Japan in my blackberry curve 8530... OS 5.0.0. Bundle... 1675...

    Thank  You......................................

    Hello and welcome to the community!

    Please start by these KBs:

    • KB05305 Location of support for BlackBerry smartphones
    • KB17208 How to install and configure the language pack of East Asia on a BlackBerry smartphone

    If you get stuck somewhere, please be very explicit (the exact KB, the exact step, etc.) when you come back to ask for more.

    Good luck!

Maybe you are looking for

  • Satellite A100-204: I'm looking for a new battery

    I'm looking for a new battery for my laptop, but I have no idea where to find... And yes I already searched on google and most of the time that it brings me to canada, but I don't know battery that fits mine. I ordered once, but it didn't fit. They s

  • Question about X 240 internal battery

    Hello I'm new here. I bought a 240 X and when I was selecting options, I don't think I'm going to need the extra battery life so I don't choose NO internal battery. My question is - is it possible to install an afterwords of battery internal? Thank y

  • How to open a library in FCP 10.2.2 when he is on the external drive?

    When I try to open libraries on external drives, I get the message that "the operation could not be completed. Read-only file system. These libraries were previously available and operational when I was with an earlier version of FCP X.  They do not

  • DRIVERS HP PHOTOSMART 7828

    need drivers for HP PHOTOSMART 7828, model no: Q6335L for WIN7

  • Alienware 17 R2 in brick after that Dell does not provide support

    Hi all After having had several contacts with the Alienware support by phone about a is not fan of work that I have posted my question in this forum on 29 November. Alienware support did not provide a potential solution since 3 days ago said fan prob