Embed labview generated code with c++ gui application
Hey everyone ,
I am very new to labview and trying to learn it ... but before that i wanted to make sure a doubt which i have in my mind , the problem is that i have a realtime GUI application built on c++ widgets and i want to change the existing DSP block in this application with the code generated by using the LABVIEW , i am sorry that have very
less amount of knowledge regarding labview so i turn up with thread ... So can generate c++ code for the DSP blocks designed in labview ... if yes how and if not why . Any
sincere help will be appreciated . And I very much apologise for any mistakes in my question .
Thanks
Tonph wrote:
Thanks rolf, is it possible that i use labview to disign my DSP block only and the output be fed to my custom c++ blocks and also wxwidget GUI ... suggest some means thanks ...
Well, have you followed the link I gave in my post? You can download an evaluation version of the add-on and try it out in LabVIEW. It generates C code, not C++, but that should be no problem, since it is very easy to call C code from a C++ application. I can't vouch for the suitability of this add-on for you, nor do I know the exact price range so that are certainly things you have to do for your own.
As to nathans solution, that could work too. If your application is for Windows, or MacOS X, or Linux you can create a shared library from your LabVIEW code and call it as such from your C++ application.
Personally I would find it a rather roundabout way to include LabVIEW generated code in a wxWidget application. One of the strengths of LabVIEW is not only signal acquisition and analysis but also simple GUI design, at least as long as you are after a functional GUI, and not a very specific style of a GUI. So I would never even consider to do the GUI part with anything but LabVIEW if some other parts are already to be done in LabVIEW.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Similar Messages
-
In other words jQuery mobile does not generate code with result can not test Apps in dw cs6
from the time compiled in phonegap dw c6 tools and tested from dw the App in Android sdk, for a jQuery mobile App the, code in split/Live is the same as split/Live/Live Code.... in other words jQuery mobile does not generate code with result can not test Apps in dw cs6, but design shown without jQ mobile generated code, well?
well, jQuery mobile stopped to generate code with result can not test Apps in dw cs6, but design shown without jQ mobile generated code, well (neither generated code seems nor design as seem in mobile)....????
-
Generated code with some transformations - need help
I have a mapping as below:
1. Source table and input parameter are input to splitter
2. Splitter has conditions as if input parameter is NULL then insert/update target table
3. There is a constant with 4 Attributes, which also directly insert into the target table
4. If the input parameter is NOT NULL then output from splitter goes into a filter where the condition is checked with the value from input parameter
5. the output from filter is inserted/ updated into the target table. Here again the values from constant are also inserted into the target table.
The Target table has 15 columns out of which I have 11 columns set for matching. I have the loading type set to 'UPDATE/INSERT'
When I generate this code a merge statement is included in the code and everything works fine.
My environment is:
OWB: 10.2.0.2
DB source & Target : 10g Rel2.
I changed the mapping so that instead of 4 attributes in the constant above, I have 2 attributes.
I have another constant with one of the 2 attributes removed from the above constant.
The value from this constant goes as an input to transformation operator, the transformation operator has 2 outputs. I mapped these outputs to the splitter input.
There after this is similar to the above mapping explained earlier. Basically the 2 attributes which were part of the constant in the first mapping are now from a transformation operator (procedure) and I have these values passed all across the mapping (through splitter and filter as is without any changes).
Now when I generate the code, the generated code does not have a merge statement but processed row by row and hence have a cursor and then separate update and insert.
This code is much slower than the earlier one.
I want to retrieve the values through a procedure as in the second case instead of the constant but want to have a set based processing as in the first case. How Can I do this?
Any help please?
Thanks,
MaruthiHi,
Do not use the transformation operator. All transformation are nothing but built-in SQL functions. Take your constant values into an expression operator and then make two output attributes in it. In the expression builder call the function appropriately and as mentioned above, generate the code in set based fail over to row based (default mode) and execute it. The mapping should execute in Set Based Mode.
Regards
-AP -
Solaris 10 Firewall configuration with a GUI application
Hello,
I am quite a novice regarding Solaris.
I have searched for hours on the web for a safe GUI application with which I can configure the
firewall on Solaris 10 05/2009 in order to surf the Internet. Unfortunately I have not found one but
lots of instructions instead on how to modify various config file setting, which I do not understand.
My Solaris books are also of no help.
Is there a precompiled GUI tool available similar to the one shipped with OpenSUSE's yast ?
I think such a tool would make Solaris much more attractive for non-sysadmins - also because of
its excellent hardware support that is superior to Linux.
Thank you,
AlexanderIPF studied in little chunks is really easy to manipulate.
Fortunately there is a doc that splits up IPF into little chunks with each new chunk building on all of the old chunks.
http://www.obfuscation.org/ipf/ipf-howto.txt
Then all you need to do is to create /etc/ipf/ipf.conf
and
svcadm enable ipfilter
alan -
Command to generate code for I-phone application in SUP-DOEc
Hello Experts,
Please let me know the command to generate code for esdma to create iphone application using SUP-DOEc.
Thanks and Regards,
Sumacodegen <ESDMA directory>\META-INF\sup-db.xml -client -mbs -sqlite u2013oc -log:co -output <ESDMA directory>
Regards,
Siva.
Edited by: Siva Satya Prasad Yerra on Jun 20, 2011 1:33 PM -
I'm using NetBeans IDE 6.1 UML editor to generate java code. When I choose the "Generate Code" option and select the options I want. The console shows the message:
Generating source from template "Java/CompilationUnit.java" ...ERROR: java.lang.NullPointerException
How do I find where the Null Pointer Exception is being thrown?Rick.Lohmeyer wrote:
I'm using NetBeans IDE 6.1 UML editor to generate java code. When I choose the "Generate Code" option and select the options I want. The console shows the message:
Generating source from template "Java/CompilationUnit.java" ...ERROR: java.lang.NullPointerException
How do I find where the Null Pointer Exception is being thrown?You go over to the NetBeans forum and ask them the same questions, since this is not a Java question, but a IDE specific question. Also if you are not a fairly seasoned programmer, then may I happily wish you cheers with all the frustration and grief that inevitably awaits you in your autocoding endeavors. -
Generating barcode with AI's (Application Identifiers)
Hello all,
I am facing an issue with the generation of barcode with AI's. I have a requirement to generate barcode with the data which concatenates 3 different fields and to differentiate those three fields, AI's (Application Identifiers) or DFI's (Data Field Indicators) must be used.
Ex: (01)12445545(17)020200(10)8823344
here (01),(17) and (10) are the AI's. Can any one provide a solution to encode this kind of data and generate barcode using EAN-128 font. Did any one worked on this kind of requirement in BI Publisher earlier ?
Its urgent. Please help.
Thank you,
VasanthaHi Tim,
I have tried with several ways to encode the total string using the java class as mentioned in the xmlpublisher blogs but could not able to generate a correct barcode. I have also gone through the IDAutomation site and found few ways of encoding the data.
I have used BarcodeUtil.java and used the code128 method to encode the data and applied the code128 font to it.
Placed these two commands in the RTF.
<?register-barcode-vendor:'oracle.apps.xdo.template.rtf.util.barcoder.BarcodeUtil';'XMLPBarVendor'?>
<?format-barcode:BARCODE_DATA;'code128a';'XMLPBarVendor'?>
In the xml data, for the BARCODE_DATA column, I have concatenated the three fields by trying the following different formats as shown below. (by looking at the ID Automation examples).
Original data: (01)12445545(17)020200(10)8823344
Data that I gave for the field:
1) ~2120112445545~21217020200~212108823344
2) Ê0112445545Ê17020200Ê108823344
But the barcode which was generated was not correct in both the ways 1) and 2). I tried to compare this barcode with the barcode that was generated online from the IDAutomation site for the same example data.
Can anyone suggest any method to handle this kind of data in XMLP. if possible, please provide a sample example.
Thanks in Advance.
Vasantha. -
LoginContext with a GUI application
Where would I put the LoginContext for a GUI application? If I were to put it into the same class as the main window, then other windows wouldn't be able to get a Subject from it to perform some PrivilegedAction using Subject.doAsPrivileged. Any Ideas ?
IPF studied in little chunks is really easy to manipulate.
Fortunately there is a doc that splits up IPF into little chunks with each new chunk building on all of the old chunks.
http://www.obfuscation.org/ipf/ipf-howto.txt
Then all you need to do is to create /etc/ipf/ipf.conf
and
svcadm enable ipfilter
alan -
Error code with download of application manager
Error code A12E1
What does this mean?
I can't complete downloading the adobe application manager because the message suggests I contact customer support.
How can I fix this please?
BiancaTry the direct download links for AAM found in this article
http://helpx.adobe.com/creative-cloud/kb/download-error-403-launching-aam.html -
Call Labview generated EXE with Parameters
Hi
I have generated an exe in a Lab project(bcos of the no of VIs = 300)
I want to call this EXE in Teststand with Parameters
how to achive this
mytry1) as executable but the cluster outs cant be exported to teststand
mytry2) as a dll called in Teststand -> I cant see the outs (it just provides one return value)
Attachments:
sapouterror.PNG 190 KBDear aparab,
does the following article help with the DLL call?
http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67
Kind regards -
Report Script output in UTF-8 code with Non-Unicode Application
Essbase Nation,
Report Script output (.txt) file is being coded as UTF-8 when the application is set to Non-unicode. This coding creates a signature character in the first line of the text file, which in turn shows up when we import the file into Microsoft Access. Does anyone know how to change the coding of the output file or know who to remove the UTF-8 signature character.
Any adive is greatly appreciated.
Thank you.
Concerned AdminYou may be able to find a text editor that can do the conversion. Alternatively, I have converted from one encoding to the another programmatically using Java as well.
Tim Tow
Applied OLAP, Inc -
How to use generated code from "Import Web Services" with Cairngorm Framework
I recently downloaded Flex Builder 3 beta 2 and tried out the
wizard that lets you import web services. The code that is
auto-generated makes if fairly straight forward to consume web
services using the object types defined in the WSDL. No longer does
the developer need to decode the XML payload! The only problem I am
having is how does you integrate the auto- generated code with the
Cairngorm framework? This seems like a huge question for anyone who
might want to leverage Cairngorm and the auto-generated proxy code
in the same project (like me).
Here are the problems that I see so far.
1) How do you configure the generated service class to work
with the Cairngorm service locator? The service constructor only
accepts a “LCDS destination string” which implies that
you must use Lifecycle data services. Unfortunately, the project I
am trying to retrofit currently uses a WebService and does not use
data services. All I really need to do is change the endpoint URL
(ie from local to a development server). This issue is noted in the
bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
needed is a way to set the endpointURI in the Services.mxml file.
2) Even if I come up with a hack around #1, I do not receive
a callback to my IResponder even though I register it immediately
after the method call. I can register and listener function within
my business delegate and receive the callback, but my Command
object, which implements IResponder, does not receive the call back
even though it is registered. From what I read in the ASDocs it
should but it doesn’t for me!
These are the issues I have observed in 3 hours of messing
with this. I hope this makes sense. I would love to integrate
auto-generated web service proxies into Cairngorm but I don’t
see a straight forward way without re-architecting Cairngorm. Has
any one else run across this issue? If so, do you have any insights
on how to proceed? Any help is appreciated.Since I posted this question, I have abandoned the notion of
auto-generated web services and embraced the good old FDS concept
where the RemoteObject meta-tag does all the conversion work for
me. We are now using the Granite DS package and it is working well
for us. I would love to consume web services, but it just isn't
worth the hassle when all you have to do with Granite (and FDS) is
cast your return objects to the proper object type.
BTW, since this posting, I have investigated competing Flex
app frameworks. After my research, I checked out the PureMVC
framework. Wow!! Cairngorm always left me with an uneasy feeling
and I guess I am not alone. Apparently, Cliff Hall felt the same
way. That is why he started the project. I like his approach alot
more than Cairngorm especially since it includes notifications
which allow me to broadcast my own app level events independent
from the AS Event framework. Check out PureMVC. For what it is
worth, it has my humble endorsement. Cliff was even gracious enough
to acknowledge the other Adobe Consulting guys for their work. Good
for you Cliff, I respect that. Check out a better way at
http://www.puremvc.org/ -
DatagramSocket in GUI application
I have been working on a gui application that needs to be able to send and receive Datagrams. The problem I am having is when I block to receive a datagram using
DatagramSocket socket = new DatagramSocket();
DatagramPacket packet = new DatagramPacket(...);
socket.receive(packet);I am going to go out on a limb and assume that receive will block until the application actually receives a datagram.
I catch InterruptedIOExceptions and it seems that my threads are fighting for processing time and my receive() call keeps getting interrupted before it is able to receive it's information.
Solutions I have tried:
1.) putting the code that sends and recieves the DatagramPacket inside a runnable object and then starting a new thread to perform the receive() blocking call.
2.) setting the priority of the above thread to Thread.MAX_PRIORITY
3.) Each time I receive an InterruptedIOException, I double the socket's timeout value
I know the code works because I have made a stand alone console application that does exactly as it should. However, when I put the code inside my gui application it keeps receiving InterruptedIOExceptions before it is able to process a DatagramPacket.
Any ideas? Thanks in advance for any help!
- Anthony
[email protected]thank you very much for the input.
I have an interesting side note. I just read about the socket.setSoTimeout(int timeout) method and it seems that it is this method that dictates how long receive will wait until throwing an InterruptedIOException. So it was this method causing the exception not the GUI threads wanting processor time. I tried this new line
socket.setSoTimeout(0); // wait forever, do not throw an InterruptedIOExceptionnow my application should wait forever and never process an InterruptedIOException. However, the application never receives a DatagramPacket and socket.receive(...) blocks forever. This same exact code works fine in a stand alone console application.
Does anyone have any idea as to why this problem has arrisen.
the receive code is within a Runnable object's run() method and I am using a JButton's ActionListener to instantiate and start() the Runnable object
currently, however, the whole of the datagram processing is in one thread and I shall move the listening portion to a seperate thread and try the
SwingUtilities.invokeLater(...) method
However, after making the above realization, I no longer believe it is thread timing causing the bug, but rather something else
Does anyone have any input that they could share?
I appreciate the responses
thanks wew64 and Friederich -
Need help with flashvars in cs5.5 html generated code
how could use flashvars in cs5.5 html generated code, there are tutorial in net about flashvars but its all cs4 with javascript in it while cs5.5 html code doesn't have. here is the code for non-IE generated by cs5.5
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="sample.swf" width="800" height="800">
<param name="movie" value="sample.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
how can I put flashvars in html and as3?<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="sample.swf" width="800" height="800">
<param name="movie" value="sample.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<PARAM NAME=FlashVars VALUE="imageFilename=images%2Fimage1%2Ejpg">
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
and you can read via flash AS3:
http://www.permadi.com/tutorial/flashVars/indexAs3.html -
HI
When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
I 've no idea how to correct this weird error?
Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
regards,
jamesHello,
I don't reproduce this error.
Could you send your VI?
Regards
VéroniqueD
NI France
Maybe you are looking for
-
I would like to have just one itunes account. Is there anyway to do that? Right now I have too many accounts and all on different computers. I would like to combine them and just have one place for all my music, books, movies and games. I would need
-
Restriction of f4 help of a bex variable based on another variable input
Hi, Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input. eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables
-
What program do I need to buy in order to cut and paste from Adobe
I recieve drawings from architects in PDF form. I want to be able to select areas of the drawings copy and paste them to a seperate PDF or word doc to forward on to my vendors for pricing.
-
EO1013 no serial or network connection
I have an HP IP KVM EO1013. The device powers up, and all local facilities work well: I can use the attached servers happily through the keyboard, monitor and mouse attached. My problem is with the network side of the device. There appears to be no L
-
Field lengnth is more than 60.....
Hi Gurus, there is one field VAKEY from KONP table which is having the length is 100, how we can create an info object in BW side? BW will alllow max of 60 length, in this case how we can solve this issue, if any routine is requires please provide me