Labview and Microsoft VC++ 6.0 (MFC)
Hello Gurus,
has anyone ever tried to implement a labview panel into a MDI frame of Mirosoft VC++ 6.0
At the moment i am able to do this stuff with a dialog
based application.
If you have some ideas please tell me."
Duplicate post, answered here
Bilal Durrani
NI
Bilal Durrani
NI
Similar Messages
-
Hi, I'm experiencing problems transferring strings between LabVIEW and
Microsoft Visual C#. I have a LabVIEW dll file which contains a method
returning a string. I use this method in C# (using the [DllImport] command),
but it doesn't seem to work. When I change the method to return an integer
instead, it works fine. So I'm really looking for a casting function or
something, to use LabVIEW strings in C#.
Anyone?
Cheers,
AasmundHi Aasmund,
you can take a look at this example:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9B3111EE034080020E74861&p_node=DZ52048&p_submitted=N&p_rank=&p_answer=&p_source=External
That shows how to pass strings between LV DLL and Visual C++.
It might help.
Good luck,
Alberto -
Problems with Labview and Windows XP with error -214721786​5
Hello. Im a new beginner in Labview and am having a problem with a error message
I dont understand. Im running Labview on a pc-logger with windows XP.
The program is written by a guy on my university, and logs voltage from
a solar cell panel. He doesnt have the time to check in to it, so Im supposed to
find out what's wrong.
The error message is as follows :
Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert
Data.vi->Solcelle.vi
Possible reasons :
Exception occured in Microsoft OLE DB Provider for ODBC Drivers,
[MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :
'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-
>Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi
I really hope someone can tell me what's wrong and specifically what to do
with it, or possibly guide me to someone who could suggest a solution to this
problem.
Reguards
chrisdeeHi Chrisdee,
(.. not to discount what TimoS has suggested, however...)
Embedded in the error information you provided:
... Can't open file : 'solcelledata.MYD'.
Sounds like the program needs this file? Has the program been moved to a new location?
just a wild guess!
Cheers
Message Edited by Dynamik on 10-06-2005 04:53 AM
When they give imbeciles handicap-parking, I won't have so far to walk! -
i started using labVIEW about 5 months ago in order to made a program to
control a philips xl30 sem microscope (with labview 4.0 on win31) and
another to register the subpics taken from the sem to build large-size
images (in labview 5.1 on win95).
i study computer engeneering on university of modena (italy) while my thesis
stage (with socrates european project) is held at the institute of material
research IMO in diepenbeek (belgium)
i am really entusiast about labview and how is made, i think also is a very
fast tool for prototyping programs that maybe for performance reasons have
to be developed with other languages; concepts like modularity and
code-reuse seems very easy to reach respect many other languages (i mean
usually is
not so easy just take program parts from other sources and put
everything togheter in a short time).
since i would love to experiment labview programming for my personal fun i
am interested to know if for commercial packages like the internet-toolkit
are avaible special student prices.
federico fantini> It's not a full version, but it's only missing a couple of things (ie
> Active X support). And it includes Internet Toolkit & HiQ 4.
"Unable to link to external code via DLLs and Code Interface Nodes"
i don't care about microsoft-only technology but since student edition has
NO POSSIBILITY to link code from outside i think you loose everything
(suppose you have a free 32bit .dll that do a lots of beautiful things, it's
very easy to integrate good and FAST code in a labVIEW program so you can
always have critical stuff made by fast code and still make 90% of your
program in plain G).
it's good for student to learn labVIEW but i think in this case it's good
for university and not single persons.
from the faq you get that "LVSE will work only with Nationa
l Instruments
hardware" , this seems more a move like 'we want university buy OUR HARDWARE
to train students' that a way to give a cheap labview
anyway the product is great and it's the reason i would love to use it for
have fun while programming...but i think that at 495$ the internet toolkit
is too expensive for me
i have also see that it's impossible to buy a linux student edition of
labview while it's possible the academic contract..maybe ni think that every
student have to run windows at home ?
federico fantini -
Database connectivity toolkit problem with WINDOWS VISTA and Microsoft jet 4.0 provider
Hi again,
I'm experiencing a problem with Database connectivity toolkit and Microsoft Jet 4.0 provider (MS ACCESS mdb database).
I was able to get my application to work properly on my PC: WINDOWS XP PROFESSIONAL, VERSION 2002, SERVICE PACK 3 and Msjet40.dll ver. 4.0.9511.0 (Windows XP SP3 and Security Bullettin MS08-028).
The same connectivity toolkit seems to have problems (although I didn't get any error dialog) on a laptop with WINDOWS VISTA ULTIMATE, SERVICE PACK 2 and Msjet40.dll ver. 4.0.9755.0.
Does anyone have an idea whether it is a sort of compatibility issue or a different thing?
Would it be possible to include my DLLs into the installer in such a way LabVIEW application calls those DLLs instead of the ones it finds on the host PC?
Thanks a lot. Any suggestion or advice very welcome and appreciated.I ran into this with Windows7 64 but, could not get the jet 4.0 to work. Endnd up dumping access and used sql server express, its free, and all my code worked fine, just used a different UDL to connect. I wasted lots of time trying to find a way of getting the jet4.0 to work with 64bit windows.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
How can i work simultaniously with labVIEW and Excel ?
Hello . I study engineering and need some help with labVIEW, and the connection to microsoft excel.
Hi
NI offers an "Report generation toolkit". You get some VI's with this toolkit and so you can directly create your reports from LV.
Another possibility is the communication through ActiveX. There is a nice link with application notes and LV examples for that:
http://zone.ni.com/devzone/devzone.nsf/webcategories/C3E56C69D399361E86256AB7006A9149?opendocument&node=DZ53003_US
Regards,
Luca -
i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it. I am gettting the data from rs232 interms of 0 or 1. and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer
I have attatched the vi. Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off. suppose if 0 comes the corresponding data status is wrtten into the text file. But here the problem is the same data will be printed many number of times. so i have to make it like if there is a transition from 1 to o then only print it once. how to do it. I am doing this from few weeks please reply if you know the answer immediatly
thanking you
Attachments:
MOTORTESTJIG.vi 729 KB -
Problem with Labview and an ARM Cortex
Good morning,
I am currently trying to use Labview with a board from ST Microelectronics (MCBSTM32) with an ARM Cortex Processor.
I use the SDK and have followed the tutorials.
But, when I try to launch the program (the simple loop as write in the tutorial n°2 : http://zone.ni.com/devzone/cda/tut/p/id/7029 ), Keil gives me an error via Labview:
"Argument 'DARMSTM' not permitted for option 'device'."
It seems that Keil does not allow an ARM Cortex from ST as the device.
Moreover, after having this problem, I am unable to use a Keil project ,even a project which worked before, without Labview. I need to restart the computer.
I also try to launch the Keil project generated by Labview, without using Labview, and it works. But as soon as I use Labview, I have the error.
Did anyone already have this error or know how to solve it
Thank you for your answer and sorry for my bad english.
Regards,
Raphaël VAISSIEREHi Raphi,
So let me make sure I understand,
The project created in LabVIEW errors out with the message "Argument 'DARMSTM' not permitted for option 'device"
If you open the same project in Keil uVision, it runs fine
Here are my questions:
1. So how does the code run when run through Keil? does it deploy and run fine?
2. Did you follow the porting procedure completely?
Your target STM32F103RB is techincally supported by Keil but you need to port the RTX kernel to it. This paragraph explains it:
To determine if your target already supports the RTX Real-Time Kernel, browse to the \Keil\ARM\Startup directory, then browse to the folder that corresponds to the manufacturer of your ARM microcontroller. If there is an RTX_Conf*.c file for your target, then the RTX Real-Time Kernel has already been ported for your ARM device. If no such file exists, skip to chapter 4 for more information on the RTX Real-Time Kernel and a guide for porting RTX to your ARM microcontroller.
You also need to port the Real-Time agent to it.
I just want to make sure that you have followed the guidelines. If you have and are still having problems, we will continue to explore this.
Thanks,
National Instruments
LabVIEW Embedded Product Support Engineer -
I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages.
Specifically I am attempting to read data frames using the RP1210_READMESSAGE . am able to configure the hardware and send a message to the J1939 bus. . I think I have not configured something correctly. I can use the RP1210_SENDMESSAGE and see the message I have sent on the bus using CANalyzer When I use the RP1210_READMESSAGE I get the timestamp from a message and the return from the function sends back the correct number of bytes (the number matches the number of bytes I sent out plus four bytes from the timestamp). What I am having trouble with is actually receiving the data. I have had the same type of behavior from two different hardware (Vector CANcase XL and Nexiq USB Link), so I don't think the issue is vendor specific.
Has anyone been able to make the RP1210_RECIEVEMESSAGE function work correctly?
Thanks for any helpThanks
I have already tried that. The links are the NI RP1210 wraper. The problem I am having is using labview to interface with the RP1210 layer. The RecieveMessage char*fpchAPIMessage this is the output which is a pointer to a cahracter array. In this variable I can receive the timestamp of the message but not the message. The retun showns the correct amount of bytes are aviaable (18 for a 8 byte message) but I can only get the 4 byte timestamp I think I have to dereference this pointer to view the data. I am not sure how to fix this. -
Tcp data b/w labview and c++
Hi
i am trying to establish TCP connection b/w LABVIEW and C++ program. Server is established in C++ while client is implemented in labview.Although connection is successfully establish b/w server and client, both are unable to correctly understand data send/receive among them. Forexample if i want to send an int type send_array from server, i use standard WINSOCK function "send" like that:
send(AcceptSocket,(char*)send_array,129*4,0);
but when client in labview receive this array, it shows unexpected values.As a client, I used "simple data client.vi" with one modification i.e. as sent data size(129*4 bytes) was fixed, only one TCP read was used .
Same problem exists if i send data from client to server.
Kindly help me
Best Regards
Solved!
Go to Solution.It's probably an big/little edian problem. If you are using the Flatten/Unflatten from String functions, you can specify which to use.
-
Questions on Saving and mining data with Labview and DIAdem
Hi,
I am sampling two signals at 200k sampling rate. I am trying to save the data on harddisk and analyzing the data using DIAdem.
If I save the data using mesurement file format .tdm and .lvm, the file size will be about 4 Gigabytes for only 10 mins' acquisition. It is very slow to process it.
I used the software Clampex and pCLAMP(Axon Instruments) before. At the same 200k sampling rate and also acquiring two signals, these programs save the data as .atf format and the size is only 400 MB for 10 mins' acquisition.
I wonder if there is also a good way to handle this situation using Labview and DIAdem, and how to do it?Hi, Jonathan:
I tried the TDM binary file format. The file size is 800 MB per min acquisition and it will take a long time to just open these files. For my application, I have to take data for several hours. I am looking for a way to reduce the size of files.
Is there any other type of file format that can reduce the size significantly and can be handled easily? -
Please Help!!! VIPM won't connect to labview and I need to figure out why
I am trying to download the Arduino package from the VIPM and they won't seem to connect. I have included a picture of the error and two more of my settings. I am using the student evaluation of the Labview software, but I'm not sure that it is what's causing the problems. Any help would be appreciated, as I would like to set up a nice GUI using labview and an arduino as my DAQ device. I need this for a project for my professors so I am rather desperate to get it up and running.
Attachments:
Labview Error.jpg 352 KB
Labview Error II.jpg 141 KB
Labview Error III.jpg 108 KBNo, i tried using you settings and stil not working. i went through every combination of the four items I have on the machine and export list. Still nothing, do you think that its that i am using the student version?
Attachments:
New Labview settings, not working.jpg 123 KB
New Labview settings, not working.png 267 KB -
Can I use a camera for application in Labview and VBAI at the same time ?
Dear all,
I'm trying to save an AVI file with Labview and make an image process with VBAI at the same time, in one machine.
The error : "Camera already in use" displayed.
My Camera is a GIGE and I work with Imaqdx. I've test the multicast mode but it only operate with several machines.
How can I do this ?
Thank's to help me,
Yoann BI'm not necessarily saying that. It's been a while since I've used VBAI, so I don't remember all of the capabilities, but if VBAI can do the inspection and recording at the same time, you should be fine.
The trick is that only one program can access the camera at the same time. That application reserves the camera, thus making it unavailable to others.
Chris
Certified LabVIEW Architect
Certified TestStand Architect -
I use Windows Vista and Microsoft Outlook. After migrating to iCloud, the calendar of iCloud tranferred only part of my past Calendar items to the folder iCloud Calendar in my Outlook. How can I transfer all the entries? In iCloud's site all are there.
If the calendar is on iCoud.com, all you would need to do to get it on your phone is go to Settings>iCloud on your phone, sign into your iCoud account and turn Calendars on. The iCloud calendars will then download to your phone.
-
Ok,
My exchange server at work was synced to my iphone and has worked with no issues. I then exchanged my phone because there were issues with my bluetooth not syncing properly. So with this new phone, it prompts me to enter in my exchange server password every few days. I contacted my IT department as well and microsoft to get this issue resolved because I assume that there were issues with the exchange server. They were both able to see an event viewer and it showed that my iphone was attempting to log in numerous amounts of times, which locks out my account after 3 incorrect log ins. Even when I erased the exchange account from my phone, it still showed that the phone in the event viewer was trying to log in over and over again. I then did a master clear and restore and the process was removed in the event viewer. So then I called my IT department to unlock my account after I cleared everything. I was able to sync everything again with it working properly. Now its a day later and the my exchanger server prompts me to enter in the password AGAIN and my exchange account is locked AGAIN because the event viewer at work is showing the same issues. Is my Iphone not saving the password correctly? What do I do? My IT department even created a dummy account to see if a new account would fix the issues but yet no cigar! HELP!!The iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
Message was edited by: ethanm
Maybe you are looking for
-
How can I make OSX index a network share for spotlight?
How can I make OSX index a network share for spotlight? I am using a QNAP NAS with SMB network shares, which I mount with OS X Mavericks. They are not searchable, as far as I know because of the indexing of network share is by default not activated.
-
I have an scenario where I have to create sequentially several IDOCs. This can be created through BPM but my concern is each IDOC has to get processed before the next IDOC is created, is there a way I can check to see if the IDOC was processed. I w
-
I've never been able to figure out the relationship between the Auto-Fill function in Safari and the Keychain program function that seeems to do the same thing. If anyone knows of any doumntation on this subject I would appreciate it. THE CURRENT PRO
-
Is there an easy way to modify how it works when you try and "find file". Now when I do a search for a file (let's say the file's name is "GREEN"), the OS finds hundreds of files where the word "Green" might be included. But what do I do if I just wa
-
Hello Dears I want to print numbers upto 1000 , the problem is that it takes many pages to print. I want to print them in little pages having more number columns instead of one column per page? how would this be possible? Please an immediate response