Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

6602 Calibration Procedure with Measurement Studio .Net

I would like to perform the 6602 Calibration Procedure using Measurement Studio for VB .NET 2005 and NI DAQMX. The example code shown in the procedure uses Labview and I believe Traditional NI DAQ. I've attempted to follow the procedure and replace the steps with .Net code but things aren't working like it seems they should. It seems like I can't route signals the way the procedure is saying to. Is there an equivalent procedure that uses Measurement Studio for VB .NET and DAQMX?

 

 

0 Kudos
Message 1 of 10
(5,163 Views)

Hi TimER,

 

Unfortunately there is not a DAQmx version of the 6602 Calibration Procedure.  You should be able to replace the Traditional DAQ code with DAQmx calls.  Can you elaborate more on what is not working as expected?  

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 2 of 10
(5,131 Views)
What I am stuck on is how to "route the stable 10MHz clock on the PXI-6608 onto the RTSI line 0" per step 3c in setting up the stable clock section.
0 Kudos
Message 3 of 10
(5,116 Views)

Did you try using DAQmx Export Signal?  

 

 

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 4 of 10
(5,090 Views)

You may not have noticed, but in my original post I mentioned that I am using VB 2005 and Measurement Studio for .NET. I can't seem to locate an equivalent method to "Export Signal" in the Measurement Studio library.

 

0 Kudos
Message 5 of 10
(5,073 Views)

Please see the attached image taken from the .NET help as I believe this should clear up any confusion.

 

 

 

 

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 6 of 10
(5,057 Views)

Thanks I found the method in the help doc. I couldn't find an example on how to use it, so I wrote this code, which gives the exception: 

 

"Measurements: Signal type requested to be exported is not supported for the specified task running on the given device."

 

Imports NationalInstruments.DAQmx

 

Public Class frmExportStableClock

 

Private CounterTask As Task

Private xsig As ExportSignals

 

Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click

CounterTask =
New Task

CounterTask.COChannels.CreatePulseChannelFrequency("/Dev2/Ctr0", _

 "CalCounter", COPulseFrequencyUnits.Hertz, COPulseIdleState.Low, _

 0, 1000, 0.5)

CounterTask.Start()

xsig = CounterTask.ExportSignals

xsig.ExportHardwareSignal(ExportSignal.ReferenceClock10MHz,
"/Dev2/PFI4")

btnStart.Enabled = False

btnStop.Enabled = True

End Sub

 

Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click

CounterTask.Stop()

CounterTask.Dispose()

btnStart.Enabled = True

btnStop.Enabled = False

End Sub

 

End Class

 

Any Ideas?
Thanks 
Message Edited by TimER on 10-28-2009 03:09 PM
Message Edited by TimER on 10-28-2009 03:11 PM
Message Edited by TimER on 10-28-2009 03:12 PM
0 Kudos
Message 7 of 10
(5,047 Views)

 More detail on the exception is as follows:

 

 

Measurements: Signal type requested to be exported is not supported for the specified task running on the given device.

Property: NationalInstruments.DAQmx.ExportSignals.ReferenceClock10MHzOutputTerminal

Task Name: _unnamedTask<0>

Status Code: -200375 

 

0 Kudos
Message 8 of 10
(5,041 Views)
body { margin: 0 0 0 0; padding:0 0 0 0 } td,div { font-family:Tahoma;font-size:8pt;vertical-align:top } body { margin: 0 0 0 0; padding:0 0 0 0; overflow:hidden; } .transcript { background-color:#d2d2d2; } .messageBlock { margin-left:4px; margin-bottom:3px } .message { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre; } .messageCont { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre;} .other { overflow:hidden;color:#39577a;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .myself { overflow:hidden;color:#da8103;font-style:normal;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont { font-size:8px;text-align:right; color:#39577a;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .myselfCont { font-size:8px;text-align:right; color:#da8103;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .system { margin-left:4px; word-wrap:break-word;color:#da8103;font-style:normal;font-weight:normal; white-space:-moz-pre-wrap; _white-space:pre; } .showTimestamp { padding-left:8px; margin-right:3px; float:right; color:#999999;font-style:normal;font-weight:normal; } .other1 { color:#ac2000;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont1 { font-size:8px;text-align:right; color:#ac2000;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other2 { color:#3c9fa8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont2 { font-size:8px;text-align:right; color:#3c9fa8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other3 { color:#e25614;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont3 { font-size:8px;text-align:right; color:#e25614;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other4 { color:#0b6ac8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont4 { font-size:8px;text-align:right; color:#0b6ac8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other5 { color:#b23290;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont5 { font-size:8px;text-align:right; color:#b23290;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other6 { color:#02e7c7;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont6 { font-size:8px;text-align:right; color:#02e7c7;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other7 { color:#5b3284;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont7 { font-size:8px;text-align:right; color:#5b3284;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .highlight { background-color:#bed6f8; } .datestamp { cursor:default; margin-bottom:1px; background-color:#c0c0c0; width:100%; float:left; text-align:right; color:#ffffff; font-weight:bold; font-style:italic; } #chatAlert { float:left; border-bottom:1px solid #E8D091; padding:6px; width:100%; color:#A5754C; } #chatAlertImage { float:left; } #chatAlertText { float:left; margin-left:6px; } #chatAlertClose { float:right; margin-right:10px; padding-right:6px; margin-top:0px; } #chatAlertText a { color:#A5754C; } #chatAlertText a:hover { color:#A5754C; text-decoration:none; } .tsDisplay { display:block }.dsDisplay { display:none }

If you are using an external clock, then you do not need to export signals at all. You need to bring the clock in on a PFI line and use that PFI line as the timebase for the 50 ms pulse you need to generate.

 

If you are using the clock of the PXI-6608, put the PXI-6608 in Slot 2 of your chassis. The OCXO clock (which is the 10 MHz clock you need to use for calibration) will automatically overwrite the backplane clock. Then use the DAQmx CIChannel.CounterTimebaseSource Property and set it use the PXI_Clk10_In line. body { margin: 0 0 0 0; padding:0 0 0 0 } td,div { font-family:Tahoma;font-size:8pt;vertical-align:top } body { margin: 0 0 0 0; padding:0 0 0 0; overflow:hidden; } .transcript { background-color:#d2d2d2; } .messageBlock { margin-left:4px; margin-bottom:3px } .message { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre; } .messageCont { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre;} .other { overflow:hidden;color:#39577a;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .myself { overflow:hidden;color:#da8103;font-style:normal;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont { font-size:8px;text-align:right; color:#39577a;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .myselfCont { font-size:8px;text-align:right; color:#da8103;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .system { margin-left:4px; word-wrap:break-word;color:#da8103;font-style:normal;font-weight:normal; white-space:-moz-pre-wrap; _white-space:pre; } .showTimestamp { padding-left:8px; margin-right:3px; float:right; color:#999999;font-style:normal;font-weight:normal; } .other1 { color:#ac2000;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont1 { font-size:8px;text-align:right; color:#ac2000;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other2 { color:#3c9fa8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont2 { font-size:8px;text-align:right; color:#3c9fa8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other3 { color:#e25614;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont3 { font-size:8px;text-align:right; color:#e25614;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other4 { color:#0b6ac8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont4 { font-size:8px;text-align:right; color:#0b6ac8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other5 { color:#b23290;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont5 { font-size:8px;text-align:right; color:#b23290;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other6 { color:#02e7c7;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont6 { font-size:8px;text-align:right; color:#02e7c7;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .other7 { color:#5b3284;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; } .otherCont7 { font-size:8px;text-align:right; color:#5b3284;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; } .highlight { background-color:#bed6f8; } .datestamp { cursor:default; margin-bottom:1px; background-color:#c0c0c0; width:100%; float:left; text-align:right; color:#ffffff; font-weight:bold; font-style:italic; } #chatAlert { float:left; border-bottom:1px solid #E8D091; padding:6px; width:100%; color:#A5754C; } #chatAlertImage { float:left; } #chatAlertText { float:left; margin-left:6px; } #chatAlertClose { float:right; margin-right:10px; padding-right:6px; margin-top:0px; } #chatAlertText a { color:#A5754C; } #chatAlertText a:hover { color:#A5754C; text-decoration:none; } .tsDisplay { display:block }.dsDisplay { display:none }

 

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 9 of 10
(5,000 Views)

Epic fail of an attempt last time- sorry.  I will try again.

 

If you are using an external clock for the timing source, then you do not need to export the signal at all.  Instead bring the clock in on a PFI line and use that PFI line as the timebase for the 50 ms pulse you need to generate.

 

 

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 10 of 10
(4,996 Views)