FIFO of RT with complex data?

Scenario:

We have a deterministic loop on a target RT (OR PXI)-. The need for speed at 1 Hz only with as less as possible jitter. This deterministic loop will execute measures picoAmp with many units of Keithley6487 (using low-level SCPI works, so all control configuration of measurement devices, then "INIT" (takes about 2 msec per unit) and approximately 300 msec later "fetch" data from the Keithleys (requires approximately 10 msec per device).) This deterministic loop will be a state machine and accept orders from lower priority loops (as zero check, reset, etc. a Keithley or multiple). The measured data will be in the form of double table, so it's OK for the communication between the RT FIFO loops.

However I am wondering how to extend the functionality: measurments a warning might be created by Keithley screw as a string. In addition, an acknowledgement of receipt/feedback some actions performed on the Keithley should be reported to low priority loops again in original form they are strings. The chains are not supported by RT FIFOs, but I found this tip below how convert it (see below).

In order to disseminate all the information correctly, I think that I should send it measure in the form of a double array data, and an array of strings size even that would hold all related SCPI in guard/acknowledgements of Keithley units. Since I can't use cluster either to RT FIFO, y at - it something to 'compress' or convert the type of cluster complex into something RT FIFO compatible?

Right now I think just a workaround solution: I could create two RT-FIFO, double for the data table, and the other using the trick below to convert string (all two fixed sizes). I could convert the array of strings of information Keithley in a single string delimited by commas, I can use the function 'String into byte array'.

All tips and suggestions are very welcomed!

WARNING: I am a beginner in the field of the RT...

During the initialization of the RT-FIFO instead of using an array of fixed size, use any format you need for your data, but before you pass it to the function "Create FIFO", use the "Create new DVR" and what reading use the "Destroy DVR" feature to pick up your package of data of arbitrary length.

Tags: NI Software

Similar Questions

  • Consume a web service from ASP which responds with complex data types...

    Here's my problem - I'm trying to consume a web service from a provider that uses complex data types.

    The starting of the WSDL part looks like this (I have not included all) - named have been changed to protect the innocent:

    " < wsdl:definitions targetNamespace = ' http://domain_name ">
    WSDL: < types >
    " < s:schema elementFormDefault ="qualified"targetNamespace =" http://domain_name ">
    < s:element name = "Authentication" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "0" maxOccurs = "1" name = "User name" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Password" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >
    < s:element name = "AuthenticateResponse" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "1" maxOccurs = "1" name = "AuthOK" type = "s:int" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >

    Since it is a return, with a sequence of complexType, I expect an array or a structure returned, but instead I just get the value of "AuthOK" and no way to get something else.

    Here are the ways I tried to call it:

    < cfscript >

    WS = createObject ("WebService", "https://WSDL_URL");

    WS_ret = WS. Authentication (name of user = "username", password = "password", token = "");

    < / cfscript >

    < cfdump var = "" #WS_ret # "/ >"

    < cfinvoke webservice = "WSDL_URL" method = "Authentication" returnVariable = "WS_ret" >

    < name cfinvokeargument = "userID" value = "7253320" / >
    < cfinvokeargument name = "password" value = "ctpjxs3" / >
    < name cfinvokeargument = "SecurityToken" value = "" / > "

    < / cfinvoke >

    < cfdump var = "" #WS_ret # "/ >"

    Any ideas how I can get the other variables in the sequence? I have other calls after that have a greater amount of variables, and as such I can't use without being about to get more than the

    You can try using the function GetSOAPResponse to review the XML code you receive.

    'GetSOAPResponse '.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=functions_e-g_59.html#50 54378

    "Troubleshooting SOAP requests and responses.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_27.html#1222 070

    As for the question of docs, I suspect mediocre edition is at fault.  I assume that the web service is supposed to have an echoStruct method but this is unclear.

  • Working with complex data types in web services...

    Hi all
    I have created a Web service and created an interface for this in the ADF. Now that my web service returns a complex data type, I followed the steps in this article "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" and it works very well, my results are also displayed. But the only problem is that I get a warning "Houston-25009: cannot create an object of type: java.util.calendar value: 2008-09 - 23 T 23: 51:30.000 + 05:30 ' and if I can replace all the java.util.Date oracle.jbo.domain.Date then I get a warning" Houston-25009: failed to create an object of type: oracle.jbo.domain.Date with the value: 2008-09 - 23 T 23: 51:30.000 + 05:30. Now I am unable to understand this, but I think it's a problem of data type mapping, but do not know how to remedy this.

    Everyone knows the wayout?

    Concerning
    Lokesh

    Hi Lokesh,
    I have been troubled by the same question in the past. The problem is that the entrants is a format for dateTime xml adf trying to analyze the underlying java object. Java.util.Calendar, java.util.Date, or oracle.jbo.domain.Date to get a date in adf when scanning automatically your incoming xml file. See this thread on the forum for more information jdeveloper Re: how to deal with xsd: DateTime to webservice in ADF? The answer that gives Frank Nimphius is correct but I used option 1 option 2 should also work.

    Kind regards
    André

  • Publish the webservice with complex data Type

    We use CF7 (yet) and needs to publish a webservice that takes as input a complex query with a struct of struct table table structure... etc. From what I see itcan can't do in CF7. Can it be done in CF10?

    Input desired sample webservice.

    ========================================================================================== =============

    " < = xmlns:soapenv soapenv:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:ther =" " http://Hi/there "xmlns:web =" " http://WebService.CFCs.common.things ">

    < soapenv:Header / >

    < soapenv:Body >

    < ther:savethings >

    < ther:Thing >

    < web: EDate >? < / web: EDate >

    < Id: web >? < / web: Id >

    < web: trick >

    < web: EType >? 1 < / web: EType >

    < value: web >? 1 < / web: value >

    < / web: trick >

    < web: trick >

    < web: EType >? 2 < / web: EType >

    < value: web >? 2 < / web: value >

    < / web: trick >

    < / ther:Thing >

    < / ther:savethings >

    < / soapenv:Body >

    < / soapenv:Envelope >

    CFC in the sample

    ===============

    " < cfproperty namespace = ' http://Hi/there "style ="document"> "

    < name cffunction = "savethings" displayname = "save data" returnType = "digital" output = "false" access = "remote" >

    < cfargument = 'Thing' type name = "Thing_Type" required = "true" >

    < cfset var tmpVal = "" >

    < cfreturn 1 / >

    < / cffunction >

    < / cfproperty >

    Thing_Type.CFC

    ================

    < cfproperty >

    < name cfcomponent = "Id" type = "string" >

    < cfcomponent 'EDate"type = name = 'date' >

    < cfcomponent 'Thingy' type = name = "Thingy_Type" hint = "" >

    < / cfproperty >

    Thingy_Type.CFC

    ================

    < cfproperty >

    < cfcomponent = 'Value' type name = index 'string' = "" >

    < cfcomponent "EType" type = name = index 'string' = "" >

    < / cfproperty >

    < cfcomponent 'Thingy' type = name = "Thingy_Type []" hint = "" > does not work in CF7, CF10 works? Or did something else's work?

    It works on CF10.

  • For the complex data type, how to generate the Dll with compatible interface to C/C++

    Hello

    I used the Labview FPGA module to develop test equipment. Now, I need to write a driver that is to be a Dll with compatible interface to C/C++ for this equipment. So that my client who is familiar with C/C++ can call the driver without any study on labview. But I had a few problem on how to convert labview for C/C++ data complex data type. To clearly explain to my question, I have attached a simple example. (see attachment) I try to generate a Dll for the attached example VI and get the the function prototype at the head of the files as below:

    ' void OpenFpgaReference (LStrHandle * RIODevice, TD1 * errorIn, LVRefNum * FPGAVIReferenceOut, TD1 * errorOut).

    As you have known, the type of data "LStrHandle * RIODevice" and "LVRefNum * FPGAVIReferenceOut" Labview data format are. C/C++ do not have this kind of data type and can not reconige it. As a result, I can't call the Dll of C/C++ programming language. How to convert these two data type of labview for the C/C++ compatible data format, and then build the Dll? Anyone know about this?

    The answer is really apprecaited! Thank you in advanced.

    Ivan.Chen wrote:

    As I found in the following article:

    http://digital.NI.com/public.nsf/WebSearch/FB001AA027C8998386256AAD006C142D?OpenDocument

    LVRefNum is the name of resource of LabVIEW VISA or refnum, and "it is impossible to convert LabVIEW VISA name of resource or refnum VISession valid ID."
    This means that external code modules can not access & control the session VISA which is open by labview. But for my purposes, I will not attempt to access this VISA extenal code(C/C++) session. I just hope that save this session VISA in the external code once I opened it in Labview dll; and pass it to the labview dll when needed. While I have not need to login again when I need to control the device. Is it possible to do?

    A LVRefNum is really just a single int32 value. Its meaning is useless for other environments than those who created it so that you Michael not any what in C/C++ caller but pass it back to other functions in your DLL, but this often isn't a problem at all.

    You can take the following statement of the LabVIEW extcode.h headers and add them to your delabviewed header files to make it work in such a way.

    #define Private (T) typedef struct T # _t {void * p ;} * T}

    Private (LVRefNum);

    The LStrHandle you must set a standard C string instead in your export DLL and document what is the size of the string buffer should have if it is an output parameter.

    TD1 error clusters should also be divided into their parameters (C compatible) separate for all items or just to the left of suite entirely.

    Rolf Kalbermatter

  • complex customer KSOAP of web service with the data type

    I had created my client to the web service using ksoap sample. This works very well in the Simulator.

    Now, I am creating the web service to the complex data type client. For the same thing, I want any heel KSOAP generator tool. Please suggest any tool. If this type of tool is not available then please guide me standard procedure for the management of complex data types in ksoap.

    help will be appreciated.

    Have you tried the SUN WTK stub generation tool?

  • Types of complex data in CVI2015

    Hello...

    The CVI2013 compiler (not the variable view) supported the use of complex data types, see, e.g., here.

    CVI2015 now gives an error: complex types are not supported - if the build fails.

    What should I do? (the compilation that compilation with the C99 extensions option is enabled)


  • Creation of complex data signals

    Hello

    I have 2-channel audio that contains the parts real and complex of an I / Q wave. I'm trying this demodulation using block MSK modulation toolkit, but I have trouble accessing the i / Q stream in the right type. The MSK block requires a complex waveform input, but after the construction of this waveform complex, I discovered that he really had to a 'Waveform.ctl of complex data.

    How can I get my data in the right format? I can't find a block which generates this 'Waveform.ctl complex data.

    I have attached a picture of the situation.

    Best regards

    Jan

    Try this

    Right-click on the entry of complex waveform of this Subvi node MT demodulate MSK. Click on 'Create' > 'Constant '. Now remove the wire between the newly created constant and the Subvi. Adds a set of cluster name. Wire the constant in the top of the boot of cluster name. Left click and pull on the bottom of the boot of cluster name until 3 entries appear. Click with the right button on each entry and use the item select to get the entries you need.

  • How to record a little complex data in json?

    Hi all

    I want to use json to store complex data a bit. I checked the sample application code. It's too simple.

    The data are as follows:

    {

    'day': 'ddd ',.

    'type': 'xxx ',.

    'name': "qqq"

    "amandine":]

    {'name': 'sss', 'set': 'ddd', 'time': 'ddd'},

    {'name': 'eee', 'set': 'fff', 'time': 'fff'},

    {'name': 'qqq', 'set': 'ggg', 'time': 'ggg'},

    {'name': 'aaa', 'set': 'vvv', 'time': 'vvv'},

    {'name': 'zzz', 'set': 'ccc', 'time': "ccc"}

    ]

    }

    I am confused with QVaraintMap, QVariantList and QVariant and don't know how to use them properly.

    PS: I'm new to json. I used to use MySQL in my work.

    Thank you.

    brad_qqq

    The simplest approach is the following:

    JSON object (something wrapped in {}) will be a QVariantMap

    List of JSON (something wrapped in []) will be a QVariantList

    Everything else (numbers, strings, boolean, etc.) will be a QVariant

    Everything will be a QVariant when initially mapped out, and you must check the types with canConvert (Type) and use the methods toXXXX, that all return values (http://qt-project.org/doc/qt-4.8/qvariant.html) to get the respective types and use the data.

  • Ksoap2 complex data types

    I'm moving the xml as a parameter in a Web service, however it doesn't seem to work.

    The Web service is a service of .net, the required parameters is a group of data.  It is built in xml that I put in a string and then add it as a parameter to aid,

    SoapObject rpc = new SoapObject(serviceNamespace, _soapAction);rpc.addProperty("paramname", xml);
    

    I have no problem to send the basic parameter types, the type complex seems to be incorrect.  Someone else has managed to use complex data types when communicating with a web service using Ksoap2?

    Use SoapSerializationEnvelope addMapping with namespace, the name of the class (as in the wsdl document) and class (getClass() or .class) itself.

  • How can I create a query with the data control to the web service?

    I need to create a query with the order of web service data, WSDL, it is query operation, there is a message of parameter with possible query criteria and a return message contains the results. I googled but can't find anything on the query with the web service. I can't find a criterion "named" to the data control of web service as normal data control. Blog of Shay, I saw the topics on the update with the data of web service command. How can I create a query with the data control to the web service? Thank you.

    Hello

    This might help

    * 054.     Search form using control data WS ADF and complex of entry types *.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

  • See the time with the date in the cell?

    How do you not see time with the date in a cell? I tried all the settings I can find but without success.

    Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6

    I don't want to see that 12:00:00 AM

    Hi Russ,

    Inspector to format > cell, the parameters as shown below:

    Kind regards

    Barry

  • Print an e-mail with the date of the transmission

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    anniesol said

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    Problem is now solved! Choose the print option 'other measures' dropdown list allows email to be printed with the date of the shipment.

  • Cannot create a new startup with my data disc

    Hi guys, here's the problem: when I try to create a new startup with my data disc, I can't boot from this drive.

    The startup progress bar takes forever and then I see a white circle with a line through it. ("Prohibited" / "Ghostbusters" sign.)

    In verbose mode, it hangs on "break pci: SDXC ' for a while, then it clears the screen and watch the Circle + line with 'still waiting on the root device' at the bottom left.

    I can't boot into single user mode. Quite simply, there is the same thing as verbose mode. Even in safe mode. So I have few options for debugging. I did a SMC reset, no change. Is there anything else I should try?

    Additional information:

    -I'm trying to start off a new SSD that I bought, currently in a USB 3.0 enclosure external. I know that all is well with the speaker because I started off of him several times in the past. I know that all is well with the reader, because I tried to do the same process with another drive and it doesn't work the same way.

    -J' cloned my current boot drive to the new drive with SuperDuper!, Carbon Copy Cloner and I also did a clean install of El Capitan using recovery mode. The new facility has worked well until I migrated my old data.

    - So there must be something in my data which are striated throughout this process. I don't know what it is maybe or how to track him down.

    Any thoughts are appreciated!

    Have you tried the PRAM reset? Restart while pressing control + command + P + R until you hear the boot chime at least twice.

  • iCloud full - found two backups with different dates

    My 20g iCloud storage is full.  When I went to manage my data, there were 2 backups of my iPhone with different dates.  Can I remove 1 of them (the older one I guess) without affecting my current phone?  I guess that's when I upgraded my iPhone 4 to 5

    Of,.

    Yes, as long as you can identify with certainty the backup latest.

Maybe you are looking for