Quantcast
Channel: Measurement Studio for VB6 topics
Viewing all 323 articles
Browse latest View live

Analog input using Excel and NI USB-6008

$
0
0

I'm new here and need some help please.  I am using Excel VBA and NI USB-6008 to read in some analog voltages.  I have been through the VB6 examples and have come across the example using Excel for digital IO.  Can't seem to get my code to work and I'm sure it's to my lack of understanding the syntax.

 

I tried DAQmxReadAnalogScalarF64 and DAQmxReadAnalogF64, with adjusting things in the config_port_click() sub.

 

Not sure if it is configuration or in the read subs.  Thank you in advance for any help.

 

 

Dim taskHandle0 As Long
Dim Status0 As Double
Dim data(0) As Double

Sub Configure_Port_Click()

Status0 = DAQmxCreateTask("", taskHandle0)
Status0 = DAQmxCreateAIVoltageChan(taskHandle0, "Dev1/ai0:7", "", _
DAQmx_Val_InputTermCfg_RSE, 0, 10, _
DAQmx_Val_VoltageUnits2_Volts, "")
Status0 = DAQmxCfgSampClkTiming(taskHandle0, "OnboardClock", 50, DAQmx_Val_Rising, _
DAQmx_Val_AcquisitionType_ContSamps, 50)
Status0 = DAQmxStartTask(taskHandle0)


End Sub

Private Sub Image1_Click()

Stat0 = DAQmxReadAnalogF64(taskHandle0, 1000, 10#, _
DAQmx_Val_GroupByChannel, data(0), 8, 10, ByVal 0&)
'Status0 = DAQmxReadAnalogScalarF64(taskHandle0, 10#, data(0), ByVal 0&)

Range(Cells(3, 1).Address) = data(0)

End Sub

Sub Stop_Task_Click()
Status0 = DAQmxStopTask(taskHandle0)
Status0 = DAQmxClearTask(taskHandle0)


I-V curve tracer from keithley 2401

$
0
0

Hello all,
I am conducting a research on solar cells and I have made some batches of OPV'sc and I would like to test them using VB6. I have found a code for serial communication and I can assure that the device is in serial communication the only problem I am finding is the set of commands that can allow me to sweep the I-V curve values from source meter and then into my response dialogue box. I have put a link of the code as well as the section from user manual that relates to remotes commands which in my case is not working. Please let me know if I am doing something wrong.

Regards
Subham Joshi

 

program link: -
https://www.lakeshore.com/Service/SensorCD/Pages/Serial_VB.aspx

 

manual section of commands: -

*RST 

SENS:FUNC “CURR” 

SENS:CURR:RANG:AUTO ON 

SYST:RSEN ON 

SOUR:FUNC VOLT 

SOUR:VOLT:ILIM 300e-3 

SOUR:SWE:VOLT:LIN 0, 0.9, 181, 0.1

INIT

*WAI

TRAC:DATA? 1, 181, “defbuffer1”, READ, SOUR, REL

How to get the data with Send()

$
0
0

HI All

I meet a question.I send 5740MHZ to MS2663C,but get the value-->5260.

I dont know Why this happened.

 

The other question is Max using GPIB.dll or GPIB_32.dll?

 

THANK YOU.

Amy

https://picknutrareview.com/instaketo/

read and write analog fast varying signal simultaneously using Ni 6008 + vb6 code

$
0
0

i want to write analog fast varying signal to AO same time I want read analog signal simultaneously each after 10 millisecond I am using vb6 platform. 

Kindly help...

DentaSmile *Strength and firmness to your enamel and gums*

Upgrade to DAQmx 19.5 Gives -200077 Error in Create CI Encoder Chan

$
0
0

I have a VB6 application that was updated from NI-DAQ (Legacy) to DAQmx v15.5 about 2 years ago. Everything has been working great with the new drivers. I recently added support for encoder inputs which also ended up working great. However, I just upgraded from DAQmx v15.5 to v19.5 and now my calls to DAQmxCreateCILinEncoderChan() and DAQmxCreateCIAngEncoderChan() return error -200077 but only when I set the ZidxEnable parameter to TRUE. This happens with a PCIe-6343 board and also with a USB-6363 board. I've attached a copy of an IO Trace capture file.

Is DAQmx 19.5 not compatible with VB6? Or is it possible something went wrong with the upgrade from 15.5 to 19.5?

伪造圣玛丽大学SMU毕业文凭学位微信Vito1113724]制作SMU毕业假证书,办理SMU学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]Saint Mary's University

$
0
0

伪造圣玛丽大学SMU毕业文凭学位微信Vito1113724]制作SMU毕业假证书,处理SMU学历认证毕业证书成绩单英国留学申请学校等级如何申请英国大学学位QQ2570748026]圣玛丽大学微信Vito1113724]制作SMU毕业假证书,处理SMU学历认证毕业证成绩单英国留学申请学校校级如何申请英国大学学位QQ2570748026]圣玛丽大学,,进行SMU学历认证毕业证成绩单英国留学申请学校学位怎样申请英国大学附属QQ2570748026]圣玛丽大学


伪造多伦多大学UT毕业文凭学位微信Vito1113724]制作UT毕业假证书,办理UT大学证书毕业证UT、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Toronto

$
0
0

伪造多伦多大学UT毕业文凭学位微信Vito1113724]制作UT毕业假证书,办理UT大学证书毕业证UT、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Toronto伪造多伦多大学UT毕业文凭学位微信Vito1113724]制作UT毕业假证书,办理UT大学证书毕业证UT、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Toronto伪造多伦多大学UT毕业文凭学位微信Vito1113724]制作UT毕业假证书,办理UT大学证书毕业证UT、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Toronto

伪造约克大学YU毕业文凭学位微信Vito1113724]制作YU毕业假证书,办理YU大学证书毕业证YU、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]York University

$
0
0
伪造约克大学YU毕业文凭学位微信Vito1113724]制作YU毕业假证书,办理YU大学证书毕业证YU、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]York University

伪造约克大学YU毕业文凭学位微信Vito1113724]制作YU毕业假证书,办理YU大学证书毕业证YU、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]York University

伪造约克大学YU毕业文凭学位微信Vito1113724]制作YU毕业假证书,办理YU大学证书毕业证YU、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]York University

伪造滑铁卢大学UW毕业文凭学位微信Vito1113724]制作UW毕业假证书,办理UW学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Waterloo

$
0
0
伪造滑铁卢大学UW毕业文凭学位微信Vito1113724]制作UW毕业假证书,办理UW学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Waterloo

伪造滑铁卢大学UW毕业文凭学位微信Vito1113724]制作UW毕业假证书,办理UW学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Waterloo

伪造滑铁卢大学UW毕业文凭学位微信Vito1113724]制作UW毕业假证书,办理UW学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]University of Waterloo

伪造阿尔伯塔大学U of A毕业文凭学位微信Vito1113724]制作U of A毕业假证书,办理U of A大学证书毕业证U of A文凭U of A大使馆认证、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]Univesity of Alberta

$
0
0

伪造阿尔伯塔大学U of A毕业文凭学位微信Vito1113724]制作U of A毕业假证书,办理U of A大学证书毕业证U of A文凭U of A大使馆认证、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]Univesity of Alberta伪造阿尔伯塔大学U of A毕业文凭学位微信Vito1113724]制作U of A毕业假证书,办理U of A大学证书毕业证U of A文凭U of A大使馆认证、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]Univesity of Alberta伪造阿尔伯塔大学U of A毕业文凭学位微信Vito1113724]制作U of A毕业假证书,办理U of A大学证书毕业证U of A文凭U of A大使馆认证、 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]Univesity of Alberta

伪造麦克马斯特大学MMU毕业文凭学位微信Vito1113724]制作MMU毕业假证书,办理MMU学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]McMaster University

$
0
0
伪造麦克马斯特大学MMU毕业文凭学位微信Vito1113724]制作MMU毕业假证书,办理MMU学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]McMaster University

伪造麦克马斯特大学MMU毕业文凭学位微信Vito1113724]制作MMU毕业假证书,办理MMU学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]McMaster University

伪造麦克马斯特大学MMU毕业文凭学位微信Vito1113724]制作MMU毕业假证书,办理MMU学历认证毕业证成绩单 英国留学申请学校硕士学位 怎样申请英国大学硕士学位QQ2570748026]McMaster University

qqv信983141176芝加哥大学学历证书成绩单学士证书 芝加哥毕业文凭学历认证 芝加哥成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证The University of Chicago

$
0
0
qqv信983141176芝加哥大学学历证书成绩单学士证书 芝加哥毕业文凭学历认证 芝加哥成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证The University of Chicago

qqv信983141176芝加哥大学学历证书成绩单学士证书 芝加哥毕业文凭学历认证 芝加哥成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证The University of Chicago

qqv信983141176芝加哥大学学历证书成绩单学士证书 芝加哥毕业文凭学历认证 芝加哥成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证The University of Chicago

qqv信983141176维克森林大学学历证书WFU成绩单学士证书 WFU毕业文凭学历认证 WFU成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证Wake Forest University

$
0
0
qqv信983141176维克森林大学学历证书WFU成绩单学士证书 WFU毕业文凭学历认证 WFU成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证Wake Forest University

qqv信983141176维克森林大学学历证书WFU成绩单学士证书 WFU毕业文凭学历认证 WFU成绩单文凭、办理国外学历学位认证 海外学历学位认证 回国人员证明 教育部海外学历认证 认证所需材料 本科毕业证成绩单原件 留学生学历学位认证Wake Forest University


simultaneous read & write fast varying analog signal

$
0
0

Hello!

I am using USB 6008 Device to Read and Write analog signal.

I want to write analog output on channel exactly after each 10 millisecind and also read input on mutiple channel on each 10 millisecond.

I did code tested but cannot attempt time as I expected.

 

kindly help me !!!

GP-IB リモート/ローカル切り替え

$
0
0

GPIB-USB-HSを使用しGP-IB機器を制御しています。

 

リモート/ローカルの切り替え関数(EnableRemoto/EnableLocal)の第2引数の説明を教えてください。

 

Vbib-32.vasプログラム内上記関数があります、第2引数がaddrs() as integerとなっています。

 

本引数は、上位側から渡す情報なのでしょうか、それとも実行した結果何らかの情報が返ってくるのでしょうか

 

上位側から渡す場合は何を設定すればよろしいですか。

 

请问利用VB6.0进行NI采集卡控制的步骤

LIN crashes labview

$
0
0

I am having trouble using and .ldf file to read the state of charge on a battery. I am using an example LIN .ldf that I am using after reading this forum:

https://decibel.ni.com/content/docs/DOC-5135

 

Each time I open the example ldf file, it works fine. But when I load my ldf file, it crashes the program. Below is a copy of my ldf file.

 

I am running with a USB -8476 LIN bus monitor. I am using an LDF file with protocal version 1.0. I am also using a simple example that is supposed to load a .ldf file and read it's contents. In this case, it would display battery state of charge.

 

Any suggestions?

 

 

Simultaneous Digital Write and Read w. Interval Measurement

$
0
0

Hi all,

For the past couple days, I've been wracking my brain trying to get a program to work.

 

I'm trying to generate a 4-bit digital output while simulatanously counting the rising edges on its LSB up to an arbitary number set by the program's operator, at which point, the program would make a measurement.

 

I'm noticing, though, that, over a certain rising edge count number (~950 or so), the program crashes. The problem persists even when I remove the function that reads the LSB, although, in that case, the crashes occur at a much higher number. What might cause this? Is there any way I can work around this problem?

 

Below is my code:

 

arraySizeInBytes2 = 8
bufferSize = 255

ReDim readArray(arraySizeInBytes2)


publicLifetime = 100 ' use this to control the length of time the task takes
numSamplesToWrite = 10 * publicLifetime * numSample * 5
numSamplesInArray = 5 * 10 * numSample

'code that defines the digital and analog output signals

j = 0
  k = -1
    Do While j < numSamplesInArray
        If j Mod SampPerCycle = 0 Then k = k + 1 Else k = k  
        For m = 0 To 3
        If ((k) And (2 ^ m)) = (2 ^ m) Then writeArray(m, j) = 1 Else: writeArray(m, j) = 0 
        Next m
        j = j + 1
        Loop

    publicStatus = DAQmxCreateTask("", taskHandleDigitalOut)
    publicStatus = DAQmxCreateTask("", taskHandleAnalog)
    publicStatus = DAQmxCreateTask("", taskHandleDigitalIn)
    taskIsRunning = True
    
     publicStatus = DAQmxCreateDOChan(taskHandleDigitalOut, "Dev2/port0/line0:3", "", DAQmx_Val_ChanForAllLines)
     publicStatus = DAQmxCfgSampClkTiming(taskHandleDigitalOut, "Ctr0InternalOutput", 1000000#, DAQmx_Val_Falling, DAQmx_Val_AcquisitionType_FiniteSamps, numSamplesToWrite)
     publicStatus = DAQmxCreateAOVoltageChan(taskHandleAnalog, "dev2/ao0", "", -10, 10, DAQmx_Val_VoltageUnits2_Volts, "")
     publicStatus = DAQmxCfgSampClkTiming(taskHandleAnalog, "Ctr0InternalOutput", 1000000#, DAQmx_Val_Falling, DAQmx_Val_AcquisitionType_FiniteSamps, numSamplesToWrite)
     publicStatus = DAQmxCreateDIChan(taskHandleDigitalIn, "dev2/port0/line7", "", DAQmx_Val_ChanPerLine)
     publicStatus = DAQmxCfgChangeDetectionTiming(taskHandleDigitalIn, "dev2/port0/line7", "", DAQmx_Val_AcquisitionType_ContSamps, 8)
     publicStatus = DAQmxWriteBinaryI16(taskHandleAnalog, DACwaveFormSize, False, -1, DAQmx_Val_GroupByScanNumber, buffer(0), sampsPerChanWritten, ByVal 0&)
     publicStatus = DAQmxWriteDigitalLines(taskHandleDigitalOut, numSamplesInArray, False, -1, DAQmx_Val_GroupByScanNumber, writeArray(0, 0), sampsPerChanWritten, ByVal 0&)
     publicStatus = DAQmxStartTask(taskHandleDigitalIn)
     publicStatus = DAQmxStartTask(taskHandleAnalog)
     publicStatus = DAQmxStartTask(taskHandleDigitalOut)
     publicStatus = DAQmxStartTask(publicCounterHandle)

r = 0
Do While r < (publicLifetime * numSample)
publicStatus = DAQmxReadDigitalLines(taskHandle, 1, 5, DAQmx_Val_GroupByScanNumber, readArray(0), arraySizeInBytes2, SampsPerChanRead, numBytesPerSamp, ByVal 0&)
If publicStatus = 0 Then r = r + 1
If r Mod publicMeasurementInterval= 0 Then 'Measurement Code here
Loop

publicStatus = DAQmxStopTask(taskHandleDigitalIn)

 publicStatus = DAQmxWaitUntilTaskDone(taskHandleDigitalOut, -1)
 publicStatus = DAQmxClearTask(taskHandleDigitalOut)
 publicStatus = DAQmxStopTask(taskHandleAnalog)
 publicStatus = DAQmxClearTask(taskHandleAnalog)
 publicStatus = DAQmxStopTask(publicCounterHandle)
 publicStatus = DAQmxStopTask(taskHandleDigitalIn)
 publicStatus = DAQmxClearTask(taskHandleDigitalIn)   
 taskIsRunning = False

   

 

 

Thank you.

Viewing all 323 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>