Search the web
Sign In
New User? Sign Up
ultimaserial_group · UltimaSerial Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
DI158 and ultimaserial sample   Message List  
Reply | Forward Message #388 of 794 |
Re: DI158 and ultimaserial sample

After reading some more FAQ's I changed to following but no avail.
Private Sub Command1_Click()
UltimaSerial1.Device = 158 'This tells the control that we are
using DI-194
UltimaSerial1.CommPort = 3 'on COM 1
UltimaSerial1.ChannelCount = 1 'with 1 channel
UltimaSerial1.SampleRate = 240 'at 240Hz
UltimaSerial1.EventLevel = 1 'So that we can use NewData event
UltimaSerial1.Start 'Run!
End Sub

In hardware systemsetting of XP I found that the comport for the USB
was COM3. I saw somewhere in the propertie setting of ultimaserial
that USB was port named 0.
So I changed this setting to com 3.
I hooked up a 200mv on channel 1.
But notthing to view when hitting F5 in the Dqchart.
What goes wrong? HELP.....

Thanks in advance,

Paco Raap


--- In ultimaserial_group@yahoogroups.com, "teamtwf8" <p.raap@w...>
wrote:
>
> Hi there,
>
> I am in the procress of building a 3.5 ccm model car dyno that
needs
> 4 different sensors (2 x rpm) and 2x temp)
> All data needs to be displayed and also be stored some graphs of
> power and torque can be made while running and afterwards.
>
> I do not like to invent the wheel again so if someone has a ready
> made project of can guide me in the right direction let me know.
>
> On my pc I have visual basic 6.0 and excel.
>
> More info about the current project can be found here.
> http://www.twf8.ws/php/index.php?
> option=com_content&task=view&id=60&Itemid=186
>
> I was adviced to go here for some help as I really need it.
> People offered help on our engine dyno project but all bailed
out :-(
> So I have to do it all myselve from no experience with VB.
>
> I used the ultimaserial sample found here to see if I could get
the
> 158 to work
> http://www.ultimaserial.com/vbtutor.html
> But instead of DI-195 I use a DI-158USB
> I changes the setting from the sample as below to my knowledge.
>
> Private Sub Command1_Click()
> UltimaSerial1.Device = 158 'This tells the control that we are
> using DI-194
> UltimaSerial1.CommPort = 0 'on COM 1
> UltimaSerial1.ChannelCount = 1 'with 1 channel
> UltimaSerial1.SampleRate = 240 'at 240Hz
> UltimaSerial1.EventLevel = 1 'So that we can use NewData event
> UltimaSerial1.Start 'Run!
> End Sub
>
> Private Sub Command2_Click()
> UltimaSerial1.Stop 'Stop
> End Sub
>
> Private Sub DQChart1_ChartChanged(ByVal Min As Long, ByVal Max As
> Long)
>
> End Sub
>
> Private Sub UltimaSerial1_NewData(ByVal Count As Integer)
> DQChart1.Chart UltimaSerial1.GetData() 'Fetch and plot the data
> End Sub
>
> Hence but nothing happens on the DATAqchart.
> I checked if a signal was comming in by starting Windaqlite.
> Here channel 1 nicely shows a steady voltage signal I supply to
the
> analog input 1.
> Windaqlite and windaq/XL are working fine.
>
> Any help or guidance in the right direction would be nice.
>
> BTW happy new year.
>
> Paco Raap
>







Mon Jan 2, 2006 8:10 pm

teamtwf8
Offline Offline
Send Email Send Email

Forward
Message #388 of 794 |
Expand Messages Author Sort by Date

Hi there, I am in the procress of building a 3.5 ccm model car dyno that needs 4 different sensors (2 x rpm) and 2x temp) All data needs to be displayed and...
teamtwf8
Offline Send Email
Dec 31, 2005
6:34 pm

After reading some more FAQ's I changed to following but no avail. Private Sub Command1_Click() UltimaSerial1.Device = 158 'This tells the control that we are ...
teamtwf8
Offline Send Email
Jan 2, 2006
8:11 pm

1) Check the date of ultimaserial.ocx under Windows\system32 directory, and make sure it is dated Nov, 2005 2) UltimaSerial1.CommPort should be 0 for USB-based...
ultimaserial
Offline Send Email
Jan 3, 2006
3:27 pm

Thanks for the suggestions. 1] I set com port back to 0 2] Cheked for the ultimaserial.ocx file and it says 11 November 2005 3] Made sure only excel is open no...
teamtwf8
Offline Send Email
Jan 3, 2006
8:00 pm

It seems you are using VBA from Excel? If so, you'd better take a look at the Excel lessons 1) The sample VB programs may not work in VBA without modification,...
ultimaserial
Offline Send Email
Jan 3, 2006
8:06 pm

1] Correct I use excel 2000. 2] No old version was installed as far as I know. First I installed ultimaserial.exe and then ultimaserial3.exe All dowloaded...
teamtwf8
Offline Send Email
Jan 3, 2006
8:32 pm

OK, when I use VB 6.0 (so no Excel) the sample is working fine. Also ultimapanel works fine if I add 158 as device and also COM 0 for USB. I Did not changed...
teamtwf8
Offline Send Email
Jan 5, 2006
4:02 pm

1) I assume you are seeing the correct waveform on VB samples? 2) Can you use DQChart to display waveform in VBA of Excel? Can you add a display lable to...
ultimaserial
Offline Send Email
Jan 5, 2006
4:08 pm

1] In VB sample I see on the DQchart something happening when the voltage changes. Same when I use Ultimapanel ther I also can select all other channels and...
teamtwf8
Offline Send Email
Jan 5, 2006
4:26 pm

have to correct myselve In excel VBA version from website there is no DQchart.\ So when I add one what code do I have to use? Paco ... that ... COM ... to ... ...
teamtwf8
Offline Send Email
Jan 5, 2006
4:50 pm

I think ultimaserial is working fine The problem seems to be in the way you pass the data to cells in Excel Remember, you CAN'T simply pass the return from...
ultimaserial
Offline Send Email
Jan 5, 2006
5:01 pm

I am sure ulitmaserial is working as with the REAL VB samples and the Ultimatepanel it is working fine. For the Excel VB sample I took from your web page ...
teamtwf8
Offline Send Email
Jan 8, 2006
7:08 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help