Using unstructured TS data and labview variants

I want to create a generic step to pass data from TS to LabVIEW but I'm pulling my hair. Why can't I use a Variant input on a VI to accept unstructured data fro TS? Is this possible? How can I flatten TS data into a LabVIEW Variant? In LV when you need to pass an unknown data type between a VI boundry, you use a variant. In TS you can do the same with an unstructured container. Is there anyway to pass unknown data between the two platforms? Actually correction: A variant output from a VI actually will show up on the TS side if you use an unstructured container but doesn't work the other way around.
I think the TS developers should get together with the LV developers over at NI and actually sit down over a few beers and talk. No I mean really talk. WTF?
Michael Aivaliotis
VI Shots LLC

It seems that there is a limitation that I've come across. When the variant data is passed through the results data of a step it becomes invalid. I've modified the original code you submitted and was able to reproduce my problem. When you run the attached code, you will see a type mismatch error. Also, if you break it and look at the results variant data it does not contain the structure.
Using LV8.5 and TS 4.0.1
Message Edited by Michael Aivaliotis on 02-11-2008 02:12 AM
Michael Aivaliotis
VI Shots LLC
Attachments:
LV Variant2.zip ‏27 KB
2.png ‏21 KB

Similar Messages

  • I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i c

    I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i can't because i don't have the earbuds and i have serches or them. now i am suck with a phone i don't like at all until my next upgrade. this is very dishearten

    1. If you are this unhappy with that phone, and the lost earbuds is the only thing stopping you from taking it back, why do not just buy some earbuds. That way you can get rid of that phone. It all depend upon how much you want to get rid of that phone.
    2. Yet if you are stuck with that iPhone, here is something might help you to control the data usage. By design, iPhones do turn off WiFi when they go dormant. So if a download is in progress and so forth when the phone goes dormant, it will switch to use cellular data, if this setting is left on. Therefore, from multi-sources I have learned that if you keep your iPhone connected to a power source, then it will stay connected to the available WiFi.

  • Extracting Time without using the System Date and Time

    Hi, can I know how to process a task at this particular time eg. 6PM everyday without using the System Date and Time..
    Do I need to use a Timer to get this done or is there any other solution to do this? Can give me a few hints? Thanks in advance =D

    You could use a timer...assuming you had some good reference point when you started so you would know that from your starting point it's now 6pm.
    I thought I saw you asked this question once already...and you were given a similar answer....I think by Sylviae?

  • I read that Lion will not support my Quicken and/or Appleworks.  How am I going to use my financial data and my documents?

    I have read that Lion will not support Quick and/or Appleworks.  How am I to continue to use my financial data and documents?

    I posted this answer to the same question about AppleWorks in the AppleWorks community two days ago.
    I use iWork. The iWork applications - Keynote, Pages & Numbers - can only open AppleWorks 6 presentation, word processing & spreadsheet documents, respectively. They will not open any other type of AppleWorks 6 files or any AppleWorks 5 or any version of ClarisWorks files.
    The third-party application, EazyDraw, can open AppleWorks draw documents. If you still have access to AppleWorks you can copy the contents of draw documents, paste them into an AppleWorks word processing document in object mode (click the arrow in the tool panel), save the WP document & then open it in Pages. You can copy & paste from AppleWorks to Pages but you would have to do it object by object or it will be one big uneditable object. Check Yvan Koenig's iDisk for many AppleScripts he has written to make conversion easier. Most are made to do batch conversions.
    There is nothing other than AppleWorks that can open paint or database documents. Database data can be copied & pasted into an AppleWorks spreadsheet, saved & opened in Numbers or saved as ASCII/plain text & opened in most any spreadsheet, database or word processing program. Paint documents can be saved as one of many different formats to be opened in most image editing programs. I recommend using PICT or PNG for best results.
    For a replacement for Quicken, I've narrowed my choices down to SEE Finance, Moneydance or Jumsoft's Money. I need to work with them more before I make my final decision. Mac | Life suggests SEE Finance as the best option.

  • Due to the requirement of a UUT report with pageheaders, I am looking for solution to print an MS Access report from TestStand. I am using TestStand 4.2 and LabView 8.6.

    Solved!
    Go to Solution.

    You can customize your process model with LabVIEW steps. You can connect to the access database http://digital.ni.com/public.nsf/allkb/1D5EB4DCBD13106486256B9D005E11B0 you can also get the data and format it and print it with the report generation toolkit, or you could see if Access exposes those functions through an ActiveX server. What functionality exactly are you looking for, and at the end of the day how much time are you willing to develop your own customized microsoft access reporting function?
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • How to configure CVC automation process using SNP master data and BI customer master data

    Hi Gurus,
    How to configure CVC automation in MPOS structure technically, using SNP master data in CVC creation such as Product and location details
    and in parallel extract date from ECC to BI customer master data in DP. Where-in a APO BI cube should have only new combinations which are to be validated with ECC and existing combinations in the MPOS structure before creation of CVC in different regions of MPOS.
    Second the automation should also check certain validations of product, location and are part of SNP-ECC master data and are these new combinations.
    Could someone guide us in this process.
    Thanks
    Kumar

    Praveen,
    The short answer is to move the data into infoproviders or flat files for all of the 'characteristic-type' source data; and then copy CVCs from the infoproviders into the Planning area, probably using one or more Process Chains (program /SAPAPO/TS_PLOB_MAINTAIN).
    The long answer is that this is not a trivial undertaking; this could end up being a pretty involved solution.  If you do not have enough BW/DP expertise available locally to create this solution for you, then I recommend you consider engaging external resources to assist you.  I personally wouldn't even consider starting to work on such a solution without first knowing a lot more about the detailed business requirements, and about any existing solutions that may already in place.  An SCN forum is not really suitable for such an answer.  In my opinion, the BBP doc alone would be 20+ pages, assuming no enhancements..
    Best Regards,
    DB49

  • Problems distributing application using Imaging Source USBCamera and Labview 2010 - Imaging Source sdk required?!

    Hi
    I've been having trouble with the Imaging Source camera we own when trying to build applications.
    Everything works perfectly on the dev PC with appropriate sdk installed.
    When I  move to building the application (no errors) and deploying it to another PC the activeX control used to interface with the camera does not appear.
    Instead I get 'Control could not be loaded' in red text where the control should be.
    As far as I can see the activeX component itself is correctly installed on the PC.
    If I install the IC Imaging Control sdk the application begins working correctly.
    If I uninstall the sdk from the dev PC I get the message about needing a license if I attempt to add the ActiveX control afresh to the program (via the activeX container)
    I've posted on the Imaging Source forums and they suggested I try here.
    ORIGINAL POST ON IMAGING SOURCE FORUMS:
    I'm using a DMK 41BU02 with labview 2010 + IC Labview extension.
    The activeX interface for the camera works fine until I deploy it to a PC that does not have the IC Control software installed.
    All I see is a 'Control could not be loaded' message where the activeX box should be.
    I've installed VB6 redistributable to the client PC so I know the activeX workings should be present on the PC.
    If I install IC Control onto the PC the program starts working correctly!
    Has anyone compiled software with Labview 2010 successfully?
    Is there a trick when creating the application/installer spec?
    Thanks in advance
    Dan Acres
    REPLY
    This is correct. I suppose, the LabVIEW setup creating system does not automatically add the used DLL in the "user.lib" directory of your LabVIEW installation path. What does the LabVIEW support say about this, especially in relation to ActiveX controls, that use the Microsoft licensing mechanism?
    The dll he mentions is packaged into the support folder in the application spec.
    I have also manually copied the dll into the location referenced by the software (Labview 2010\user.lib\xxxx.dll).
    This made no difference.
    I've got no experience building these kind of thing into applications so I cannot tell if it is caused by a mistake I've made or Labview or if the Imaging Source softwares have done something wrong.
    Many thanks in Advance
    Dan Acres

    Dan,
    I think I might have a solution for you and others who need to include the imaging source active-x control in a deployed executable program.
    I solved this problem by creating a project that included the dlls and .ocx files required for the Active X Control (these files are in a folder is created once the IC Software is installed C:\Program Files (x86)\Common Files\IC Imaging Control 3.2) and an executable that registers the Active X Control after the main program is installed.
    The simple vi that registered the .ocx control for me upon install of my LabVIEW executable was called RegisterActiveXCtrl.vi. All it does is calls the regsvr32 with the path of my .ocx file.
    I bundled my main program PCDemo_Stratom.exe and RegICActiveX.exe into an installer and set the option to run RegICActiveX.exe at the end of installation.
    The installer must be installed with administrator rights to get the RegICActiveX.exe regsvr32 call to work.
    Hope this helps you/others in the future!
    Dan A

  • How can I use java.util.Date and change display format.

    Hello All,
    I want to use java.util.Date in View Context and in Custom Control Context of Web dynpro java. When i mapped of a Input Field to the java.util.Date then message shows that its not supported. Plz suggest me how to handle Date with different formats ??

    If you always want the user to enter the date in dd/MM/yyyy, you can do the following.
    Goto Local Dictonary -> Simple types in your project and create a type known as "InputDate" (or whatever you feel) of built-in type 'Date'.
    Now specifiy its format in the 'Representation' tab as "dd/MM/yyyy" (case-senstive).
    Now declare a value attribute say "inputdate" in your context with this type and bind the inputfield to this context value attribute.
    This will solve your problem.
    But if you want the user to input date depending on the region he belongs, change the default locale date in Control Panel->Regional and Language Options->Change to English(UK) -> Customize -> Date Tab -> Sort Date Format to dd/MM/yyyy.
    Now clear the cache, delete temporary files and restart the machine. This should solve the problem.

  • Read out from OBD-II Freematic Emulator using ELM327 with USB and LabView

    Hello. I have an Freematic OBD-II mk2 emulator which simulates diagnostics of a real car. I have connected an ELM327 diagnostic device with USB cable to the emulator and a PC. The connection between emulator, diagnostic device and computer works. Now I need to read out parameters in LabView. How do I do it? I tried to use the NI VISA functions, but didn't manage to read out anything sensible. How can I for example read out Engine RPM? Do you have some example code?
    I want to avoid using Automotive Diagnostic Command Set, because it's to expensive for me. 

    Oh yes, I didn't realize what this hardware does.  Some beginners think that a DB9 is a standard interface for a CAN bus, and when they see the DB9 serial port on their computer they think they can just use that.  I was worried this was what you were attempting.
    So yes VISA is the right way to go.  Once you have this device installed and recognized in Windows it should appear as a COM port.  You can open the Windows Device Manager and by plugging and unplugging your device you should see a COM port appear and disappear.  
    Assuming you do launch LabVIEW and go to the example finder and search for Simple Serial.  This is an example VI that can send serial data to a COM port, wait, then read the response.  It can basically work like hyperterminal.  Assuming there are no already made LabVIEW drivers (I haven't seen any) this will be a good place to start.  Using documentation on your hardware you can start to come up with commands to do things like read and write CAN data, by sending the appropriate commands to the hardware over serial.
    http://www.elmelectronics.com/obdic.html
    Depending on what you want to do it might be a decent amount of work.  Of course if you do get anything good and working feel free to post your progress here so others can benefit.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • SAP Service Ticket: Use of due date and traffic light

    Presently our company is not doing much with the traffic light and due date when managing our tickets from the inbox.  If there is someone making use of these, I would like to know what are some your your Best Practices. Ideally we would like to use these to improve our "issue to resolution times". 
    We are using CRM5 and we will be updating to CRM7 in May of 2010.
    Any eperiences that you would like to share are greatly appreciated.
    Regards,
    rr

    Hi,
    We have used this functionality for IC-Agent Inbox. Our Inbound agents can search for  the service tickets in there Agent  inbox. The tickets  are displayed with Due date for the resolution as per the SLA based on the subject and code group. This helps them in understanding of the ticket resoultion time .
    also the Different Symbols are used for the tickets
    1.Tikects which are still within SLA but are not resolved are classified by Yellow Colour
    2.Tickets which have violated the SLA are cassifed with red colour
    3.Tickets which are completed within SLA are classified by Green Colur Symbol.
    Pls. revert if you have any queries.
    Regards,
    Uday Borse

  • Acquiring 4 channels at 10kHz using PCI-6070E card and Labview 7.0. I need to average a signal that is time-locked to an analog trigger. Is their an available vi to accomplish this?

    I am acquiring 4 channels of data, sampling at 10 kHz. I am using a PCI-6070E board. I need to average a biological signal time-locked to an analog trigger that occurs at about 3/second. Is there a vi that will accomplish this?

    If you are looking for a way to do a "retriggerable" acquisition, there is a shipping example called Acquire N - Multi-Analog Hardware Trig.vi that accomplishes this. However, please note that this example achieves this effect by reconfiguring the task for each trigger in software. This means there is a delay between reconfigurations. If a trigger signal comes during this reconfiguration, it will be missed. This delay is system dependent on how fast your computer can execute the reconfiguration code. The 6070E does not support hardware retriggerable acquisitions.
    However, if you are wanting to acquire continuously and then do some post-acquisition analysis, I couldn't find any examples that accomplish this, but it wouldn't be too hard to build one yourself. Y
    ou would probably want to include your trigger signal as an additional input channel. Then once you've acquired all of your data, in software you can scan through the data acquired for the 5th channel and then segment your data according to that signal. I hope this information helps.

  • Why is the data getting eaten up. I had an 8 GB plan since Jan and have done nothing differently since. All of a sudden, my jetpack is using all this data and getting messages saying I am going over my plan. I increased the plan a few days ago and still g

    HELP

    I really wish the forum mods would make it more obvious when it comes to creating post titles vs the content... now we have no idea what we missed out on.
    First of all Jetpacks don't consume data, your personal devices do.  If your data plan is starting to reflect high data usage then one or more of your personal devices are to blame.  That means that for the time being you should get into the habit of powering on and off your Jetpack only as it is needed.  This will curb off the strange or late night download sessions so that they only occur when you are actively using your Jetpack.
    From there its a game of cat and mouse to figure out which device is demanding all the data from the VZW network.  You have to  use isolation techniques in addition to trial and error to find the source of the data leak and put a stop to it.  Sometimes that means bringing the device to a hotspot and letting it finish its updates.  Sometimes that means a new VZW device.  Sometimes that means termination.  Adding more data doesn't help the problem, its a band aid at best.

  • My iPhone is using so much data and I do not know why?

    I do not understand how my iPhone is using so much data

    Have you looked at Settings > Cellular to identify what is using cellular data?

  • Is it possible to convert LabView data into OLE variant?

    Hi. I'm using Activex Data Objects (ADO) to communicate with MySQL. Some ActiveX methods give OLE variant output, with "Variant Type" like "VT_ARRAY|VT_UI1", "VT_UI1" or "VT_BSTR". With some deduction and trial and error is relatively simple to extract data from this OLE variants and convert them to LabView data types. The problem is when I try to input variant data to some ActiveX methods, it almost always give me errors, I suppose because it expects the same type of the outputs, this is: OLE variants. Now, the question is: ¿Is there any way to convert LabView data into OLE variant data? ¿How?
    I've been searching and found a lot of posts about problems when passing variant data into ActiveX, saying that sometimes SAFEARRAYs are needed, sometimes saying that there were some bugs in LV6, giving some workarounds to this bug and saying that it is fixed in LV7.1, but the supposed workarounds don't work and the bug is still present in LV7.1, if it is really a bug.
    I think that if I could put LV data into OLE variant shape I may find an answer and solution to this matter.
    Thank you
    Daniel R.
    UdeC - Chile

    Below I describe how to handle OLE Variants, but I wanted to mention that LabVIEW does have a Database Connectivity toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/6429) that has already created a set of VIs for ADO. You might check that out first.
    However, handling OLE Variants in LabVIEW is automatic. LabVIEW itself has a variant datatype. When you use the ActiveX property or invoke nodes and one of the parameters is an OLE Variant, it is automatically converted to a LV Variant. You can then use the LV Variant VIs (such as "Variant to Data" and "To Variant").
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Arduino due and Labview wirelss serial communication using Xbee

    Hello.
    I am controlling a mobile robot using the Arduino due and labview
    PWM value caculated on the labview is sent to Arduino due and then Due controls the robot.
    These communicate wirelessly by xbee.
    Now, I'd like to increase the communication speed between Arduino due and Labview.
    but, when i set the value of the "Wait(ms)" function to below 10ms  in Labview, communication has unstability.
    so please let me know how increase the communication speed.
    thank you.
    -experiment image-
    https://www.youtube.com/watch?v=oZdMCdHlDhM
    - Arduino source-
    #include <string.h>
    int PWM1 = 5;
    int DIR1 = 4; //direc
    int PWM2 = 6;
    int DIR2 = 7; //dir
    float readNumber = 0;
    float In1, In2, pwm, newtime, A;
    float newposition1 = 0;
    float newposition2 = 0;
    unsigned int Aold1 = 0;
    unsigned int Bnew1 = 0;
    unsigned int Aold2 = 0;
    unsigned int Bnew2 = 0;
    volatile long encoder1Pos = 0;
    volatile long encoder2Pos = 0;
    int encoder1PinA = 8;//Encoder A pin
    int encoder1PinB = 9;//Encoder B pin
    int encoder2PinA = 11;//Encoder A pin
    int encoder2PinB = 12;//Encoder B pin
    int Direction1, Direction2;
    float pwm1_limit=255;
    float pwm2_limit=255;
    float count_old = 0;
    float power1_old, power1_old2, power1_old3, power1_old4, power1_old5;
    void setup() {
    // put your setup code here, to run once:
    pinMode(DIR1, OUTPUT);
    pinMode(DIR2, OUTPUT);
    Serial.begin(115200);
    Serial.flush();
    Serial2.begin(115200);
    Serial2.flush();
    pinMode(encoder1PinA, INPUT);
    digitalWrite(encoder1PinA, HIGH); // turn on pullup resistor
    pinMode(encoder1PinB, INPUT);
    digitalWrite(encoder1PinB, HIGH); // turn on pullup resistor
    pinMode(encoder2PinA, INPUT);
    digitalWrite(encoder2PinA, HIGH); // turn on pullup resistor
    pinMode(encoder2PinB, INPUT);
    digitalWrite(encoder2PinB, HIGH); // turn on pullup resistor
    attachInterrupt(encoder1PinA, d1EncoderA, CHANGE);
    attachInterrupt(encoder1PinB, d1EncoderB, CHANGE);
    attachInterrupt(encoder2PinA, d2EncoderA, CHANGE);
    attachInterrupt(encoder2PinB, d2EncoderB, CHANGE);
    void loop() {
    if(Serial2.available()>0){
    String first = Serial2.readStringUntil('!');//랩뷰에서 받는 2개의 값을 분리하기 위한 소스("!"앞까지 끊고, "@"앞까지 끊음 ex)123!456@을 받으면 123과 456으로 나눔)
    String second = Serial2.readStringUntil('@');//http://stackoverflow.com/questions/29504679/splitting-a-comma-separated-string-through-serial-arduino
    float x = first.toFloat();//위에서 분리된 문자를 float형으로 바꿔줌
    float y = second.toFloat();
    newposition1 = -encoder1Pos; //Encoder signal
    newposition2 = encoder2Pos; //Encoder signal
    count_old = 0;
    float power1 = x;
    float power2 = y;
    if(power1 >= 0){
    Direction1 = LOW;
    else{
    Direction1 = HIGH;
    if(power2 >= 0){
    Direction2 = HIGH;
    else {
    Direction2 = LOW;
    power1 = abs(power1);
    power2 = abs(power2);
    if(power1 > pwm1_limit){
    power1 = pwm1_limit;
    if(power2 > pwm2_limit){
    power2 = pwm2_limit;
    digitalWrite(DIR1, Direction1); //HIGH = back, LOW = forward
    digitalWrite(DIR2, Direction2); //HIGH = back, LOW = forward
    analogWrite(PWM1, power1);//PWM Speed Control
    analogWrite(PWM2, power2);//PWM Speed Control
    String strValue = String(newposition1);//숫자를 문자형으로 변환
    String Q = "!";
    String strValue2 = String(newposition2);
    String stringThree = strValue + Q + strValue2;//문자 합치기
    Serial2.println(stringThree);//Send encoder pulse to Labview
    else {//when Serial communication stop
    float count = count_old+1;
    if(count > 10000){
    newposition1 = 0; //Encoder initialization
    newposition2 = 0; //Encoder initialization
    encoder1Pos = 0;
    encoder2Pos = 0;
    else{
    newposition1 = newposition1; //Encoder signal
    newposition2 = newposition2; //Encoder signal
    count_old = count;
    Serial.println(count);
    //Encoder Read//////////////////////////////////////////////////////////
    void d1EncoderA()
    Bnew1^Aold1 ? encoder1Pos++ : encoder1Pos--;
    Aold1 = digitalRead(encoder1PinA);
    void d1EncoderB()
    Bnew1 = digitalRead(encoder1PinB);
    Bnew1^Aold1 ? encoder1Pos++ : encoder1Pos--;
    void d2EncoderA()
    Bnew2^Aold2 ? encoder2Pos++:encoder2Pos--;
    Aold2=digitalRead(encoder2PinA);
    void d2EncoderB()
    Bnew2=digitalRead(encoder2PinB);
    Bnew2^Aold2 ? encoder2Pos++:encoder2Pos--;
    }

    piZviZ wrote:
    Only data rate working is 9600  between labview and launchpad(arm cortex m4).Where all data rates work between Arduino serial port monitor and launchpad(arm cortex m4).
    Since the only thing that changed is the Launchpad, then that must be the issue.  Are you sure this device can handle more than just the 9600 baud rate?  Are you sure you are even setting the baud rate on this device?

Maybe you are looking for

  • EJB 3.0 entity problem

    I'm tearing my hair out at this one. Using JDeveloper 10.1.3, I am generating EJB 3.0 CMP entity beans from tables. On creation from one particular table, the Column I want to use as the primary key does not get automatically annotated with @Column(n

  • High number of threads and high CPU usage on a single instance

    Without any apparent reason, in some moments of day the website reports an increment of the HTTP Queue Length from an average of 10/20 queued requests to 100/200 and more. In that period of time the Average Response Time increases but the number of t

  • How to create purchase order and sales orders

    Hi guys, i want to create sales order in IDES and i need to create purchase order ECC. depending on that i want to create the idoc for that and i want to send info through xi to the other sys. will u plz any of u can help me in this query. Thanks & R

  • Depreciation Planned Values missing in AW01N

    Hi , we have a scenario in which few assets is not showing any depreciation values for period 9 (i.e. post/planned), instead the depreciation value period 9 is transferred to the period 10. Example: if depreciation value is 100 EUR for all the period

  • DRM problem after PC upgrade

    I've just downloaded an album from the Music store to my PC using the OviPlayer but cannot play it; I am told I have no play rights, no burn rights and no right to copy it to my phone. So not a very succesful purchase!! I have now discovered I have t