PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

niHSDIO_WriteNamedWaveformWDT

Hello

I have a PXI-6552 digitally I/O card.

Now the function would like to use niHSDIO_WriteNamedWaveformWDT.

Is it possible, which one reads the data to the Pattern from a text file?

If, you could send me an example in C++.

 

Additionally I wanted the function niHSDIO_WriteNamedWaveformWDT

times with Agilent Vee try out. If I however at the DATA input

Array attaches. Vee brings the error message to VALUE must

A scalar.

Why does this error message come?

 

Thanks for your assistance.

0 Kudos
Message 1 of 8
(3,975 Views)
highmclfy,

i checked around a bit in the HSDIO-docu but i must confess that the function you mention here does not exist in HSDIO 1.2.3, 1.31 and 1.4.1. therefore i am wondering what version of NI HSDIO you are using. since the function does not exist in the stated versions of HSDIO, there do not exist any examples for this function.
Sure you can read a pattern out of a text-file. the main issue on this is, that there is not explicite function in HSDIO for this. therefore, you have to read the file on your own and convert the content into a waveform usable by HSDIO.
Your question regarding HP Vee is kind of strange for me, but since the function does not show up in the current version of HSDIO, i cannot tell you anything on that. In generall, HP VEE is not officially supported by NI.

Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(3,967 Views)
Hello Norbert B.
 
I use version 1.4.
 
Description:

NI-HSDIO 1.4 contains all of the support included in version 1.3 and adds the following features:

  • Support for Open Collector generation on the NI 654X/655X devices
  • Support for per cycle, per pin tristate for NI 655X devices
  • Addition of real-time hardware comparison of actual response data with expected response data. For more information on this feature, visit ni.com/info and enter the info code nsi5410
  • Support for using the waveform data type (WDT) in C application development environments
  • Addition of an "if/else/end if" instruction in the supported scripting language
  • Addition of the niHSDIO_WriteNamedWaveformFromFileHWS function and a Write from HWS File instance of the niHSDIO Write Named Waveform VI
  • Changes to the possible values of input impedance for NI 655X devices; refer to device specifications for details
  • Changes to recommended input voltage thresholds; refer to device specifications for details

0 Kudos
Message 3 of 8
(3,954 Views)
highmclfy,

there you are definetly right. i made the mistake to look only into the C-API documentation and sadly, the function does not show up there. at least in the version i am using....
nevertheless, there is one example deliverd with HSDIO which uses this function, again at least with the version i am using 🙂
you should be able to find the example by selecting Start >> All Programms >> National Instruments >> NI-HSDIO >> Examples >> C. there should be an example called ReadHWSFileandGenerateWDT.

Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(3,940 Views)
Hi, Norbert,
The documentation for this function is contained in the most recent version of the NI Digital Waveform Generator/Analyzer Help (part number 370520F-01), available at ni.com/manuals. Under the C/C++ Reference, navigate to Functions>>Dynamic I/O>>Dynamic Generation.
0 Kudos
Message 5 of 8
(3,932 Views)
cajacobs,

i must confess that i didnt take a look into your advised location but we found out, that the documentation of the function is NOT included in all neccessary parts of the documentation of the C-API. We are going to fix that as soon as possible.

Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 8
(3,917 Views)
 

Hello Norbert B.

I know this example, but I need another.

You can give me an example, the High and Low out

a text file reads and then with the function

writeNamedWaveformWDT continues working.

Thanks

0 Kudos
Message 7 of 8
(3,906 Views)
 

Hello Norbert B.

I know this example, need however another,

since I would like to use also the tristate condition.

I with the Waveform editor cannot produce this condition.

How can I a HWS file with that would tristate condition to produce?

Can I get your email?

If possible you can send me an example that from one

normal text file reads and then the data finished?

Thanks

Greeting Mathias

0 Kudos
Message 8 of 8
(3,891 Views)