LabView TEDS library into DLL or ActiveX Control so that I can use it in C or Visual Basic?
We are developing software in LabWindows/CVI and Microsoft C. I heard that LabView can generate DLLs. Can I turn LabView TEDS library into DLL or ActiveX Control so that I can use it in C or Visual Basic development environment?
Technically what you are proposing is possible with LabVIEW. With LabVIEW's application builder, VIs can be built into dlls. Also, LV has ActiveX hooks and so you could create a system for calling into it from CVI. However, this is not what I would recommend.
The LabVIEW VIs have been written to a preliminary version of the IEEE specification (1451.4) that describes the TEDS data which is primarily why I'm advising you against using them. Once the IEEE spec is approved (the current timeline is currently late March), it will become public and you can write your own code according to the specification (or wait for someone else to write it). To help you get started, the spec includes flex and bison code that describes the syntax and structure of the template files
Internally, we've written some C, C++ and Java code to the preliminary version of the spec and we've found that we can duplicate the functionality of the TEDS Library for LV in roughly 2 weeks in any other language.
Similar Messages
-
Using ActiveX controls in GUI application, which uses TestStand API
When using ActiveX controls in TestStand Operator Interface GUI,
CVI reports User Interface Library error no.-143:
"ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
The same code, which takes care of user interface, but not references
TestStand ActiveX API (i.e. not creates TS Engine), works properly.
What's wrong?Hello again Misha,
Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
int main(int argc, char **argv)
int retval = -1;
sArgc = argc;
sArgv = argv;
if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
goto Done; /* out of memory */
// Intialize main GUI thread as STA to prevent other attempt to make it
// MTA, which will not allow ActiveX controls to be used.
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
/* initialize the test engine */
if(!InitEngine())
goto Done;
if(!InitErrorDialogStrings())
goto Done;
if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
goto Done; // get out now
if(!ProcessPreLoginCmdlineArgs())
goto Done;
if(!CfgFile_Load())
goto Done;
if(!CfgFile_RestoreOptionSettings())
goto Done;
if(LoadGUIPanels() < 0)
goto Done;
if(!InitFileQuickList())
goto Done;
/* set initial gui state */
if(!InitGUI())
goto Done;
RunUserInterface();
retval = 0; /* normal exist status */
Done:
/* cleanup */
SeqFileList_DeleteAllSequenceFileRecords();
ExeList_DeleteAllRecords();
IconList_DeleteIconList();
SaveAndCleanupFileQuickList();
CfgFile_SaveOptionSettings();
CfgFile_WriteAndCleanupForExit();
AdaptList_DeleteAdapterList();
DestroyToolMenus();
CloseEngine();
FreeErrorDialogStrings();
return retval;
Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask -
When used as an Activex control in windows How can I prevent the "Q" logo from appearing between streaming videos?
Hello Cgifford,
Welcome to National Instruments Forums.
To output your signal to the PFI lines,
you can use external connectios between OUT0 and PFI lines. You can also use
the backplane to do so by routing into the same RTSI line.
1)
On the SCOPE and FGEN, the name of the
terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
need to route the signal using the property:
You can also use the DAQmx route signal which perform the same opperation.
2)
This will depend on the frequency of
your pulse train. If this is lower than about 10 ms, then you can probably
place this on a loop and start and stop the acquisition every time. If the
frequency is higher than this, you will have to use:
- Scripting on the FGEN side (read more)
- MultiRecord Fetch (more information in the scope help file
section “Acquisition Functions Reading versus Fetching”).
3)
The short answer is yes. The longer one
might depend on how tight you need the synchronization to be (us, ns, ps). For
very tight synchronization, you should look into here.
Message Edited by Yardov on 06-18-2007 03:14 PM
Gerardo O.
RF Systems Engineering
National Instruments
Attachments:
property.JPG 7 KB -
I have uploaded photos from the past and they are automatically arranged by date. As a result, there are many events grouped into one library/event/folder/album (not sure of the proper terminology) I'd like to separate them into folders/albums/smart albums so that I can easily identify the contents. How do I do that and do I delete the originals?
It would be good to take the tutorials and learn iPhoto - these are for the previous version but the concepts are the same and much of the command is the same - and it would be a worthwhile investment of time to take the iphoto tutorials - http://www.apple.com/findouthow/photos/ - they are very helpful and will save you a lot of time and frustration. - also the tutorials in iPhoto Help will be helpful - while iPhoto is easy and intuitive it does have a learning curve and it will save you time and pain if you spend a few minutes learning the basics
as to organization - events are generally time based and are the basic automatic organization - you can merge and split them to make them work better for you but they are not a good way to do detailed organization - best to leave them time based
albums are logical things that contain photos and are just pointers to the photo in the event so they take no extra space and all changes to a photo anywhere are reflected everywhere
Smart albums are the same except they are automatically filled based on the criteria you set when you create them
Folders are containers that you create and a folder can contain albums, smart albums or other folders so they are a big help in organization - like a vacation folder that holds folders for France, USA, China with each of thos folders holding albums of photos from the country
LN -
when my hard drive died I lost my itunes library and now I'm being told that I can't synch my ipod with new songs unless I delete all existing because I can only have one library at a time
Copy all the content on your iPod back to your PC and into iTunes. Then go ahead and sync the iPod with your new library.
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
hi hamilton,
thanks for your reply .
I already tried the option or pxisys.ini file
The MAX is showing the slot number ..but My requiremet is to use the slot ID in a DLL
so I need a function type of statemen to return or get the slot number of the NI devices on the PXI.
I think I clearly explained.
I would like to get the slot numbers through a software fucntion such that i can use the slot numbers values for some other purpose ,,like configuration ,,jayamurugan,
This functionality currently is not built into National Instruments software. You can get the device number, but not the slot numbers programmatically.
Trey Hamilton
Applications Engineer
National Instruments
http://www.ni.com/support -
I want to burn my old cd's and have them in my iTunes library. Is there some "I" software that I can buy that will treat the new songs like "purchased" songs (i.e.: available for synching on all my devices)?
http://www.apple.com/itunes/itunes-match/
'With iTunes in the Cloud, the music you buy from the iTunes Store automatically appears on all your devices.1 And for music you haven’t purchased from iTunes, iTunes Match is the perfect solution. iTunes Match is built right into iTunes on your computer and the Music app on your iOS devices.2 It lets you store your entire collection in iCloud, even music you’ve imported from CDs or purchased somewhere other than iTunes. When it’s in iCloud, it’s available on all your devices. So you can enjoy all your music anywhere, anytime — on your iPhone, iPad, iPod touch, Mac, PC, or Apple TV.'
It costs $24.99 p.a.. Songs you've ripped from your CDs which are also in the Store will be recognized (hopefully) and be available: if they aren't in the Store you can uploads them. The limit is 25,000 songs (purchases do not count towards this limit). This is not part of the 5GB free storage.
Incidentally, just to clarify the terminology so you don't get into confusion, you don't mean 'burn' (make a CD from existing files) you mean 'rip' (copy files from a CD onto your computer). -
Randomly when I plug my Iphone 4s into Itunes it will tell me that it can't detect my phone and that I need to restore it. It doesn't happen every time, but maybe every two weeks.I restore it and then it works for a while, but then a couple weeks later I'll plug it in and I get the same message again. It's very frustrating because even though I have all the settings to save to cloud, my apps and data don't all come back.
Thank you both. I suppose I should have prefaced my question with the concern that I've read a number of other posts from people who have had a similar issue and when they tried to follow the directions, they ran into a multitude of other problems. As you might imagine, I'm hoping to avoid the creation of new problems as I try to solve this one. Thanks again.
-
I have recieved an e-mail seemingly from Apple that has gone straight into my spam. It says that someone has used my Apple ID to sign into iClous on an iPhone 4. There is a lionk to follow to check my details. I am assuming that I should not so this?
You can forward the email to Apple at the link below.
[email protected]
Also check out the article below.
http://support.apple.com/kb/ht2075 -
Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .
Contentmom6 wrote:
Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store. Now try System Preferences > Displays > Detect Displays. You should now be able to select a display mode for the monitor. If it still doesn't work, then I'd check that everything is properly connected. I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
Bob -
A lot of my music is on an external Hard Drive, currently "H" drive. When I try to play a song in the Library in Itunes I get the message that it can't find the music. Info says it's in a different location "G" Drive. But it's not. it's in "H" Drive. How do I tell it where to go?
What if you take this same topic of an external hard drive with music but instead of directly attached to the computer the music is on a Network Attached hard drive(NAS)? Will I be able to add music to my ipod without any problem? Step that up a notch, will the two computers on my network be able to recognize the music on the NAS? Will the two users be able to create their own playlists and update their ipods independently? Now step up that up one more notch, will I be able to do this with one PC running XP and my macbook with OS X?
Before I run out and buy a NAS I want to be certain. I also would like to convert my DVD library in the future and put it on the network available to an AppleTV or other UpNp media player in the future, because I love having power at my finger tips. -
How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
Hi Sara!
Yes this sounds interesting. Can I update to that from the PDF Export I have just renewed? How much would that cost?
Thanks for your quick answer.
Best Regards
Per-Olof Egli Logga Egli C.I.S
Managing Director
Egli C.I.S. Consulting
Lapphundsgränd 43
SE-128 62 SKÖNDAL
Sweden/Швеция
Phone: +46 708 23 03 53
<http://www.eglicisconsulting.se/> www.eglicisconsulting.se
<mailto:[email protected]> [email protected]
Skype: eglipo
Från: Sara.Forsberg
Skickat: den 10 september 2014 22:11
Till: P-o Egli
Ämne: How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg> n Adobe ExportPDF - View the full discussion <https://forums.adobe.com/message/6718870#6718870> -
Is there some sort of adapter that i can use to plug my electric guitar into, so that i can record music into garage band?
Probably but for that kind of expertise I would ask the experts in the GarageBand forum.
-
Ive just learned that i can use loadjava to load jsp pages into the database.
Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
Any ideas?Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
ORA-29540: class ZebraGetPrinterFromXML does not exist -
Hi!
I want to build labview application into dll and use vc++ to call it.The labview program is a little complex,for it has many interface to vc++ and has while loop in it.When I use vc++ to call it,I must use vc++ to do other things.That is to say,vc++ creates a new thread to provide for the labview dll to run.the vc main thread goes on to other things.But the vc++ main thread must communicate with the labview dll by setting its inputs' parameters and get the results of running labview dll.Can you advise me how to realize it?
I think global variable of labview could be useful when realizing the communication betweeb vc thread and labview dll.So I want to ask whether the labview global variable could also be built into dll and use it.Could you please tell me how to realize my idea?
Thank you![email protected] wrote:
Hi!
I want to build labview application into dll and use vc++ to call
it.The labview program is a little complex,for it has many interface to
vc++ and has while loop in it.When I use vc++ to call it,I must use
vc++ to do other things.That is to say,vc++ creates a new thread to
provide for the labview dll to run.the vc main thread goes on to other
things.But the vc++ main thread must communicate with the labview dll
by setting its inputs' parameters and get the results of running
labview dll.Can you advise me how to realize it?
I
think global variable of labview could be useful when realizing the
communication betweeb vc thread and labview dll.So I want to ask
whether the labview global variable could also be built into dll and
use it.Could you please tell me how to realize my idea?
Thank you!
You
can't access LabVIEW globals directly from a caller to the LabVIEW DLL.
However there is no problem in providing specific accessor VI functions
to that global and export them as additional functions from the DLL.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Maybe you are looking for
-
Help: do i really want an Apple TV or a Mac Mini?
Hi, I have an iMac and Airport Extreme base station upstairs in the den. Downstairs in the rec room I have a 46" LCD HDTV. I'd like three things. 1. I'd like to rent movies from iTMS (can't in Canada); and buy/rent American TV shows from iTMS (can't
-
How to Add Input Field in IC Webclient
Dear Experts, I want to add one Input field in Interaction Center Webclient(IC Webclient).Is it Possible?If Possible Kindly Send me the Step by step Procedure. It is Urgent Requirement.Please Help me. Helpful Answers Will be rewarded. Regards,
-
I'm using iWeb and .mac to create a video game website. I put the game reviews and description on my blog pages. Recently people have informed me that they can only see half of my review page when using Internet Explorer. I have tried 3 different PCs
-
Synchronising contacts on an Android device
My wife has a Samsung Tablet and I would like to add my BT email address to it and be able to sync my contacts. This seems to be impossible to do. Can anyone suggest how I can do it or can only the main user of an Android device sync their contacts?
-
R9 270X Gaming OC 2G Black screen
Now at me stand driver versions 13.101, I tried to install this version of the driver is newer, and on all versions after rebooting the PC was a black screen, the system is not just loaded ... what to do? S/N: 602-V303-03SB1310008061 My BIOS: sendspa