LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing runs at 1 sample per second with simulated DAQ, but runs slower when connected.

I guess I need to see my laptop:D

 

I'm looking for the Task Configuration BD as an image.


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 25
(676 Views)

Screenshot 2023-03-30 161149.png


Hoping this is what you're after.

0 Kudos
Message 12 of 25
(674 Views)

OK,

Time to show you how a pro does it

With a well commented BD and developer comments.  Took me 15 minutes.  The Task timing is assumed to be single sample on demand.

DAQ SLADFP.pngDAQ SLADSnip.png

 

Developed in LabVIEW 2023 not backsaved 


"Should be" isn't "Is" -Jay
Message 13 of 25
(653 Views)

@JÞB wrote:

OK,

Time to show you how a pro does it

With a well commented BD and developer comments.  Took me 15 minutes.  The Task timing is assumed to be single sample on demand.

DAQ SLADFP.pngDAQ SLADSnip.png

 

Developed in LabVIEW 2023 not backsaved 


When I use a file dialog to populate a TDMS path I get the following error:

 

Screenshot 2023-03-31 092329.png

If I use a filepath, I get -201309

Using the highlight execution, the error occurs in the DAQ read, and it appears that both reads get the same channel for some reason. 

No modification to the posted VI so not sure what's going on? 

 

Screenshot 2023-03-31 101201.png

0 Kudos
Message 14 of 25
(639 Views)

Hi LVIEWPQ,

 


@LVIEWPQ wrote:

No modification to the posted VI so not sure what's going on? 

Use two TDMS files for two DAQmx tasks: each task wants to have exclusive access to its TDMS file…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 15 of 25
(636 Views)

@GerdW wrote:

Hi LVIEWPQ,

 


@LVIEWPQ wrote:

No modification to the posted VI so not sure what's going on? 

Use two TDMS files for two DAQmx tasks: each task wants to have exclusive access to its TDMS file…


Even with 2 different logfiles, I get Error 201309.

Followed : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DmwnCAC&l=en-GB which hasn't resolved the issue. 

0 Kudos
Message 16 of 25
(642 Views)

Hi LVIEWPQ,

 


@LVIEWPQ wrote:
Even with 2 different logfiles, I get Error 201309. 

Error -201309: "Unable to write to disk. Ensure that the file is accessible."

 

Which filepaths do you use?

(On which target is your VI executed?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 25
(639 Views)

I have tried

"C:\Users\lharris\Desktop\Pressure logfile.tdms"
"C:\Users\lharris\Desktop\Temperature logfile.tdms"
&


@GerdW wrote:

Hi LVIEWPQ,

 


@LVIEWPQ wrote:
Even with 2 different logfiles, I get Error 201309. 

Error -201309: "Unable to write to disk. Ensure that the file is accessible."

 

Which filepaths do you use?

(On which target is your VI executed?)




"C:\Users\lharris\Desktop\Plogfile.tdms"

"C:\Users\lharris\Desktop\Tlogfile.tdms"

0 Kudos
Message 18 of 25
(628 Views)

@GerdW wrote:

Hi LVIEWPQ,

 


@LVIEWPQ wrote:
Even with 2 different logfiles, I get Error 201309. 

Error -201309: "Unable to write to disk. Ensure that the file is accessible."

 

Which filepaths do you use?

(On which target is your VI executed?)


I have a sneaky suspicion that the Task configurations are not 1 sample on demand.

 

Show a screenshot of the DAQmx Wizard.  Just right-click the Task constants and show the configuration page.


"Should be" isn't "Is" -Jay
0 Kudos
Message 19 of 25
(616 Views)

@JÞB wrote:

@GerdW wrote:

Hi LVIEWPQ,

 


@LVIEWPQ wrote:
Even with 2 different logfiles, I get Error 201309. 

Error -201309: "Unable to write to disk. Ensure that the file is accessible."

 

Which filepaths do you use?

(On which target is your VI executed?)


I have a sneaky suspicion that the Task configurations are not 1 sample on demand.

 

Show a screenshot of the DAQmx Wizard.  Just right-click the Task constants and show the configuration page.


Screenshot 2023-04-03 082809.png

Screenshot 2023-04-03 082738.png

Screenshot 2023-04-03 082708.png

   

Everything appears to be set up correctly?

0 Kudos
Message 20 of 25
(568 Views)