Windows Kernel Debbuging: Debug over virtual serial port with WDK 8.1
I'm currently having some issues doing kernel debugging of a Windows 7 x64 target from my Windows 8.1 x64 host machine. I'm running Visual Studio 2013 with WDK 8.1 on my host and have provisioned my target machine running in VMWare.
Here are my configurations for the target machine. It was configured by reading mostly from here - http://www.codeproject.com/Tips/545835/Kernel-Mode-Debugging-in-a-VM-using-Visual-Studio :
Windows 7 x64
Serial port COM2 with VMWare with name \\.\pipe\com2. All proper options in VMWare are checked
Debug flag for OS enabled through msconfig. Debug port is COM2 running at 115200 baud.
I ran the test target client "WDK Test Target Setup x64-x64_en-us.exe" on the machine before provisioning the computer
I was able to provision the computer properly -- it created the WDK Remove User account. However, I'm running into some issues actually debugging. Below are the steps
Launch the Windows 7 x64 target image in VMWare and wait on the boot menu
In Visual Studio (host machine), go to Debug -> Attach to process -> Select my computer -> Select process "Kernel" -> Attach
In VMWare, press enter to boot Windows
It takes a while, but on my host machine, Visual Studio eventually connects. I can choose to "Break All" and actually use the debugger.
However, I can't seem to connect to the debugger if I don't do it before booting the kernel. And I can only attach once. For example, I can't let Windows initialize to the desktop and then build my driver and begin debugging. The debugger will always hang on
"Waiting to reconnect...". The same goes for if I begin debugging on kernel initialization, decide to stop debugging, then try to reconnect or reattach; it will hang on "Waiting to reconnect..." indefinitely as well.
Follow the directions here: https://msdn.microsoft.com/en-us/library/windows/hardware/jj200334%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
You are using user mode debug setup menus, that won't work.
Mark Roddy Windows Driver and OS consultant www.hollistech.com
Similar Messages
-
Virtual serial port??? Vista 64 bit, usb dongle, palm 755p verizon
I have a new 64 bit Vista OS and I'm having all the same problems everyone else is. I can't hotsync using the cable. I purchased the bluetooth dongle (Kensington) that many have said works. My phone recognizes the PC. My instructions on the phone for the hot sync using bluetooth instructs me to set up a virtual serial port. The instructions are not very clear. This is where it falls apart for me. Can anyone explain how to set up this virtual serial port? Thanks.
Post relates to: Treo 755p (Sprint)
This question was solved.
View Solution.Well I'm happy to report a successful solution. At the recommendation of some other threads I went out and bout and ioGear GBU321 USB Bluetooth adapter and setup was a breeze and it works (although it is SLOOOOOOW compared to a cable hookup, allow some time and plug your treo in during your first sync).
To setup you do the following (And this may also work for your Kensington):
Insert the driver CD
Insert the dongle when asked.
Install the drivers
Pair your device. Basically go to the Bluetooth setup screen on the Palm and select "Trusted Devices". You'll find the bluetooth adapter, select it and then either the palm or the PC will either provide or ask for a paring code. The instructions will guide you through but basically you'll want to make sure the same numbers are entered on both screens (this prevents you from accidentally pairing with some random nearby computer)
This will actually set up your virtual port for you.
You then go into the hotsync manager and click "serial" and select the port just created from the pairing process.
If you don't know what port was created bring up "Control Panels" and select "Phone and Modem" (Assuming you are in "Classic View").
Click on the modem tag and you'll see something like "Standard Modem Over Bluetooth Link" and next to it will be the assigned port.
I hope that helps. I know I was relieved to not have to trash either my Palm or my PC (Although when the Pre or an iPhone with a physical keyboard comes out all bets are off)
Post relates to: Treo 755p (Verizon) -
Hi,
I am searching for an application to create virtual serial ports without any knowledge in computer programing.
I browsed the internet without success. I found many apps for Windows or Linux but none for Mac OS.
Any idea about that ? Thanks for anwer... JPBSome links that might help (or not)
http://blog.philippklaus.de/2011/08/make-rs232-serial-devices-accessible-via-eth ernet/
http://hintsforums.macworld.com/showthread.php?t=90008
http://pbxbook.com/other/mac-tty.html
http://daemonforums.org/showthread.php?t=634
Note: Several solutions for the Mac use a tool called socat (some of the links above talk about this).
The following may incur a cost
http://www.get-console.com/airconsole/
Get-Console have a hardware device - effectively a standard Serial port server but they also have a driver package for the Mac which allows using a virtual serial port on the Mac to talk to their serial port server. You could try their driver with your software, but if that fails you could consider their hardware as well. -
About creating a virtual serial port
Hi all,
Anyone knows if exists some API that's possible create a virtual serial port on Windows XP?
Thanks,
VivianAnyone knows if exists some API that's possible
ible create a virtual serial port on Windows XP?It might exist, but not in Java. -
Attempting to run an SCXI-2000 chassis over the serial port to a Mac.
I was told that this is not supported by NI. Can this be done using register level programming or some other method. The reason for serial communication is due to the distance requirement of roughly 300 feet. The mac RS-422 serial interface is cabable of this. Is there another solution out there Using a mac and an SCXI chassis over long distances. Remotely talking(wireless or ethernet) to a local computer near the experiment and using a DAQ Card interface to the SCXI chassis is not ideal solution.
Unfortunately, to communicate with an SCXI chassis via Serial port on the Macintosh would require that a driver for the SCXI 1200 and SCXI 2000 chassis be written. To write such a driver would not only require register level programming, but a thorough understanding of the SCXI hardware, some of which information might not be available in manuals and such. Because of this I don't think it would be feasible to use the SCXI 2000 chassis on a Mac.
I tried to think of other approaches, but the only alternatives I could think of were to use a Windows Machine with the SCXI 2000 or to put one Mac near the equipment, as you mentioned previously. -
Kernel Panic when I use Serial Port
Hello,
I have a macbook pro 15" 2.66 Ghz 2009 running Mountain Lion.
I use Serial Ports for communicate with instruments via Matlab or CoolTerm, using bluetooth or USB. After some minute of work, my computer crash for kernel panic.
This is the log file about a crash with matlab and bluetooth, someone can help me?
Thanks in advance
Gildo
Wed Dec 19 11:59:55 2012
panic(cpu 0 caller 0xffffff8010a43d5b): "a freed zone element has been modified in zone: kalloc.1024"@/SourceCache/xnu/xnu-2050.18.24/osfmk/kern/zalloc.c:214
Backtrace (CPU 0), Frame : Return Address
0xffffff812c78b3a0 : 0xffffff8010a1d626
0xffffff812c78b410 : 0xffffff8010a43d5b
0xffffff812c78b450 : 0xffffff8010a435d2
0xffffff812c78b530 : 0xffffff8010a245ed
0xffffff812c78b560 : 0xffffff8010e22ca2
0xffffff812c78b580 : 0xffffff7f91e9b3ac
0xffffff812c78b6c0 : 0xffffff7f91dd21bd
0xffffff812c78b7f0 : 0xffffff7f91dc59aa
0xffffff812c78b9f0 : 0xffffff7f91dcba58
0xffffff812c78bad0 : 0xffffff7f91decfb3
0xffffff812c78bb40 : 0xffffff7f91decf2f
0xffffff812c78bbb0 : 0xffffff7f91e805c4
0xffffff812c78bbf0 : 0xffffff8010e47d9a
0xffffff812c78bc50 : 0xffffff7f91e81604
0xffffff812c78bc70 : 0xffffff7f91e7df64
0xffffff812c78bca0 : 0xffffff7f91c4c525
0xffffff812c78bce0 : 0xffffff7f91c4a036
0xffffff812c78bd10 : 0xffffff8010b1fe0c
0xffffff812c78bd50 : 0xffffff8010b24c56
0xffffff812c78bda0 : 0xffffff8010b11c96
0xffffff812c78bde0 : 0xffffff8010b094af
0xffffff812c78be10 : 0xffffff8010b08645
0xffffff812c78be60 : 0xffffff8010d4c56c
0xffffff812c78bed0 : 0xffffff8010d48b6f
0xffffff812c78bf20 : 0xffffff8010d4af60
0xffffff812c78bf50 : 0xffffff8010de182a
0xffffff812c78bfb0 : 0xffffff8010aced33
Kernel Extensions in backtrace:
com.apple.iokit.IOBluetoothFamily(4.0.9f33)[1C326A11-ADF7-353E-AD41-458D6A886E0 5]@0xffffff7f91db7000->0xffffff7f91e57fff
dependency: com.apple.iokit.IOUSBFamily(5.4.0)[C3094550-7F58-3933-A4F7-CD33AE83F8B9]@0xffff ff7f910ea000
com.apple.iokit.IOSerialFamily(10.0.6)[0165A9A0-F112-366C-9D82-EFC7344274F0]@0x ffffff7f91c49000->0xffffff7f91c56fff
com.apple.iokit.IOBluetoothSerialManager(4.0.9f33)[6B6E14A7-7A68-3291-BFFF-F972 4D5B50FA]@0xffffff7f91e7b000->0xffffff7f91e84fff
dependency: com.apple.iokit.IOSerialFamily(10.0.6)[0165A9A0-F112-366C-9D82-EFC7344274F0]@0x ffffff7f91c49000
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport(4.0.9f33)[867D6939-4D49 -3149-A1A5-380C236C8D12]@0xffffff7f91e8f000->0xffffff7f91eb5fff
dependency: com.apple.iokit.IOUSBFamily(5.4.0)[C3094550-7F58-3933-A4F7-CD33AE83F8B9]@0xffff ff7f910ea000
dependency: com.apple.iokit.IOACPIFamily(1.4)[A35915E8-C1B0-3C0F-81DF-5515BC9002FC]@0xfffff f7f90ff2000
dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f910af000
BSD process name corresponding to current thread: MATLAB
Mac OS version:
12C60
Kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
Kernel slide: 0x0000000010800000
Kernel text base: 0xffffff8010a00000
System model name: MacBookPro5,3 (Mac-F22587C8)
System uptime in nanoseconds: 4765863445501
last loaded kext at 2974523021770: com.apple.filesystems.smbfs 1.8 (addr 0xffffff7f91019000, size 229376)
last unloaded kext at 34978808166: com.parallels.kext.prl_usb_connect 7.0 15104.778994 (addr 0xffffff7f9114c000, size 28672)
loaded kexts:
com.nvidia.CUDA 1.1.0
org.virtualbox.kext.VBoxNetAdp 4.0.4
org.virtualbox.kext.VBoxNetFlt 4.0.4
org.virtualbox.kext.VBoxUSB 4.0.4
org.virtualbox.kext.VBoxDrv 4.0.4
com.parallels.kext.prl_vnic 7.0 15104.778994
com.parallels.kext.prl_netbridge 7.0 15104.778994
com.parallels.kext.prl_hid_hook 7.0 15104.778994
com.parallels.kext.prl_hypervisor 7.0 15104.778994
com.parallels.kext.prl_usb_connect 7.0 15104.778994
com.logmein.driver.LogMeInSoundDriver 1.0.0
at.obdev.nke.LittleSnitch 3854
com.apple.filesystems.smbfs 1.8
com.apple.driver.AppleUSBCDC 4.1.22
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleTyMCEDriver 1.0.2d2
com.apple.driver.AGPM 100.12.69
com.apple.driver.AppleHDAHardwareConfigDriver 2.3.1f2
com.apple.driver.AppleHDA 2.3.1f2
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.filesystems.autofs 3.0
com.apple.driver.AudioAUUC 1.60
com.apple.driver.AppleSMCLMU 2.0.2d0
com.apple.driver.AppleBacklight 170.2.3
com.apple.driver.AppleMikeyDriver 2.3.1f2
com.apple.driver.AppleMuxControl 3.2.11
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.iokit.IOBluetoothUSBDFU 4.0.9f33
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.GeForce 8.0.0
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.9f33
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.ApplePolicyControl 3.2.11
com.apple.driver.SMCMotionSensor 3.0.2d6
com.apple.driver.AppleUSBTCButtons 235.4
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.driver.AppleUSBTCKeyEventDriver 235.4
com.apple.driver.AppleUSBTCKeyboard 235.4
com.apple.driver.AppleIRController 320.15
com.apple.driver.AppleUSBCardReader 3.1.0
com.apple.iokit.SCSITaskUserClient 3.5.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.2.2
com.apple.driver.AppleFWOHCI 4.9.6
com.apple.driver.AppleAHCIPort 2.4.1
com.apple.driver.AirPort.Brcm4331 602.15.22
com.apple.nvenet 2.0.19
com.apple.driver.AppleUSBHub 5.2.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleUSBEHCI 5.4.0
com.apple.driver.AppleUSBOHCI 5.2.5
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleACPIButtons 1.6
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.6
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.driver.AppleBluetoothHIDKeyboard 165.5
com.apple.driver.AppleHIDKeyboard 165.5
com.apple.driver.AppleBluetoothHIDMouse 175.8
com.apple.driver.AppleHIDMouse 175.8
com.apple.driver.IOBluetoothHIDDriver 4.0.9f33
com.apple.driver.DspFuncLib 2.3.1f2
com.apple.kext.triggers 1.0
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleHDAController 2.3.1f2
com.apple.iokit.IOHDAFamily 2.3.1f2
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 5.2.0d16
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.nvidia.nv50hal 8.0.0
com.apple.NVDAResman 8.0.0
com.apple.iokit.IOAudioFamily 1.8.9fc10
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOSurface 86.0.3
com.apple.iokit.IOSerialFamily 10.0.6
com.apple.iokit.IOBluetoothFamily 4.0.9f33
com.apple.driver.AppleGraphicsControl 3.2.11
com.apple.iokit.IONDRVSupport 2.3.5
com.apple.iokit.IOGraphicsFamily 2.3.5
com.apple.driver.AppleSMC 3.1.4d2
com.apple.driver.AppleUSBMultitouch 235.7
com.apple.iokit.IOUSBHIDDriver 5.2.5
com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.1
com.apple.iokit.IOUSBMassStorageClass 3.5.0
com.apple.driver.AppleUSBMergeNub 5.2.5
com.apple.driver.AppleUSBComposite 5.2.5
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOAHCIFamily 2.2.1
com.apple.iokit.IO80211Family 500.15
com.apple.iokit.IONetworkingFamily 3.0
com.apple.iokit.IOUSBUserClient 5.2.5
com.apple.driver.NVSMU 2.2.9
com.apple.iokit.IOUSBFamily 5.4.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.8.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 344
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.21
com.apple.driver.AppleACPIPlatform 1.6
com.apple.iokit.IOPCIFamily 2.7.2
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0Any or all of the following third-party system modifications may be contributing to your problem:
CUDA
VirtualBox
Parallels
LogMeIn
LittleSnitch
If the panic is recurrent, I suggest you uninstall all of them according to the developers' instructions, reboot, and see whether there's any improvement. If there is, you can experiment with putting them back, one at a time, to identify which one is at fault. -
Connect Flash to Serial Port with Local Socket Connection
Hey all,
So, I am trying to connect a Flash movie to a serial port
and have it react to the input coming in. Of course, Flash does not
have this capability built in, so I need a workaround. I also
program in Director, and there are easier ways to deal with this
there, but since there hasn't been an update in years, and for
other technical reasons, I would like to use a pure Flash program.
I also need to take advantage of some of the new hardware
acceleration improvements and horizontal sync issues that come with
running the Flash player full screen. So, there are some tools out
there that will let me stream the input from the serial port to a
web address. I figure I could use the local address and assign a
port number, then use Flash to create a local socket connection. I
am having issues opening ports on my computer, and a few other
things, but in theory, I think it should work. I know that I won't
get all the answers here, but if anyone has done anything of the
sort, or might know of some similar projects, it would really help.
I am more of a Director/Flash programmer, and not so much one on
the system level. So, opening local sockets, etc, while I am sure I
can figure it out, is still a bit beyond me. Thanks all!
- BruceYou may want to look into flash remoting, which would allow
you to push content to the flash movie. You could then write a
proxy between the source of your stream and flash the remoting
server. -
Info about read or write a serial port with forms 6.0.5
Anybody can give some info. on read or write a serial port using form (Developer 6.0.5).
Thanks
MM
nullOne option you can try is to develop a DLL
function to read/write serial port,
and then write a ORA_FFI procedure to call the DLL function.
Peter Ng
Calgary, Canada
null -
How to communicate two PC's with the serial port with Netbeans
Do you know how to do it?
Do you know how to communicate with the parallel port too?
Could you give some ideas?
What commands or instructions I have to use?What does NetBeans have to do with it?
All these "people" today that start out in Java using all these "nifty" IDE's. All it does is produce exactly this. They think their IDE is Java. Once they no longer have their one specific IDE in front of them, they can no longer function. They have no idea what the classpath, what the compiler actually does, how to package a jarfile, hell, most of the time, they don't even know how to execute a simple application.
As far as your question. Did you even try to Google for some Serial port API package? Assuming you did, did you download it and read the documentation that comes with it? Did you search for a few examples on the web? Did you read them? Did you try them? I can almost guarantee that the answer to everyone of those questions is "no". So, my question for you is, "Why should we help you?" You obviously have no desire to help yourself, so I think we should reciprocate in kind. Don't you? -
Error 37 using serial port with an executable file
Hi all,
I have developed a VI that controls a setellite receiver using RS232
serial port (LabVIEW 5.1.1).
The VI program run properly, but when I compile it and try to run the
executable file I receive an "Error 37, Device not found" error message.
I have already put serpdrv and my_file.ini files in the same directory
of my executable program my_file.exe, but I have not been able to solve
the problem.
Any help greatly appreciated.
Regards
Antonio
Sent via Deja.com http://www.deja.com/
Before you buy.[email protected] wrote:
>
> Hi all,
> I have developed a VI that controls a setellite receiver using RS232
> serial port (LabVIEW 5.1.1).
> The VI program run properly, but when I compile it and try to run the
> executable file I receive an "Error 37, Device not found" error message.
> I have already put serpdrv and my_file.ini files in the same directory
> of my executable program my_file.exe, but I have not been able to solve
> the problem.
> Any help greatly appreciated.
>
> Regards
>
> Antonio
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Maybe you used the serpdrv from an older version of LV
Regards, Roland
Roland Lampka - Nortel Dasa - ESN 565-7257 - FAX 8160 -
Problems reading the serial port with labview 5.1.
I open the example serial.vi , I select write to serial port, run the programm, I don`t have any problem. But when I select read serial port, I get the error code 16392and hex code error x4008. I need to know what can I do? Thanks a lot
Any time you get an error in LV you can right click on the error cluster indicator and do a "Explain Error".
If you do this for the error code you reported, the explanation says that it was a framing error.
In serial communications, a framing error indicates that the hardware was not able to detect a start bit, data then the stop bits that comprise a frame.
This prompts me to suggest that you check you port setting on the serial port. You want to make sure you are setting the port for the correct;
Number of start/stop bits,
Baud rate
data bits
parity (just for good measure)
and hardware handshaking.
I hope this helps,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Issues with windows kernel mode debugging in Win8 RTM
Here is the setup:
Host: Win8 x64 RTM, supported Realtek NIC, Visual Studio 2012, WDK8, Latest Coinstallers
Target: Win8 x64 RTM, supported Realtek NIC
Clean install, no firewall, no UAC, in a workgroup
Netgear router with DHCP, CAT 5.
We used the following document:
Configuring a Computer for Driver Deployment, Testing, and Debugging
http://msdn.microsoft.com/en-us/library/windows/hardware/hh698272%28v=vs.85%29.aspx
Automatic provisioning of the target completes without errors, but trying to attach the debugger does not work. It never connects.
Am I missing something?I am encountering the same issue debugging a KMDF driver on VS2012. Both machines are in the same workgroup and both are running WS2012 Data Center Edition. I tried running a command prompt and various other items on the target, but
it never connects. I even tried running a VM on the local machine in Hyper-V. Same issue.
Kernel debugger connection works fine in WinDBG, just never connects in VS2012.
Any updates on this from Microsoft?
Kevin -
Can query serial port with NI MAX, but doesn't work in Labview
I'm trying to control a Coherent Sapphire 488 with labview. It's connected via a serial to USB converter into the computer. I can communicate with a device using NI MAX, but when I try to run the vi (attached), it works for several queries, but evetually returns a null character, after which I can no longer communicate with the port. If I then go into the NI MAX interface, every time I try to read it gives the "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed" error message.There are also several queriess from the instrument's manual that don't seem to work at all (with or without MAX) and always return a null character. Any help is appreciated. I'm certainly a novice with device communication. Thanks.
Solved!
Go to Solution.
Attachments:
488_query.vi 16 KBGenerally issue with termination character.
And you are sending \ and r and not CarriageReturn. -
Hello
I have a clock board with serial inputs. I want to send in numbers to the board with MSP to set the frequency of the msp clock. i want to make a nice interface in labview that takes number from the user and sends it to the serial input of the board. i have tried looking at the examples and when i tried it is giving me errors and i am not that familiar with lab view. the documents in the fourum were created in labview version 8 and i have version 7 so i couldn't open them, could you please help me solve my problem.
Thanks in advanceHi,
What do you mean with MSP a MSP430 from Ti ?
Is there a application running on this board ? Did already tried something in LV ? -
Eurotherm 2704 connection via serial port with ModBus
Hello guys,
first some words about my problem:
I have to develop a software which allows reading and writing the
temperature (we have 3 Eurotherm 2704) (I think some of you know this problem yet ).
I wrote already the program and it works, but I used "iTools OPC
Server" for my program and it was the demo version (works only 30 minutes).
The group doesn't want to pay for the iTools, I should solve this problem without
iTools .
In this forum I found out, that I can use the ModBus for it:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=468139&view=by_date_ascending&page=2
I know, there are some similar threads here, but I am new with LabView
and need some help.
I downloaded one example “my modbus serial query.vi “
http://forums.ni.com/ni/board/message?board.id=170&thread.id=135288&view=by_date_ascending&page=2
but it does not work (I am not really sure, what I have to change in the
file)
With OPC Server I found out:
COM5
Baud Rate 9600
Parity: None
Flow Control: None
Data Bits: 8(RTU) (I can choose RTU, but where can I change to 8 bit ?! )
And by other properties, I have no idea what I have to change there
For Example
Modbus Data Unit In (all read and write mode ? Which one do I need to read the temperature and to set the set temperature?)
Modbus Command ?!!!
No idea.
I have folowing adresses (comms address 0x00030001, canonical address: 1)
Which one do I need ?!
I think if I get the signal from one temperature controller, I can do it for
other, but my problem is now THIS one.
Can you help me whit it ?
Should I use a other example ?! Maybe do you know better one?
Thank you, very much.
AlexanderHello Putnam and Christian,
I think the problem because you can not understand my question is my English, sorry
I'll try it again:
@Christian:
Thank you for the links, but I think all threads in NI Forum with topic "Help, Eurotherm 2704 ?" were written by me
You understood my problem correctly.
We have 3 temperature controllers and I have to develop a LabView program, which allows reading the temperature from the controllers. It should be possible to write the set temperature from LabView to temperature controller as well.
The controllers are connected already (I think with RS485) and I can read/set the data from/to controllers (with “iTools OPC Server”), but I have to change my program so, that it works without “OPC Server”
@Putnam:
In the meantime I found out, why I got an error with “my modbus serial query.vi” (the solution was very simple, I had to close the OPC-Server ).
It runs now and I try to understand now how the VI exactly works.
Maybe you can help me with it?
I try to explain what I understood, if something is wrong, tell my please:
The “my modbus serial query.vi” allows to read the multiple values (maximum 125 register) (default block read size is 125) from controller (I can see the data in the register array). In each register I have values for different variables. The Modbus address of Loop1 PV (I need this value) is known ( 00001, Eurotherm manual).
Does it mean that the first element in the register-array is the value for the temperature from Loop 1 ?! (multiplicated by a factor, if it is correct, how can I find out this factor? It is linear?)
And if I need the value of Loop2 (the address is 01025), I have to set the start address for example to 1000 and in this case the 25-th element in register-array is the value for PV Loop 2 ?!
I got this idea, after I left the laboratory and could not try it out. I can do it first at Monday, but I would know if it is correct what I think.
If it is correct, I think I will able to change “my modbus serial query.vi” on my own, that it works in my program.
Or there is a better example/solution than “my modbus serial query.vi” ?!
The other problem would be writing of temperature, but I will ask about it later . First temperature READING problem!!
Thank you!
Alexander.
Message Edited by alexphysiker on 01-29-2010 05:30 PM
Maybe you are looking for
-
Please! take a quick look and give me your opinion
I want to read signals from two tasks in order to make it possible to calibrate all sensors (tasks) indiviually. My program will always read to sensors in different combinations. This is my way to read 2 tasks "simultaneously"... Do you think it is a
-
Boot camp for OS X 10.6.8
Hello - I am looking for a safe source to download Boot Camp for an Intel iMac running OS X 10.6.8. Have several Windows-based programs I need to run. Thank you kindly
-
Put two signals in a single waveform
i wanna put a triangular and a sinusoidal signal in a waveform. i've bundle (i don't know if this is the right thing to do) them but i'm getting wire problems. can somebody help me? p.s. - my VI is attached Message Edited by coimbra on 11-21-2008 01:
-
QT X and yFlicks using Snow Leopard this is my last hope.
I have been a user of the software yFlicks from Many Tricks for a long time. It is an iPhoto type app for keeping your movies organized and it has many features just for movies. It worked excellent under Leopard 10.5. Ever since I installed Snow Leop
-
Text mode opened file and line feed
Good morning: I have open a file in text mode and i need to send an OD0A hexadecimal characters to another system in each line, if i try to put 0D0A it makes a double line feed and if i only put 0D it doesn´t interpretate 0D like hexadecimal characte