Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you read temperature from a thermocouple using NI-DAQmx and Visual Basic?

Hi Ima U

Installed NI daq 744(latest version) and Daqmx850. now I can run the getting started example for onepoine AI. and the NI435x vb60 example. also can add cwai on vb.net 2005 form listed NI pxi4351 and NI pxi4472.

Do you have example using cwai to control 4351 under vb.net 2005?or any advice?

Best Regards!

 

papaya

 

 

 

 

 

0 Kudos
Message 11 of 27
(6,488 Views)
Hi Papaya,

Component Works is at least 10 years old and is no longer supported by NI. I could not find examples using it. My only advice to you is to refer to the Where To Start With Your NI 4350/4351 Guide. Page six discusses how to get started with Component Works/Visual Basic. I hope this helps.
Regards,

Ima
Applications Engineer
National Instruments
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
0 Kudos
Message 12 of 27
(6,482 Views)

Hi Ima U

Tested the NI435x driver2.5.1 cd example for vb60,can work well. for the reason that I had finished lots programm for pxi6221,pxi6225 and pxi4472, I still wanna program control NI 4351 under vb.net 2005. can we try use NI 4351 driver Lib unber vb.net?If there is no way to control Ni 4351 under vb.net 2005. I have to immigrate my programm from vb.net 2005 into vb60.

Best regards!

papaya 

 

0 Kudos
Message 13 of 27
(6,479 Views)

Hi papaya,

It is possible to program Traditional DAQ in VB .NET in Visual Studio with or without Measurement Studio though it is difficult and we do not have any examples I recommend that you take a look at the Knowledgebase article linked below. Keep me posted if you have more questions.

Programming NI-DAQ in Microsoft Visual Basic .NET

Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 14 of 27
(6,470 Views)

Hi Jordan D

Sorry for replying you late for busy on other things. Had read the document before which you mentioned. So I try to use Active X(Cwai control) component to do as the vb60 example,but seems the pxi4351 doesnt work as other daq board, needs lots configure to driver it as RTD or thermalocouple. and met the trouble how to convert vb60 varriant data into vb.net object data? after trying days, now wanna give up.(cwai.readsingle(data as varriant) which not be supported by vb.net).

Would you give me some examples for using active X to control pxi4351 unber vb,net?

Thanks!

 

papaya 

 

0 Kudos
Message 15 of 27
(6,465 Views)
Hi papaya,

After doing a bit more research into this issue, I have found that the easiest way for you to develop your code would be to do a DLLImport and call the functions directly from the library.

<DllImport("nidaq32..dll")> _
Public Shared Function Acquire(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 16 of 27
(6,452 Views)

Hi Jordan D

you sugguest we try use vb imports nidaq32.dll, but I found the nidaq32.dll only supports these devices listed follow: there is no function to control ni435x device?

I guess that the ni435x.dll can support us to try this method to control ni4351 board?but whats the data type for "ViSession" to call function ni435x_init(VIrSRC resourcename,VIboolean IDQuery,VIBoolean resetDivice,VISession *DAQSession)

try this function call as (checkerror=ni435x_init("device1::2",true,true,"VI")),then get an error show me(cannot get return value).

more help?

Thanks!

 

papaya

NI-DAQ Functions Listed by Hardware Product

516 and LPM Devices

1200 Series

652X Devices

653X Devices

AT-DIO-32F

DAQCard-500/DAQCard-700

DIO-24 and DIO-96

E Series Devices (click here for a list of E Series devices)

I Series Devices

Lab-PC+

NI 5411 Devices

NI 622X

PC-OPDIO-16

PCI-6115

PCI-6120

PCI-6527

PCI-6703

PCI-6704

PXI-6115

PXI-6120

PXI-6527

PXI-6703

PXI-6704

VXI-AO-48XDC

VXI-DIO-128

Counter Devices

DAQCard-6601

PCI-6601

PCI-6602

PC-TIO-10

PXI-6602

PXI-6608

DSA Devices

NI 4451 for PCI

NI 4452 for PCI

NI 4454 for PCI

NI 4472 Devices

NI 4551 for PCI

NI 4552 for PCI

0 Kudos
Message 17 of 27
(6,446 Views)
Hi Papaya,

Did you install the Traditional DAQ 7.4.4 driver as we had suggested earlier? It is possible that if you are still using an older version of Traditional DAQ, your device might not be supported.
Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 18 of 27
(6,434 Views)

Hi Jordan D

Lots time to uninstall lots NI driversi. lots time to reinstall Traditional daq744 and daqmx85.but I cannot find any function reference for tdaq744?read the tdaq744 readme,nowhere I can find the devices list that tdaq744 support and any information about PXI 435X? the NI-daqmx 85 readme list lots divices except the ni 435x deivice.who supports it?

search NI website, tell me these(

Traditional NI-DAQ 7.4.4 - Windows 2000/XP

11 ratings | 4.36 out of 5
Print Document

Download(s)

Download Language: English
Product Line: Multifunction DAQ
Version: 7.4.4
Software type: Hardware Driver
Operating system: Windows 2000; Windows XP

Description

Traditional NI-DAQ (Legacy) for PC Compatibles, version 7.4.4 for Windows XP/2000

Traditional NI-DAQ (Legacy) is an older driver with outdated APIs for developing data acquisition, instrumentation, and control applications for older National Instruments DAQ devices. Traditional NI-DAQ (Legacy) has the same VIs and functions and works the same way as NI-DAQ 6.9.3, except you can use Traditional NI-DAQ (Legacy) and NI-DAQmx on the same computer, and some hardware and software is no longer supported.

You should use Traditional NI-DAQ (Legacy) only in certain circumstances. Refer to the NI-DAQ Readme for more information on when to use Traditional NI-DAQ (Legacy). To download NI-DAQmx, the latest National Instruments data acquisition driver, follow this link.

Traditional NI-DAQ (Legacy) Installation Instructions:

  1. Create a temporary folder on your local hard drive.
  2. Extract the TDAQ744.zip file into the folder created in Step 1. This will create the installation files necessary for installing Traditional NI-DAQ (Legacy).
  3. To launch the Traditional NI-DAQ (Legacy) installer, run the setup.exe program created in Step 2.

From this documents, seems the tdaq744 has the same function as daq693 which i installed before?

Thanks for your help and your time. Would you give me more details for I am truely a new beginer to NI.

 

papaya

 

 

0 Kudos
Message 19 of 27
(6,428 Views)

Hi Papaya,

I'm sorry for the confusion. This is a very old piece of hardware with very little documentation. It seems that for some reason the support for the 4351 might have been lost in the final release of Traditional DAQ 7.4.4. Here is a link to Traditional NI-DAQ 7.4.1 which definitely does have support for the 4351.

Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 20 of 27
(6,422 Views)