Subvi in hand waveform

Following this topic: http://forums.ni.com/t5/LabVIEW/show-graph-that-is-created-in-a-subvi/td-p/672249

I get an error when connecting my Ref server of vi to the Subvi.  they are of different data types.

Then you can try to do otherwise.

moderator1983 wrote:

Otherwise, you can also try to create the reference (for the Subvi) on the graph of the main VI (time Signal) control:

1. first create graphic reference of the time Signal.

2. then right-click on the reference and create the control.

3. now use this command in the Subvi.

If it is not also help, share code (Main and Sub screws)...!

Tags: NI Software

Similar Questions

  • How to transfer data from waveform for a sub vi

    I'm seeing plots in a Subvi when I want. In my test, the waveform in the main VI display several plots of channels as I expected, but the Subvi shows only a single parcel. Joint programme.

    I can simply convert the dynamic data in table 2D Digital to display several plots, but I will loss the timestamps I really want to show in the plot than in the main program.

    Thank you

    hrwang wrote:

    Thank you. I tried to follow your instructions.

    In fact you have not.  You did not create an indicator of waveform bays to copy onto the Subvi bays of waveform control.  See attached Subvi that I modified.

    However, it still shows a plot in the sub vi and plot begins time 0. The new program is attached.

    This is because you have created a table 1 d double which means only 1 field and no data delay

    I think that the 2D table are necessary to have several plots.

    No. a table 1 d of waveforms can be used for several plots.

    I want to run the program for the day, so it is convenient if I see the date/time in the x axile, like the one in the main program, instead of from the time 0. Dynamics of the data type is complicated and I don't want to deal with its structure, that's why I use a waveform as a control chart, hoping the information all dynamic data is transferred to the Subvi plot properly. Apparently, it did not work.

    If you don't want to use dynamic data, then do not use the DAQ assistant.  The DAQ assistant, is what gives you dynamic data.  I see that you did to a conversion of DDT in a table 1 d of waveforms, which is good.  Now you just send this table 1 d waveform to the Subvi.  Because you used a table 1 d of doubles in the Subvi, you have a conversion point.

    All solutions?

    Thanks again.

  • Addition of waveform with adding block - element wise or interpolated or...?

    Hello

    I see the block addition is beautifully overloaded to overlay waveforms and I would like to know how it works. Specifically, I want to know if using matrix addition (i.e. simply by adding the elements of each waveform) OR is he among the waveforms by interpolation and resampling to the points of time corresponding to the other or another method.

    I know that the sampling interval (dt) should be the same for both waveforms added, so I suspect it is using matrix addition, but don't know.

    To add a bit of context, I use this to add two waveforms of sampled data of a sinus waves up to 100 kHz. Sampling faster than my DAQ can exploit the difference in the two waveforms of departure time (t0) is an important part of the period. At this point, I think that the approach by adding simple matrix will not work.

    Thanks for any idea that you can give. See you soon

    -ron

    Hi Ron,

    I don't think there is a VI that does it for you. However, it should not be too difficult to program yourself. There's a Subvi, called 'Get waveform components' that allows you to access the table variables (Y) t0, dt and the data type of waveform data. You can subtract the two start times to find the difference between the two waveforms (DAQ readings put a timestamp on the data). Then you can complete the table operations to create a lag in the data. A few other useful subvis are "Get the subset of waveform" or "Index Waveform Array", you can use depending on how you want to set up your program. Let me know if you need help with this programming. Good luck!

  • Main VI is not up-to-date data Subvi


    My guess is that you have a while loop in your Subvi. If so, the essential is not supposed to be updated the Subvi is running. It will only get updated when the Subvi ends. This is the basis of dataflow. If you have the front of the visible Subvi, why do you need to show the same data by hand. Depending on how you call your Subvi, you can't do anything with the hand until the Subvi ends anyway. It is also fundamental data streams.

    You could explain what exactly you want the Subvi and hand to do. Attach the hand and Subvi

  • How can Global variables can be shared in Subvi?

    I have a question about global variables. not found an answer in the Forum.

    I want to share a few global variables in the different Subvi: starting Subvi first hand.

    define variables, then in second vi, use these variables.

    In my test, if I run LabVIEW, everything is ok. If building an exe, the first sub - VI

    cannot be exited. If the output, the value of global variabels is deleted.  I don't know why?

    Can I use like this? Please help me.

    Thank you.

    attached is my main application. For the release of sub - VI, just call FP. Close.

    The way I underrstand problem:

    There is a main VI (main.vi) that will successively two different screws through a VI reference.

    Let's call them A.i and B.vi. The two access to the same global variable.

    The main VI does not have the global variable.

    At first is short, then closes. B later runs and is expected to access the global variable with the data left by an earlier. I haven't explored it, but I guess that once A ends, the global variable also leaves in memory, forgetting everything

    My suggestion is to place an instance of the global variable in the main VI, forcing them to remain in memory as long as the main VI is running. Apparenlty, this action solved the problem.

    mmm2006 wrote:

    Can I update a global variable in main vi? There are a lot of adjustment, and I don't want to display them.

    I guess it will be sufficient to place the global variable in the main VI to keep in memory. There is no need to read or view its content. Another solution might be to specify the global variable as 'start VI "? I have not tried.

    These are just speculation, because I almost never use globals so my experience is limited. I probably would have A.i write the data to a file B.vi later access, for example.

  • How to remove header, time and date of the Subvi "export waveforms to the spreadsheet file?

    I use 'Export waveforms for spreadsheet File.vi' in order to export the labview data into a file.

    However, the default format is the following:

    waveform [0]
    T0 13/11/2009 14:54:34
    Delta t 0.001000

    time Y [0]
    2009-11-13 14:54:34 - 2.441406E - 3
    2009-11-13 14:54:34 - 2.441406E - 3
    2009-11-13 14:54:34 0.000000E 0

    Yet I am interested in only the actual data without header or stamp date and time, for example:

    -2.441406E - 3

    -2.441406E - 3

    0.000000E + 0

    Could someone help me please with the adaptation of the Subvi to my needs?

    Transposes set to true.

  • waveform compared with table 1 d of waveform for a Subvi connection

    Hello

    I have a Subvi I change so it can accept an entry of type of waveform (it used to take a double 2D array). I created the type indicator 'waveform' on the front of the Subvi and connected according to terminal diagram. However, the block of acquisition DAQmx I need to connect (from the parent company VI) generates a table 1 d of waveform, and that's why it the two are not compatible. Can someone tell me please how to make the indicator in a table 1 d the type of waveform, rather than just a type of waveform?

    Thank you
    Claire.

    Place a container on the front table, drop the control of waveform inside and connect to the connector pane. See how far you get.

  • Load a component of a Subvi in secondary of a hand of Vi

    I know it's possible to load all the Subvi in the subgroup of experts, however, is possible to load a component or an individuall chart a subvi in the vi secondary main iti?

    I think you can stop it by focusing on the "sub", just put any VI in a secondary school. You can just put a VI in a secondary, nothing else.

    Your problem is maybe just for the redesign of your initial VI to also have a sup Panel which includes a VI showing that your chart VI you will be able to put in any school of different voluntary initiatives.

  • VI of hand stops fucntioning after as I open and close a Subvi to a structrue event.

    Hello

    I try to open a pop up vi of an event. I've been struggling with this for a while now. When I open a pop up vi and close it, the main vi stops correctly.

    I narrowed down it to the fact that the event that reminds the Subvi is never ending when the Subvi is closed.

    The attached picture is an example of what I'm doing. When I run the present, I never see the dialog box indicating "here.

    may be useful as an allusion to the problem...

    This does not work correctly if I run the vi, click to open the Subvi, close the Subvi (here the main vi is not working properly, do not click on anything whatsoever) then stop the main vi, run the main vi has even once, open and close the Subvi and then I see the dialog 'here '. , and my main vi works correctly.

    Thank you

    J

    What actually happens, is press you the Ok button and your panel closes and you set the stop 2 true.  OK, it's fine except that the stop Terminal 2 has already been read during this iteration of the loop.  So the loop will go again.  This time, it is read stop 2 to a REAL, but the structure of event needs an event before the loop can fill.  But the façade was already closed and you're stuck.

    As Dennis said, get rid of the 2 stop and just wire the TRUE constant straight out of the case of the event.  Wire a FALSE for all other cases of event.

  • Using an algorithm of scaling of the graph of a waveform within a Subvi invisible?

    Hello

    I have a little problem with the automatic scaling of the graphs.

    First of all:

    For automatic scaling of the axis LabVIEW uses the set of data that was sent to the curve. If I zoomed in on the inside, the automatic scaling always uses all of the data even if it is not visible at the moment. To resolve this problem, I read on the positions of the zoom sliders and values min/max within this area of research. This method works.

    Second:

    Now, I want to the scale of the axis using the specified min/max values. Labview graphics using a special algorithm of scaling according to the format of the axis. I want to use it, so my idea was to send the cut data and format of the axis to a Subvi. Inside this Subvi, I use a waveformgraph to display the cut data and run an automatic scaling once. Now, I read the values min/max of the graph and set this values on the main chart, I see in my program.

    The result is, my main chart shows the data zoomed area in maximum size (to the axis scale) and hole data is always available, so I can still pass the data in the chart or others.

    Problem: The sense of scale with a grpah inside a Subvi only works if the chart inside the Subvi is visible. If it isn't, no scaling would be made. My solution is to open the Subvi as a small window and close automatically after the scaling. It's not very nice.

    Are there any other ideas how to use auto scaling without showing the front of the Subvi?

    Thank you very much and best regards,

    Michael

    Hi Michael,

    -show your façade out of the visible screen area, so the user does not notice the window...

    -Make your own algorithm of scaling based on these values min/max...

  • How to use 'Start synchronous call' to run a Subvi timeout event and keep in hand vi still running?

    Hi all

    I have an application must periodically check the State of the instrument, and I put it in the "Timeout" vi main event. I need also call some subVis to configuration etc. Somehow when I called these Subvi, the Timeout event in my main vi did not work. I then use the ' Start Asynchronous Call "to call the subVis. Turns out it works fine with a few subvis worthless back, but not as expected with subvis 'return the required value.

    I have attached a simple test, my main vi call two dlg subvis: AboutDlg.vi and SettingsDlg.vi. In the case of delay, I just use a counter for the simulation. When you run it, you can see the meter taken into account when the AboutDlg.vi has been called, but stopped when SettingsDlg.vi is called.

    As I remember, someone suggested to use the queue to pass the return value, but I don't know how to implement here.

    Anyone have any suggestions on this subject?

    Thank you very much.

    Try to play with it - I modified your code to search a Q in there.

    You want to change the bunches to data types more useful (perhaps enum and Variant, so you can ungroup variants according to the enum contribution), you can type def clusters to make it easier to maintain and you will need TO handle the situation where the called VI is left open on program close - I couldn't be bothered, as it was not your immediate deliverance)

    Hope this give you some ideas - totalyy not tested, but should work.

    James

  • How to pass a Subvi treeview items my hand VI?

    As the title says. Probably a simple concept, but I just can't get it.


  • Error 1074118650 on niDMM configures waveform Acquisition

    I modified the waveform of DMM demo, and it worked very well until I left work yesterday.  This morning, I get:

    "Error 1074118650 occurred at niDMM sets wave Acquisition.vi.

    Possible reasons:
    The specified file could not be opened. The operation could not be performed as indicated. »

    The demo of DMM unmodified waveform produces the same error.  Other screws I have who use configured Waveform Acquisition.vi niDMM work.  I tried to restart Labview.  I've added the main VI for a project and check that dependencies are where they should be.  Any suggestions to solve this problem would be appreciated.  Thank you.

    Hello

    I found documentation indicating that when this error occurs in what concerns a 407 x DMM, the problem could be that the F1 fuse connected to the 12V of the isolated side power has blown. You can verify that this is the case by using a DMM to hand to check the continuity across the fuse.

    As this seems to have been an isolated problem, I doubt that is the case. I don't know why this happens only once. Perhaps there was a power failure or other variables that ignore us. If however, it is a problem, you may call OR and ask to do an RMA number (Return Merchandise Authorization). I hope this helps!

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • Update of waveform outside under VI

    Hello

    I have a fairly complex (for me!) program with several sub VI, pressure measurement loop calls main VI a VI void is a while, each value is plotted on the graph of the waveform is measured in real time. I want to display this graph in real time in the main VI. However the table of waveform in the VI main shows only the last delivered value of sub VI after the sub VI has finished its execution of the loop.

    Is there a way to configure the waveform table in primary VI to only show data in real time to know duplicate what the table VI of void?

    Thank you

    It seems simple enough.

    Refer to the map of waveform control (by right-clicking on the graph > Create > reference) and place it in the main VI Subvi. The sub VI must have a point of order of the same type. Within the Subvi, you can update data using a property node. If you want to update the chart in each iteration of the loop, use the node property inside the loop.

Maybe you are looking for

  • Thunderbird will synchronize automatically unsubscribed all Gmail mail when you press the button "a".

    I will sync not all messages in Gmail as it is simply a duplicate of all my other files. However, if you accidentally hit the 'a' on the keyboard while in the folder view, Thunderbird automatically opens the folder all the messages in Gmail and begin

  • Change details in another region

    Hello I opened an Apple ID to the Qatar, now, I moved to the India. I tried to change my region and credit/debit card details. I have no credit or debit at the time card to the Apple ID, so for now I want to use the account without any card using the

  • Dynadock U3.0 - unable to connect to the network

    I have a U3.0 Dynadock and when you try to connect to the network at work via a network cable, the parameters were not detected automatically.I then put manual details (IP), but this did not fix the problem. I assigned by DHCP the Dynadock should get

  • What is the problem with my startup?

    So I was using my MacBook Pro mid-2012 very well until it restarted unexpected. He said that my computer turns off due to a problem which is not really a surprise to me, as it happens from time to time. This time was different, different codes were a

  • Files which are required for Windows to run properly have been replaced by unrecognized versions

    I get this window popping up that reads, "files required for Windows to run correctly have been replaced by unrecognized versions.»  To maintain system stability, Windows must restore the original versions of these files.  Insert your Windows XP Prof